| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Apr 2004
Posts: 66
![]() | Simple PHP/MySQL question Hi, I've been working on a forum that has a mod for Adsense Rev Share. After I got it installed everything loads fine, but when you go to update your adsense code in the profile you get the following error: ????: NamePros.com http://www.namepros.com/programming/49800-simple-php-mysql-question.html =========== Could not select default dateformat DEBUG MODE SQL Error : 1146 Table 'webhostb_phpbb1.phpbb_ad_user' doesn't exist SELECT * FROM phpbb_ad_user WHERE user_id = 2 Line : 26 File : /home/webhostb/public_html/ad_profile.php ============ I'm not a pro at DBs but this looks like missing table(s). Anyone willing to help me solve this for NP$? |
| |
| | #2 (permalink) |
| Account Closed Join Date: May 2004 Location: /etc/passwd
Posts: 2,178
![]() ![]() ![]() ![]() ![]() ![]() | well it seems that the table is missing, look in phpMyAdmin and click on your database, and look for that table, if its missing. Try looking for the sql queries for it They usally are named like db.sql or database.sql or something like that it could be in the readme file or something. Well post back Ill help you out |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Apr 2004
Posts: 66
![]() | Thanks for the reply! Believe it or not the install file was useless and there are no .sql files to run through phpmyadmin. I know exactly what you're talking about and there just isn't any with this. I also went to the site that was listed for who created it and that seems to have been just as much of a waste. No one has bothered to answer the question on that forum either. Is it possible that the table can be created without anything being imported into it or is that highly unlikely? |
| |
| | #5 (permalink) |
| NamePros Regular Join Date: Sep 2004 Location: Poland
Posts: 245
![]() | I guess the install did not go thru completely, it did not create the tabel which the script needs. Can you send me the files which make up this mod, maybe I will be able to extract the SQL for table cration from them. The SQL code must be there
__________________ Dropcatcher.de - .de domain dropcatching! |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Sep 2004 Location: Poland
Posts: 245
![]() | Ooops, apparently these files don't have any installation script. But I hacked the SQL queries which use this table and I created the structure from scratch Here you have the necessary code:Code: CREATE TABLE phpbb_ad_user
(
user_id INTEGER PRIMARY KEY,
ad_client_id CHAR(25) NOT NULL,
ad_channel CHAR(25) NOT NULL
); ![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=49800 BTW, the version number is 0.01, it gives me a suspicion that it would not work very well even if you create the table...
__________________ Dropcatcher.de - .de domain dropcatching! |
| |
| | THREAD STARTER #8 (permalink) | ||||
| NamePros Member Join Date: Apr 2004
Posts: 66
![]() |
| ||||
| |
| | #9 (permalink) |
| NamePros Regular Join Date: Sep 2004 Location: Poland
Posts: 245
![]() | You're most welcome
__________________ Dropcatcher.de - .de domain dropcatching! |
| |