Forum Moderators: coopster
The fields are: "pagerefno" - which is index and primary key, and "url".
I need to find the max value in "pagerefno", so wrote the following code:
$query ="SELECT max(pagerefno) FROM pageref";
$result = mysql_query($query) or die ("Error in query: $query. " .
mysql_error());
$row = mysql_fetch_row($result);
echo row[0];
But this results in a blank screen. I'd be grateful for a steer, here.