Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

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.
0
designersx
Asked:
designersx
2 Solutions
 
Roger BaklundCommented:
You have misspelled VARCHAR:

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

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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now