[thelist] PHP Newbie Stuck....

Jay Greenspan jay at trans-city.com
Fri Jun 1 11:00:32 CDT 2001


A real good idea to track down errors like this is to use the or die()
process. That way you'll get meaningful errors when they occur.  At some
point above this, presumably, you have a line like:

$result = mysql_query($sql_string);

change that to:

$result = mysql_query( $sql_string ) or
   die ( mysql_error() );


Also, take a look at the line below. It appears you're fetching an array
into an array element. So to access any information from here, you'd need to
use something like:

echo $row2["FIELD"]["field_I_really_want"];

> $row2["FIELD"] = mysql_fetch_array($result2);


-j






More information about the thelist mailing list