![]() |
Quote:
$tableprefix = ' '; Do I add this line in like as below: BUT WHEN I RUN IT STILL GIVE ME ERROR. I am really don't know how to run sql Error SQL-query : $tableprefix = ' ' MySQL said: #1064 - 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 '$tableprefix = ' '' at line 3 ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL; ALTER TABLE `forum` ADD `showthanks_date` INT(1) DEFAULT '0' NOT NULL; $tableprefix = ''; CREATE TABLE `thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `threadid` INT(10) NOT NULL ); |
Quote:
|
Quote:
|
Just run the query as it is and you will be allright.
|
Quote:
Error SQL-query : ALTER TABLE `forum` ADD `showthanks` INT( 1 ) DEFAULT '0' NOT NULL MySQL said: #1060 - Duplicate column name 'showthanks' ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL; ALTER TABLE `forum` ADD `showthanks_date` INT(1) DEFAULT '0' NOT NULL; CREATE TABLE `thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `threadid` INT(10) NOT NULL ); |
I run success for SQL queries on my database, but I don't understand for this line:
Don't forget to add a prefix to table's name if you use one in your config.php Look in config.php I see this: $tableprefix = ''; What do I need to do? because right now when I click on the " thank you" button to test. It give me this message: Calvin, you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. |
Just run these 3 queries and don't worry about the table_prefix. You don't have one. ;)
Quote:
|
I have already run it. And following all intruction that he gave. But when I test to click on a button "Thank you" , It said I did't have permision like that message previous posts.
|
Quote:
Quote:
|
Quote:
|
All times are GMT. The time now is 01:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|