ziedinjsh Posted August 19, 2012 Report Share Posted August 19, 2012 mysql_query("insert into links (title, desc, link, img_to_upload, date) values ('$title', '$desc', '$link', '$photo', '$date')") or die(mysql_error()); visu laiku bļauj 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 ''title', 'desc', 'link', 'img_to_upload', 'date') values ('besiiiiii ' at line 1 kā tad vēl var saglabāt??? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 19, 2012 Author Report Share Posted August 19, 2012 ak.. mjā.. nomainīju desc pret citu un viss ok Quote Link to comment Share on other sites More sharing options...
malinens Posted August 19, 2012 Report Share Posted August 19, 2012 (edited) varēji arī nemainīt, bet desc vietā darīt tā: <pre class="prettyprint">...title, `desc`, link,...</pre> Edited August 19, 2012 by malinens Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.