PHP function which returns the most recent row entered into a mysql function -


i looking php function returns recent entry mysql table.

you can use mysql_insert_id() - http://php.net/manual/en/function.mysql-insert-id.php, returns recent key database. query select it. example

$id = mysql_insert_id(); $result = mysql_query("select * table id = ".$id); 

hope helps!


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -