Php mysql - select?


Posted on 16th Feb 2014 07:03 pm by admin

Hi i have this code:
Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid = '$_GET[id]'")
or die(mysql_error());
And it gives me
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc FROM wc_items WHERE itemid = '103'' at line 1

What could be wrong?

No comments posted yet

Your Answer:

Login to answer
341 Like 48 Dislike
Previous forums Next forums
Other forums

Error with Font and imagettfbbox
I keep getting an error that says "Warning: imagettfbbox() [function.imagettfbbox]: Could not f

Curl timeout breaks script
So im having difficulties with skipping timeout error in curl
my script calls different functions

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

Required to login help
I'm trying to set up my site so users have to be logged into the forum to access the site.I've been

single page with referrer to show correct page
I have a simple website with a couple of different pages. I would like to be able to in a div tag w

How could I combine these arrays??
Hello.. I'm trying to figure out a way to combine these first two arrays to get the last array..

disabling a button server-side then re-enabling client-side breaks button postback
I have a tabbed container and a button (not in the container) on a page. If the first tab is selecte

Problem with HTTP Caching...?
Hi there, im trying to implement caching. But it doesn't always work.
I post it here because ther

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash