How do I find the ID of a new row added to a table?
Here's how you do it:
$q = mysql_query("INSERT INTO mytable VALUES('test')");
$rownumber = mysql_insert_id();
//$rownumber contains the id of the new row
More mysql PHP Questionshow to write sessions in php code?
How do I set a default value for ENUM fields in PHP?
how do i upload an image to database?
How do I include a conditional in my mysql query?
How do I access the current time with mysql?