View Single Post
  #1 (permalink)  
Old 07-29-2007, 10:02 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon13 PHP and mySQL Create Table Please Help!

Here's the current code that I have:

PHP Code:
$link mysql_connect($host,$username,$password) or die(mysql_error());
$query 'CREATE TABLE mycms ('.
         
'id INT NOT NULL AUTO_INCREMENT'.
         
'username VARCHAR(10) NOT NULL, '.
         
'password VARCHAR(10) NOT NULL, '
         
'PRIMARY KEY (id))';
         
$result mysql_query($query); 
Is there anything wrong with the code that I have? There's no error that PHP gives me, it seems that's all right, but when I double check on the localhost database, it doesn't have the table that I specified "mycms"

__________________
PHP Code:
System.out.println("Hello World!"); 

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