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

Table trouble
i have been reading the forum for a few weeks and decided to join. i like the format and the advice

CODE NOT WORKING
Code: [Select]<?php
//include shared codes

include '../lib/common.php';
include

Problems generating word documents on server side for security reasons
I have a problem with word documentation generation when generating a word document (docx) with PHP.

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

Getting Subdomain Name With PHP?
I want to grab the subdomain name with PHP so I can generate database queries.

for example my

Embed Video Problem
Hey, thanks for looking!

File to be embedded:

Code: <playlist version="1&q

Read from a text file after a specific word
Hi all.

I have a text file that looks like the one below.
I know how to open the text fi

Anti Spam Code
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I

Sending CC Info by email
I am a little bit less knowledgable in the security area as most developers and I know I have a lot

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