i have used
$res = mysql_query("SELECT id FROM personal_info ORDER BY id DESC LIMIT 1 ");
and i think it shud return me the value of last id field
instead when i say
echo $res; it prints something like this Resource Id #3
help
Last Record Query Result Problem
Moderator: General Moderators
sorry abt the double post .. actually i needed help immediatly and then i didnt get a reply so i thought may be ppl wont read the old post so i posted again...but then u replied on the old one
sorry once again
can u tell me how to make a self call in the page..like im doin this if i don find a record i increase the value of $id+1 and then call the same page again how to do that??? used header but it says header info already sent dono any other way.
sorry once again
can u tell me how to make a self call in the page..like im doin this if i don find a record i increase the value of $id+1 and then call the same page again how to do that??? used header but it says header info already sent dono any other way.
- AVATAr
- Forum Regular
- Posts: 524
- Joined: Tue Jul 16, 2002 4:19 pm
- Location: Uruguay -- Montevideo
- Contact:
check $_SERVER http://www.php.net/reserved.variables
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA