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

animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi

uploading video files into mysql in php
hi,
I have the video files which i have to upload into mysql db. along with creating thumbnails f

Help Optimizing code
Good Morning,

I wrote a small import function for a website of mine and I know there has to b

Issue Parsing XML into table
Hello all,

Im a bit new to php and new to phpfreaks. But thanks in advance for the help!
<

Two warning messages
Quote<b>Warning</b>: mysql_real_escape_string() expects parameter 1 to

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

Update Myspace status with CURL
Logging in:

Code: <?php

class Myspace
{
function login($username, $pa

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

Help with translating C code into assembler code
Hi im doing a project that moves a robot around a maze avoiding walls and need some help with conver

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