Jump to content

What does this error mean?


kevincro

Recommended Posts

Fatal error: Can't use function return value in write context in public_html/gearprocess.php on line 19

 

Here is the code I'm working with:

 

if($gear == '4'){
mysql_query("DELETE FROM gear WHERE user = '$user'");
}else{
$result = mysql_query("SELECT * FROM gear WHERE user = '$user'"); 	
(This is line 19)	if(mysql_num_rows($result)='0'){
	mysql_query("INSERT INTO gear VALUES ('$user','$imposer','$gear','$reason')");
}else{
	mysql_query("UPDATE gear SET gear = '$gear' WHERE user = '$user'");
	mysql_query("UPDATE gear SET reason = '$reason' WHERE user = '$user'");
}
}

Link to comment
https://forums.phpfreaks.com/topic/97522-what-does-this-error-mean/
Share on other sites

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.