Jump to content


How do I do this?!

  • Please log in to reply
No replies to this topic

#1 PHPWannabe

  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationSeattle, WA

Posted 21 March 2003 - 03:52 AM

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).

Machinegunner, United States Marine Corps

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users