hi,

I am having trouble with some data i am retrieving from a mysql
database. 

after a query i am using mysql_fetch_array in a while loop to retrieve
data. ie;-

$row = mysql_fetch_array($result);

once i have a $row i am getting relevant data i want using;-

$data = $myrow["field_name"];

where "field_name" actually exists but may not be used (null).

the problem is that if it is not used then warnings are generated,
even if i do;-

if($myrow["field_name"] != null){
        $data = $myrow["field_name"];
}

it still generates warnings.  can any one help?

thanks in advance

scott


-- 
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