GeRik Posted July 1, 2009 Report Posted July 1, 2009 Rada shadu erroru daziem rada daziem ne kad ieeiet mana web lapa You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 errors nak no shiis te liinijas $insert_link = mysql_query("UPDATE ibf_members SET last_link='".$link."' WHERE id=".$_COOKIE['member_id']) or die(mysql_error());
xPtv45z Posted July 1, 2009 Report Posted July 1, 2009 MInēšu ka rāda visiem, kas nav ielogojušies, jeb kuriem nav $_COOKIE['member_id']
GeRik Posted July 1, 2009 Author Report Posted July 1, 2009 (edited) jap un ka to izlabot lai vinjiem nerada erroru ? Edited July 1, 2009 by GeRik
J0ke Posted July 1, 2009 Report Posted July 1, 2009 varbūt tā :D if (!empty($_COOKIE['member_id'])) { mysql_unbuffered_query("UPDATE ibf_members SET last_link='$link' WHERE id=".$_COOKIE['member_id']) or echo mysql_error(); }
GeRik Posted July 1, 2009 Author Report Posted July 1, 2009 pieliekot tadu rada syntax error, unexpected T_ECHO in
marcis Posted July 1, 2009 Report Posted July 1, 2009 Tāpēc ka echo tur nav īstā vieta. mysql_query("SELECT...")or die(mysql_error());
GeRik Posted July 1, 2009 Author Report Posted July 1, 2009 Tāpēc ka echo tur nav īstā vieta. mysql_query("SELECT...")or die(mysql_error()); es jau atrisanju tikai savadaka veida <? $link = $_SERVER['REQUEST_URI']; if($_COOKIE['member_id'] > 0) { $insert_link = mysql_query("UPDATE ibf_members SET last_link='".$link."' WHERE id=".$_COOKIE['member_id']) or die(mysql_error()); } ?>
ezis Posted July 1, 2009 Report Posted July 1, 2009 kā ar if(isset($_COOKIE['member_id'])) { $insert_link = mysql_query("UPDATE ibf_members SET last_link='".$link."' WHERE id=".$_COOKIE['member_id']) or die(mysql_error()); } ?
GeRik Posted July 1, 2009 Author Report Posted July 1, 2009 (edited) nesapratu ko tu domaji vis strada tagad Ja nav id tad komanda netiek palaista Edited July 1, 2009 by GeRik
ezis Posted July 1, 2009 Report Posted July 1, 2009 tev tak biaj tas errors? nu id izraisa to erroru! ai kr4 tagad nav laika. IZMANTO SMADZENES UN VISS BUUS OK! GL!
Recommended Posts