On Thu, Apr 12, 2001 at 10:20:28PM -0400, Chris Anderson wrote:
> If I grab values from fields and they contain nothing, and I retrieve
> them using mysql_field_array, it will give an index out of range. Is
> there a way to prevent the error or do I have to keep putting a @ in
> front of the variable declaration?

Why not just check how many rows are returned?
mysql_num_rows()

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
I wouldn't ever write the full sentence myself, but then, I never use
goto either.
             -- Larry Wall in <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to