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
Did you know?Explore Trending and Topic pages for more stories like this.
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

Checking BOM Authorization Group
Hai Friends,

I have developed a mulitilevel BOM display report. End users have been assig

how to validate date using javascript
I need to validate date in textbox using javascript..
The date is must be not greater than TODAY

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

If a record matches an existing record do nothing
So I don't know if I should put this here or in mysql, but what my script is for is for people to ad

Interpret Order
Hello all,

I'm wondering if I have this:

Code: $switch = array(
'one' =>

Getting Resource id #11 while trying to connect..
So i tried using "DEFINE" for the first time and im using the variables i defined to conne

Schedule editor
Hi,

I have a question related to Schedule editor.
If we schedule a BLS for every 30

php - xml what is the best way to do this.
IN essence I want to have a script calling the info from the database.. I have no problem thus far,

php call servlet
I have done a php backup application .
So there is a form that user pick some files to zip and d

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