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

Extract specific information from a PHP Multidimensional Array
Howdy! I've racked my brain over this for 24 hours now. I think it's time I asked for help. I'm lear

Pagination
Hi All,

I think I'm finally getting somewhere with pagination!

I can now submit a quer

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

LOOPing Problem
Hello All!

The following code loops through the data and displays the data accordingly. My p

please fix the error
What is the error in the below code ???
Line number On/Off | Expand/Contract <?php

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

how to load php class from another domain?
how to load php class from another domain?

how to hide input fields on selection screen using variant attribute
Hello all,

I want to know how to hide input fields on selection screen using variant attr

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

Disable Scrollbar in TableControl
Hello everbody,

please can anybody help me - outherwise i'm going to become desperate :P<

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