Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 744115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:56:28+00:00 2026-05-14T08:56:28+00:00

This is a fairly simple question. Basically, I’m having a program send HardWare ID’s

  • 0

This is a fairly simple question. Basically, I’m having a program send HardWare ID’s to my PHP script as GET data. I need the PHP script check to make sure that HardWare ID is in a specific MySQL column, and if it is, { continue the script, } else { exit(); }

Problem is I’m not too good with MySQL and have no idea how to do this. However, I feel that I should know this by now, so if someone could also link me to a good tutorial site for MySQL, that kind of keeps it “humanized” if you know what I mean. One that “dumbs it down.” I’m not dumb or anything, I just get sidetracked easily, and if all its doing is showing me code and not explaining it, I won’t pick it up. If you don’t have any tutorial sites off the top of your head, I’ll settle for help with the first question, and try to hunt down a tutorial later.

EDIT: It was noted that it may help to see how my database is set up.
I have a table called “hwids”
In this table there are 3 columns: “id” “hwid” and “paypal”

(They buy the program from me, I add their HWID to the database so they can use the program. If they chargeback and try to scam me, I can easily check which HWID is assigned for the paypal that did a chargeback, and remove it from the system via a management page)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:56:28+00:00Added an answer on May 14, 2026 at 8:56 am

    When I started learning PHP/MySQL, I really liked the books that O’Reilly publishes on the subject. You may want to check out Learning PHP, MySql, and Javascript. The official sites for PHP and MySql provide a lot of good links and information, as well as documentation. Tizag has a useful tutorial.

    To answer your question a little, you could do a select query that checks if the number of rows found is greater than zero. i.e.:

    $query = "SELECT * FROM hwids WHERE hwid = 'hardware_id'";
    $result = mysql_query($query);
    $num = mysql_num_rows($result);
    if ($num > 0)
    {
        // continue script
    }
    else 
    {
        // exit/inform user
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 499k
  • Answers 499k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer An answer that was deemed unhelpful The question was not… May 16, 2026 at 12:43 pm
  • Editorial Team
    Editorial Team added an answer effbot.org is the website of PIL's author and maintainer, Fredrik… May 16, 2026 at 12:43 pm
  • Editorial Team
    Editorial Team added an answer (shell script solution) Runs your testcase in background, get the… May 16, 2026 at 12:43 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

This is a fairly straightforward question, I'm basically looking for a 'best practice' approach
This seems like a fairly simple problem to me but I have been having
This should be fairly simple; i'm pretty sure I've just not understood it. FYI,
I'm having an issue mapping what I would think is a fairly simple association.
Im having trouble getting my head round subqueries in Mysql. Fairly simple ones are
I'm a relatively new hire, and I'm starting on a small, fairly simple project.
I've been Googling for it; but without any luck. I think this is fairly
I have a fairly simple game that works perfectly on every version now up
I have a fairly simple expression parser that uses the Linq.Expression namespace. Input is
I've been attempting to refactor a fairly simple three or four page site to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.