• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

SQL question

paruhd0x

Diamond Member
I'm editing my SQL database so I can add the color names feature on my msg board... I'm stuck though on one of the instructions I am supposed to follow.

Here is what I am supposed to do:

INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_custom_color', '250');

Here is a pic of what I have to work with... (I'm using phpmyadmin through cpanel)

SQL question

Any help is appreciated!
 
Have you tried running the sql statement from the "Run SQL query/queries on database " box on the home db page?
 
The screen you provided is editing the table attributes... You cannot run the SQL Command from there...
 
I think allow_custom_color should go in "Length/Values*" column, and the number '250' should go in 'Values' column ?
 
Originally posted by: ISAslot
Have you tried running the sql statement from the "Run SQL query/queries on database " box on the home db page?

I got an invalid syntax error... not sure what I'm supposed to run in it exactly...
 
Originally posted by: BCYL
The screen you provided is editing the table attributes... You cannot run the SQL Command from there...

Can you direct me to where I am supposed to be? =)
 
Originally posted by: paruhd0x
Originally posted by: ISAslot
Have you tried running the sql statement from the "Run SQL query/queries on database " box on the home db page?

I got an invalid syntax error... not sure what I'm supposed to run in it exactly...

There should be a place that lets you run an SQL statement aginst the db. Try this and post the results.

"SELECT * FROM phpbb_config"
 
Failed to update general configuration for ('allow_custom_color', '250')

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'allow_custom_color', '250')' WHERE config_name = '('allow_custom_color', '25' at line 2

UPDATE phpbb_config SET config_value = '('allow_custom_color', '250')' WHERE config_name = '('allow_custom_color', '250')'

Line : 62
File : /home/paradox/public_html/bb/admin/admin_board.php

Uh oh. Now i'm stuck 🙁
 
Originally posted by: jonmullen
Originally posted by: paruhd0x
Originally posted by: ISAslot
Have you tried running the sql statement from the "Run SQL query/queries on database " box on the home db page?

I got an invalid syntax error... not sure what I'm supposed to run in it exactly...

There should be a place that lets you run an SQL statement aginst the db. Try this and post the results.

"SELECT * FROM phpbb_config"

I ran that and got this:

Database paradox_xmb3 - Table phpbb_config running on localhost

Error

SQL-query :

"SELECT * FROM phpbb_config"

MySQL said:

You have an error in your SQL syntax near '"SELECT * FROM phpbb_config"' at line 1
 
Originally posted by: paruhd0x
Failed to update general configuration for ('allow_custom_color', '250')

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'allow_custom_color', '250')' WHERE config_name = '('allow_custom_color', '25' at line 2

UPDATE phpbb_config SET config_value = '('allow_custom_color', '250')' WHERE config_name = '('allow_custom_color', '250')'

Line : 62
File : /home/paradox/public_html/bb/admin/admin_board.php

Uh oh. Now i'm stuck 🙁

You need to run this:

UPDATE phpbb_config SET config_value = '250' WHERE config_name = 'allow_custom_color'


 
Originally posted by: paruhd0x
Originally posted by: jonmullen
Originally posted by: paruhd0x
Originally posted by: ISAslot
Have you tried running the sql statement from the "Run SQL query/queries on database " box on the home db page?

I got an invalid syntax error... not sure what I'm supposed to run in it exactly...

There should be a place that lets you run an SQL statement aginst the db. Try this and post the results.

"SELECT * FROM phpbb_config"

I ran that and got this:

Database paradox_xmb3 - Table phpbb_config running on localhost

Error

SQL-query :

"SELECT * FROM phpbb_config"

MySQL said:

You have an error in your SQL syntax near '"SELECT * FROM phpbb_config"' at line 1

You do not need the double-quotes in the select statement... so just:

select * from phpbb_config

is fine...

EDIT: Seems like you dont know anything about SQL... maybe you should try doing some reading on it before using it...
 
Oh well, I gave up and did a SQL database restore and phpbb restore. I'll try again later.

Of course I don't know any SQL, I'm just modding my phpbb... they tell you step by step what to do. Normally I don't have any problems.
 
Back
Top