|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
SQl syntax
can anyone help me to edit it to correct form?
$query="insert into book(buyer) values('".$x."')where id=".$book; |
|
#2
|
||||
|
||||
|
Quote:
Code:
$query="INSERT INTO `book` SET buyer='" . $x . "' WHERE id=" . $book; |
|
#3
|
||||
|
||||
|
A WHERE cause has to be used with an UPDATE query instead of INSERT INTO.
Code:
UPDATE `book` SET buyer='xxx' WHERE id=123 Moved thread to Mysql forum |
|
#4
|
||||
|
||||
|
Silly me...
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > SQl syntax |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|