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

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

Quick fix: Conditional statement with an array
Hi, I'm getting the temperature value off of the Environment Canada website along with the icon file

selectbox+database connection retrive problem
Code: [Select]
<tr>
<th align="left" scope="c

On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p

Why does my php page download images over and over
Can anybody please explain to me why my php page keeps downloading the images and other items every

Include a php
Hello,

I'm trying to include a function that shows the recent searches.
Example I have <

Phase Error I can't seem to find :(`
Hey guys, I can seem to find my phase error on this. I am getting this error

[error]
Pars

UTL File problem
Hi
I have a file in certain path with the following permissions (The file is a dummy file witho

serializing objects - loses methods - the point being?
Hi

I know that serializing an object will lose the methods. But whats the point in that? What

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