vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What is wrong with this code? (https://vborg.vbsupport.ru/showthread.php?t=43071)

Odil 09-02-2002 05:27 AM

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

[sql]DELETE FROM 'settinggroup' WHERE 'settinggroupid' ='35';[/sql]
Note the case of the words.

Odil 09-02-2002 06:03 PM

Quote:

Originally posted by NTLDR
[sql]DELETE FROM 'settinggroup' WHERE 'settinggroupid' ='35';[/sql]
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...

PHP Code:

DELETE FROM settinggroup WHERE settinggroupid=35 

regards...

g-force2k2

Odil 09-02-2002 06:27 PM

Quote:

Originally posted by g-force2k2
run this query...

PHP Code:

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.


All times are GMT. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01060 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete