query problem

$sql = "create table idea(title varhcar(255), content longtext)";
$qid=mysql_query($sql) or die("could not create".mysql_error());

there is a error in content longtext.
designersxAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Roger BaklundConnect With a Mentor Commented:
You have misspelled VARCHAR:

$sql = "create table idea(title varchar(255), content longtext)";
0
 
marchentConnect With a Mentor Commented:
you have a typo at "varchar"

create table idea(title varchar(255), content longtext);
0
 
designersxAuthor Commented:
thanks solved.,
0
All Courses

From novice to tech pro — start learning today.