Jump to content

[SOLVED] Need a pair of eyes


mapleleaf

Recommended Posts

<?php
$query = "UPDATE books SET title = '$book_title', author = '$author', edition = '$edition', subject = '$subject', isbn = '$isbn', condition = '$condition', price = '$price', method = '$method' WHERE id = '$id'";
            $result = mysql_query($query) or die(mysql_error());
?>

 

gives this 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 'condition = 'good', price = '6262', method = 'sell' WHERE id = '16'' at line 1

 

 

I can't see it. Maybe I should sleep!! ???

Help much appreciated

 

Link to comment
https://forums.phpfreaks.com/topic/132378-solved-need-a-pair-of-eyes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.