List:General Discussion« Previous MessageNext Message »
From:dennis skinner Date:July 20 2010 4:28pm
Subject:newb problem
View as plain text  


Hello   I am a new mysql user.  Can anyone tell me why this does not create a table?
<           ?php    (the spaces before the question mark are not in the code)
mysql_connect(localhost, $dbuser, $dbpassword);
mysql_select_db($dbname) or die("unable to select database");
$query="create table patnotes(patid int(9) not null unsigned, patnote int(6) not null
unsigned auto_increment,
parentid int not null unsigned, appuserid varchar(40) not null, subject varchar(100) not
body longtext not null),
primary key(patnote),
unique id(patnote)";
then the closing question mark and carat on this line              this does not build a
file and I am wondering what syntax I am missing here                  thanks dennis 

Hotmail. Get busy. 		 	   		  
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
newb problemdennis skinner20 Jul
  • Re: newb problemWm Mussatto20 Jul
  • Re: newb problemChris W20 Jul
  • Re: newb problemjayabharath21 Jul