View Full Version : What is wrong with this code?
DELETE FROM 'settingGROUP' WHERE 'settinggroupid' ='35' LIMIT1
I get errors and this is the code phpmyadmin produced itself. What should it be to delete a setting group in vb 2.2.6?
Odil
joecool
09-02-2002, 10:53 AM
i think it supposed to look like::
query("DELETE FROM settingGROUP WHERE settinggroupid =35 LIMIT1");
But i am very new to mysql so if this is totally wrong please 4give me. :)
Issvar
09-02-2002, 03:17 PM
What errors do you get?
And why do so many people besides you as well don't post the error message, but expect the forum members to be psychic and just know what the error is?
NTLDR
09-02-2002, 03:49 PM
DELETE FROM 'settinggroup' WHERE 'settinggroupid' ='35';
Note the case of the words.
Originally posted by NTLDR
DELETE FROM 'settinggroup' WHERE 'settinggroupid' ='35';
Note the case of the words.
Again I get the same error below:
Database error in vBulletin Control Panel 2.2.6:
Invalid SQL: DELETE FROM 'settinggroup' WHERE 'settinggroupid' ='35';
mysql error: You have an error in your SQL syntax near ''settinggroup' WHERE 'settinggroupid' ='35';
' at line 1
mysql error number: 1064
I am starting to think there is an error in the settinggroup itself, As a test, I deleted something else that I didn't need using the same code that phpmyadmin geberates and it deleted just fine.
Odil
g-force2k2
09-02-2002, 06:24 PM
run this query...
DELETE FROM settinggroup WHERE settinggroupid=35
regards...
g-force2k2
Originally posted by g-force2k2
run this query...
DELETE FROM settinggroup WHERE settinggroupid=35
regards...
g-force2k2
It gets this error:
Database error in vBulletin Control Panel 2.2.6:
Invalid SQL: DELETE FROM settinggroup WHERE settinggroupid=35
mysql error: Can't open file: 'settinggroup.MYD'. (errno: 144)
mysql error number: 1016
NTLDR
09-02-2002, 06:42 PM
Do your forums work correctly / can you change settings in the Admin CP, if not run repair.php from the extra folder in the zip, your DB may be corrupt.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.