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

onClick='location.href=index.htm'> not working
Below is my code:

echo "<input type='button' value='redirect' onClick='location.h

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

unexpected T_VARIABLE error
Hey all! I'm getting an unexpected T_VARIABLE with the following function:

function getHighes

New Login Script
Hi all, i attempted to create a whole new login script witch isnt working for some reason i dont kno

Simple email form - Newbie
Hello all,

First time poster!

I've been asked to create a simple HTML form that submit

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

Relative path
I have a absolute path to an image - like so: C:/Program Files/Apache Software Foundation/Apache2.2/

Database/Table Collation
What is the Database, and table collations used for? i don't understand what there used for since co

Fetching META TAGS through
Hello everybody
I want to fetch meta tags of a domain.
It will be done from following code of

limitations on array_unique()
Does any one know what/how imitations are applied to array_unique? I have an issue where no matter h

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