Solved

query problem

Posted on 2009-07-04
3
290 Views
Last Modified: 2012-05-07
$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
Comment
Question by:designersx
3 Comments
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 75 total points
ID: 24777238
You have misspelled VARCHAR:

$sql = "create table idea(title varchar(255), content longtext)";
0
 
LVL 13

Assisted Solution

by:marchent
marchent earned 50 total points
ID: 24777242
you have a typo at "varchar"

create table idea(title varchar(255), content longtext);
0
 

Author Comment

by:designersx
ID: 24777264
thanks solved.,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Echo vs ?><?php  html code 4 45
Blog posts not showing up on Blog page 7 50
PHP Healthcheck 2 83
Is this error or Notice in php error log? 6 32
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now