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

RFQ Configuration - can you make PLANT field an optional field in ME42
Is there a way to make the plant field on an RFQ optional in change mode (ME42)?

PHP page is blank
Hi Everyone,

I have a site in which I am able to open the first PHP webpage in my browser but

Error in SQL Syntax HELP!!!
I have this page:

Code: <?php

session_start();

//connect to server and s

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

Firewall / visited websites logger
Hi. I have a firewall implementation and I want to log all the websites visited on the machine. S

form class help (oop php5)
Hidy Ho Neighbors,

I'm forcing myself to learn oop/classes for php5. It seems like a good id

Cloud Computing?
Hello,

I was wondering if anyone could help explain this term to me. I'm starting to hear it

Count of reciepients in php mailer
How can i sent a mail to large no of reciepients say 10,00,00 Using PHP MAILER

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

Reditecting pages based on logic
Newbie here, apologies in advance!

I am trying to use the header function to forward one of a

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