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. Quote 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. Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.