|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot "insert into" database
PHP Code:
Hi. The above script just run perfect for me, but i having a big problem on the script, it just not allow me to insert into the table call "order". am i missing samething? appreciate for any solution, Thank you. kelvin |
|
#2
|
|||
|
|||
|
Are you sure you really have an existing table called order???
Shouldn't the db not allow you to create that table as it is a keyword? Also, you might want to take a look at your query. It is very unorganized: Code:
("Insert Into order Values (".$Get_Buyer_Id.", ".$row['itemName'].", ".$row['qty'].", ".$HTTP_GET_VARS['Get_Total'].")");
Try putting this into a variable that way you can print or echo the variable and check that you have valid sql.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
It could also be that 'order' is a MySQL reserved word . . ?
http://www.mysql.com/doc/en/Reserved_words.html |
|
#4
|
|||
|
|||
|
oops, sorry Laidback, just saw you'd picked this as well.
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Database Development > Cannot "insert into" database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|