php - phpmyadmin issue in accessing text data stored in a table -
I am using an L (inux) A (pache) M (ysql) P (hp) installation site and There are some issues arriving in the data stored in the text of my database as text.
I created a table with 2 fields:
-
id: type
-
- < P>
/ P>
$ query = "SELECT text_field FROM` table_name` WHERE (id = '$ id')" ; $ Query_result = mysql_query ($ query); Echo $ query_result;
The output table will not contain the stored text, but the following:
"Resource ID # 5"
Any ideas on what I'm doing wrong?
Thanks in advance!
Matio
You must first obtain the array
$ query = "SELECT text_field FROM` table_name` WHERE (id = '$ id') "; $ Query_result = mysql_query ($ query); $ Result = mysql_fetch_array ($ query_result); Copy $ result ['text_field'];
Comments
Post a Comment