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 QuestionsWhat is difference between mysql_fetch_array and mysql_fetch_object?
I tried to do query,but it didnt work i receive an error message arning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in
How do i list a record in front that is recently added to the table?
HOW can i retrieve database elements and make them select options on a form My Test Form Please, choose item to order:
How do I order the results of my query?