karker Posted April 25, 2011 Share Posted April 25, 2011 Hi dear friends hi have a problem about down codding can anybody help me where i am doing bad quest i am taking this EROR help please Fatal error: Can't use function return value in write context in I:\EasyPHP-5.3.2i\www\eloyunlar\actions\aramalar.php on line 15 <?php include("../baglantilar/baglan_canim.php"); include("../baglantilar/fonksiyonlar.php"); if (!isset($_SESSION)) { session_start();} if(isset($_POST[oyun])) { $strln123 = strlen($_POST[oyun]); if($strln123 >2) { $gln_kelime = $_POST[oyun]; //li direjtira peyva tinen mezintira 2 ? em di qontrol dikin $kml_Vrs = mysql_query("select etiket from cud_hizli_linkler where etiket = '$gln_kelime' limit 1"); if (mysql_num_rows($kml_Vrs) =!0) { mysql_query("UPDATE cud_hizli_linkler set hit=hit+1 where etiket = '$gln_kelime' limit 1"); } else { // ger peyva tinen em bi pirsin bê qeydê ji vi hene yan tünen ? $p_etiketii = permayap($_POST[oyun]); $yyever = mysql_query("SELECT id FROM oyunlar WHERE MATCH (icerik) AGAINST ('$gln_kelime' IN BOOLEAN MODE) limit 1 "); if(mysql_num_rows($yyever) !=0){ mysql_query("INSERT INTO cud_hizli_linkler (`etiket`, `etiket_seo`, `sonuc`, `hit`, `onay`) VALUES ('$gln_kelime','$p_etiketii', '1', '1', '1');"); } else { mysql_query("INSERT INTO cud_hizli_linkler (`etiket`, `etiket_seo`, `sonuc`, `hit`, `onay`) VALUES ('$gln_kelime','$p_etiketii', '0', '1', '1');"); } } } $url = "oyun/".$gln_kelime."htm"; header('Location : '.$url.''); } else { $url = "404.htm"; header('Location : '.$url.''); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/234705-eror-value-in-write-context/ Share on other sites More sharing options...
Fadion Posted April 25, 2011 Share Posted April 25, 2011 You have an error here: if (mysql_num_rows($kml_Vrs) =!0) { that should be replaced with: if (mysql_num_rows($kml_Vrs) != 0) { The comparison operator for "not equal" is !=, not =! Quote Link to comment https://forums.phpfreaks.com/topic/234705-eror-value-in-write-context/#findComment-1206111 Share on other sites More sharing options...
karker Posted April 25, 2011 Author Share Posted April 25, 2011 ohh thank you Quote Link to comment https://forums.phpfreaks.com/topic/234705-eror-value-in-write-context/#findComment-1206114 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.