Jump to content
php.lv forumi

You have an error


ziedinjsh

Recommended Posts

nu nekādīgi nevaru iebraukt!!!!

 

tik vnienkārša lieta 

<?php
include('datubaaze.php');

mysql_query("update wall set read='yes'") or die(mysql_error());

?>

 

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 'read='yes'' at line 1

 

Es neredzu nekādu sintakses kļūdu! citā php failā šāda veida update strādā...

Link to comment
Share on other sites

<?php
include('datubaaze.php');

mysql_query("UPDATE `wall` SET `read`='yes'") or die(mysql_error());

?>
 

 

Pamēģini šitā!

 

at line 1

 

Iespējams, ka kļūda ir citā kverijā. Ieteiktu papētīt "datubaaze.php". Pamēģini to include noņemt, un paskaties, vai tad arī ir kļūda, ja nav, tad zināsi, ka kļūda rodas tur.

Edited by WingTsun
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...