![]() |
|
#1
|
||||
|
||||
Cannot create a table in DBUsing the same code idea from two other PHP scripts that work I can't get a table created in a third DB. Each DB was created in the same way. Using the code:
PHP Code:
Code:
Is there any way to get the reason for a failure? All I can find so far is the function returns TRUE and FALSE. __________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#2
|
||||
|
||||
Re: Cannot create a table in DBYou already have a table named [otr] in that Database. To recreate it, you must first delete it (DROP TABLE otr).
__________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
||||
|
||||
Re: Cannot create a table in DBAh, I see you have code for dropping the table... back to the drawing board
[edit] I don't see you checking whether the connection was successful (the mysql_connect call). In case that failed, wouldn't the other calls fail too? [/edit] __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#4
|
||||
|
||||
Re: Cannot create a table in DBQuote:
Code:
PHP Code:
Is there any way to get more detailed information from a failure? __________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
Recent GIDBlog
Prepping for deployment by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making table of LCM using arrays | azncrazycooler | CPP / C++ Forum | 5 | 01-Dec-2005 03:52 |
| C league table | Networkedd | C Programming Language | 3 | 13-Mar-2005 17:20 |
| Hash Table & Graph | Kay Chan | CPP / C++ Forum | 7 | 08-Oct-2004 07:44 |
| Can't seem to create db | Tigress7 | MySQL / PHP Forum | 3 | 19-Aug-2003 09:19 |
| [Tutorial] MySQL Basics | nniehoff | MySQL / PHP Forum | 15 | 23-Mar-2003 19:42 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The