Nathan Nobbe wrote: >> > what is $ret, an array? >> >> No, it's a mysql result object. >> > > no, its the contents of the first cell in the first record of the > result set; from the doc on mysql_result(), > http://www.php.net/manual/en/function.mysql-result.php > which is what the function is using. Yep, you're right - I read mysql_query where the OP said mysql_result. Ignore the rest of my previous answer too. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php