Jump to content
php.lv forumi

Daziem error Daziem ne


Recommended Posts

Posted

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());

Posted (edited)

jap un ka to izlabot lai vinjiem nerada erroru ?

Edited by GeRik
Posted

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();
}

Posted

pieliekot tadu rada syntax error, unexpected T_ECHO in

Posted

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());

}

?>

Posted

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());
}

?

Posted (edited)

nesapratu ko tu domaji vis strada tagad Ja nav id tad komanda netiek palaista

Edited by GeRik
Posted

tev tak biaj tas errors? nu id izraisa to erroru! ai kr4 tagad nav laika.

 

IZMANTO SMADZENES UN VISS BUUS OK!

GL!

×
×
  • Create New...