matt2kjones
11-05-2002, 07:11 PM
Hi i have a question. I got this query :
$hostid_query = "SELECT hostid FROM webhosts ORDER BY hostid DESC";
now then, i following that with this :
$result = mysql_query($hostid_query);
$data = mysql_fetch_array($result);
$last_hostid = $data['hostid'];
Now then, i thought that it would put the highest hostid into $last_hostid by it doesn't
the last host_id is 22, and it puts 7 in there for some reason
anyone know what im doing wrong
thanx
$hostid_query = "SELECT hostid FROM webhosts ORDER BY hostid DESC";
now then, i following that with this :
$result = mysql_query($hostid_query);
$data = mysql_fetch_array($result);
$last_hostid = $data['hostid'];
Now then, i thought that it would put the highest hostid into $last_hostid by it doesn't
the last host_id is 22, and it puts 7 in there for some reason
anyone know what im doing wrong
thanx
