Jump to content

[SOLVED] [MYSQL_QUERY] Retrieving a text field from mysql....error!


flaab

Recommended Posts

Good morning =)

 

I'm having a little problem retrieving a text field(not varchar) from a Mysql Table. Here is the code...

 

$result=mysql_query("SELECT desc FROM `retosP` WHERE id = '$pid' ");

 

Desc it's a text field. Every other fields just work fine.

 

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 `retosP` WHERE id = '' at line 1

 

How can i do this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.