Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
syntax error, can't see it
Old 06-20-2005, 05:11 PM syntax error, can't see it
bman's Avatar
Skilled Talker

Posts: 85
Location: USA
Trades: 0
Help would be appreciated, When I try to run this Php install script I get the following error “Table 'camrose.devbg' doesn't exist”
The script is supposed to setup the db and the tables but it just returns the above error. The require connection to the mysql dB works. It appears to be some syntax error I can’t figure out. Anyone see it.

bman


Code:
<? 
require("conn.php"); 

$q1 = "DROP TABLE IF EXISTS dd_newsletter"; 
mysql_query($q1) or die(mysql_error()." at line ". __LINE__); 

$q1 = "CREATE TABLE dd_newsletter ( 
nemail varchar(150) NOT NULL default '', 
PRIMARY KEY (nemail)) "; 
mysql_query($q1) or die(mysql_error()." at line ". __LINE__);

Last edited by bman; 06-20-2005 at 05:14 PM..
bman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-20-2005, 05:15 PM
Novice Talker

Posts: 9
Location: Moscow, Russia
Trades: 0
Explain the situation.
There is no error in this code. Maybe u have an error in conn.php file?

Last edited by PiterZ; 06-20-2005 at 05:27 PM..
PiterZ is offline
Reply With Quote
View Public Profile Visit PiterZ's homepage!
 
Old 06-20-2005, 05:23 PM
bman's Avatar
Skilled Talker

Posts: 85
Location: USA
Trades: 0
The connection works I check it some how I get the “Table 'camrose.devbg' doesn't exist” error I call it a error because it will not perform the task., it just spits out the above.

Last edited by bman; 06-20-2005 at 05:29 PM..
bman is offline
Reply With Quote
View Public Profile
 
Old 06-20-2005, 05:30 PM
Novice Talker

Posts: 9
Location: Moscow, Russia
Trades: 0
First of all find where your script uses this table 'camrose.devbg'. Than put here this extract.
PiterZ is offline
Reply With Quote
View Public Profile Visit PiterZ's homepage!
 
Old 06-20-2005, 05:39 PM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Trades: 1
You obviously have something wrong with your connection as the above error has nothing to do with the code that you have posted.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 06-20-2005, 06:05 PM
bman's Avatar
Skilled Talker

Posts: 85
Location: USA
Trades: 0
You are right. I have a require request that was executing the connection correctly, but I added code to it for reinstalling at the bottom of the file and it was make request from the db for things that have not been created yet.

Thanks for the help anyway.
bman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to syntax error, can't see it
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22575 seconds with 12 queries