Jump to content

How do I do this?!


PHPWannabe

Recommended Posts

I have a database that stores information, and I can recall that information in PHP scripts. One table stores information on recorded video games (table: games) and one stores information on recorded cheats for those games (table: cheats). I can look up cheats for a game by telling the PHP code to find all rows with a \"gameID\" of \"whatever\" that matches to a \"gameID\" in the table \"games\". What I end up doing however is passing the \"game_name\" from the table \"games\" into the script that recalls the cheats, rather than having the database find it with just one passed query variable.

 

How do I set up my database and scripts so that I can find everything by just using the data from one column? (I\'m pretty new at all this so please explain thoroughly).

 

THANKS!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.