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

Replacing a string on click of a button
Hi! Is there a way to replace a string on a click of a text link?

This is what I've come up w

Dynamic memory problem
Hey,

At the beginning of my code, I have this line:

Shape* gShape = 0;

Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not s

need a script for 3 pages
I have a customer who wants me to set up a site with a number of pages with the following requiremen

Agency Business Process
Hi,

I don’t understand the process of the agency business in SAP.

In my

Xacute search within SQL results
I have a query that is pulling data, and I want to return a specific value from the results of that

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

generating random codes
Hi guys n gals,

I have a requirement to generate 250,000 unique codes...

These codes a

Multiple server callbacks (NOT POSTBACKS)
Hello, I have 2 different javascript client side functions that are on timers. When the timers elap

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

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