If there are no results for $sql_result, it throws an error... What is the correct method to do this to prevent an error if there are no rows.. It cant be that you have to count the rows before?
mysql_result($sql_result, 0);
Kind regards to any responders.. J