Jump to content
php.lv forumi

Daziem error Daziem ne


GeRik

Recommended Posts

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

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

×
×
  • Create New...