The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am runnig this query from a file
PHP Code:
Invalid SQL: INSERT INTO item_cats (name,battle,order,description) VALUES (' test ',' 1 ',' 1 ',' test ') 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 'order,description) VALUES (' test ',' 1 ',' 1 ',' test ')' at l mysql error number: 1064 I have had some one on my msn list look over the query and they cannot find a problem with it. This is driving me insane and anyhelp would be greatly appreciated :tired: ![]() |
#2
|
||||
|
||||
![]()
You don't need to quote numerical values.
|
#3
|
||||
|
||||
![]()
no luck, now i gives
Invalid SQL: INSERT INTO item_cats (name,battle,order,description) VALUES (' test ',1,1,' test ') 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 'order,description) VALUES (' test ',1,1,' test ')' at line 1 mysql error number: 1064 |
#4
|
||||
|
||||
![]()
You cant use 'order' as a column name. Change it
|
#5
|
||||
|
||||
![]()
thanks assassingod, that worked straight away
![]() |
#6
|
||||
|
||||
![]()
No problem
![]() |
#7
|
||||
|
||||
![]()
now im having problems with mysql_fetch_array()
PHP Code:
![]() |
#8
|
|||
|
|||
![]()
As an unrelated note, you have massive SQL injection issues. Use addslashes() for every string used in a query, no exceptions.
|
#9
|
||||
|
||||
![]()
i assume you are talking about the first post? I probobly will later but its in the admin panel so its not really a hugh problem but i will update it in my file
![]() |
#10
|
||||
|
||||
![]() Quote:
e.g. PHP Code:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|