<?php
mysql_connect('localhost','fake','fake') or die(mysql_error());
mysql_select_db('djill_main') or die(mysql_error());
$mysqlnum = mysql_query("SELECT `id` FROM `affiliates` ORDER BY `id` DESC LIMIT 0,1");
echo $mysqlnum;
// if mysqlnum = 5 then why echoing $mysqlnum shows "Resource id #3"??
?>
That code is here: http://djillusion.ze...m/v2/intest.php
[EDIT] I realised that my script inserts the id before the echoing so I dont need to increase it, but even when echoing the unmodified variable, it still shows Resource id #3
Edited by Forgotten, 06 November 2005 - 08:08 PM.
