![]() |
|
#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. __________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
||||
|
#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? __________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making table of LCM using arrays | azncrazycooler | C++ Forum | 5 | 01-Dec-2005 04:52 |
| C league table | Networkedd | C Programming Language | 3 | 13-Mar-2005 18:20 |
| Hash Table & Graph | Kay Chan | C++ Forum | 7 | 08-Oct-2004 08:44 |
| Can't seem to create db | Tigress7 | MySQL / PHP Forum | 3 | 19-Aug-2003 10:19 |
| [Tutorial] MySQL Basics | nniehoff | MySQL / PHP Forum | 15 | 23-Mar-2003 20:42 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The