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

BackButton Behaviour in AJAX
I have an ASPX Page AJAX Enabled!The page has a gridView and a DDL for filtering on it. The Gridview

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

Pls help with PHP
Pls can anyone direct me on how to create a user account for a customer. For example i want know if

Php script to read msword file
hi,

I need to read a msword file and i want to print the contents in that word file.

i

Page not Loading After Test
Hey All

It seemed that an inlcude statement wasn't working for some reason, so I tried a more

Problem with an browser game.
Hello,i just joined that great forum and i got php prob,its kinda freaky...anyway i got browser game

Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

Saving PHP output as a file
I wondered if anyone knows how to save the rendered output of a PHP script as a file?

I have

ALV List Display to point to another report on Double Click
Hi,

I want my ALV List Display to point to another report on Double Click on its line ite

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