GeRik Posted July 1, 2009 Report Share 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()); Link to comment Share on other sites More sharing options...
xPtv45z Posted July 1, 2009 Report Share Posted July 1, 2009 MInēšu ka rāda visiem, kas nav ielogojušies, jeb kuriem nav $_COOKIE['member_id'] Link to comment Share on other sites More sharing options...
GeRik Posted July 1, 2009 Author Report Share Posted July 1, 2009 (edited) jap un ka to izlabot lai vinjiem nerada erroru ? Edited July 1, 2009 by GeRik Link to comment Share on other sites More sharing options...
J0ke Posted July 1, 2009 Report Share 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(); } Link to comment Share on other sites More sharing options...
GeRik Posted July 1, 2009 Author Report Share Posted July 1, 2009 pieliekot tadu rada syntax error, unexpected T_ECHO in Link to comment Share on other sites More sharing options...
marcis Posted July 1, 2009 Report Share Posted July 1, 2009 Tāpēc ka echo tur nav īstā vieta. mysql_query("SELECT...")or die(mysql_error()); Link to comment Share on other sites More sharing options...
GeRik Posted July 1, 2009 Author Report Share 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()); } ?> Link to comment Share on other sites More sharing options...
ezis Posted July 1, 2009 Report Share 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()); } ? Link to comment Share on other sites More sharing options...
GeRik Posted July 1, 2009 Author Report Share 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 Link to comment Share on other sites More sharing options...
ezis Posted July 1, 2009 Report Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts