[wd_asp elements=’search’ ratio=’100%’ id=1]

Find the latest record added – Highest ID

14th August 2013

MySql

mysql codehaven category

For the last inserted record see here

$result = mysql_query("SELECT * FROM mydata WHERE client='$client' ORDER BY id DESC LIMIT 0, 1");
$result = mysql_query("SELECT * FROM mydata WHERE client='$client' group by campaign ORDER BY id DESC");