Jump to content

Help Please


lJesterl

Recommended Posts

I dont know exactly how i should go about this.
When my script creates a tournament it gets assigned an id in the mysql table.
I also need it to insert what tid it was assigned into another table.

Basicly something like this.

$lasttid=("SELECT tid FROM tourneys "THIS IS WHERE I NEED THE HELP"

mysql_query("INSERT INTO debrackets SET tid='$lasttid'");


I need it to get the last entry into touneys for tid, or i need it to get the highest number tid.

Any Suggestions?
Link to comment
https://forums.phpfreaks.com/topic/27670-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.