Heh, I got it right before you answered...
PHP Code:
$result = mysql_query("SELECT * FROM accounts ORDER BY account DESC");
$row = mysql_fetch_array($result);
$highest = $row['account'];
// echo $highest;
One last(I hope) question..
When outputting a string (include various queries) is it possible to indent the strings to make it easier to read?
I have it outputting as
PHP Code:
$result = mysql_query("SELECT * FROM `accounts`");
while($row = mysql_fetch_array($result))
{
echo $row['fname'] . ", " . $row['lname'] . ", " . $row['addr'] . ", " . $row['email'] . ", #" . $row['account'] . ", $" . $row['balance'];
echo "<br />";
}
__________________