View Single Post
  #5 (permalink)  
Old 06-13-2007, 03:49 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Admin
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 442
iTrader: (0)
TeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to behold
I usually create the table in PHPMyAdmin and then export the structure. Copy that, remove the ending semi-colon, and put it inbetween mysql_query(" and ");. Then to error check you can do something like this:

PHP Code:
if (mysql_query("...")) {
 
//Success 
} else {
 echo 
'Error creating database table: '.mysql_errno().' :: '.mysql_error().'<br />';


__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote