mpsn Posted October 31, 2011 Share Posted October 31, 2011 Hi, how do I store as a string (in a variable) a mysql query b/c what I'm doing below outputs Resource id in client browser: <?php //database connection set up etc $show=mysql_query("SELECT file_Name FROM xdocument WHERE doc_id=95"); print $show; ?> Any help much appreciated, thanks. Link to comment https://forums.phpfreaks.com/topic/250138-how-to-store-as-string-mysql-query/ Share on other sites More sharing options...
trq Posted October 31, 2011 Share Posted October 31, 2011 Take a look at the mysql_fetch_assoc examples. Link to comment https://forums.phpfreaks.com/topic/250138-how-to-store-as-string-mysql-query/#findComment-1283567 Share on other sites More sharing options...
mpsn Posted October 31, 2011 Author Share Posted October 31, 2011 thanks a bunch! Link to comment https://forums.phpfreaks.com/topic/250138-how-to-store-as-string-mysql-query/#findComment-1283570 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.