Jump to content

Just trying to see if a value exists in my SQL...


ActaNonVerba1

Recommended Posts

Can someone explain why this code:

if (mysql_result($data,0,$SQLLargeName) = " "){
$LargeImage = "#";	
}
else {
$LargeImage = mysql_result($data,0,$SQLLargeName);
}

 

 

Gives me this error? :)

Fatal error: Can't use function return value in write context in /home/worldw44/public_html/SQL.php on line 38

 

 

And ways round it?

 

Thanks.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.