dazzyweb Posted June 4, 2013 Share Posted June 4, 2013 I am learning php and i am a little stuck on something. What exactly is a mysql Resource? What is meant by Resource in PHP Quote Link to comment https://forums.phpfreaks.com/topic/278774-what-is-a-mysql-resource/ Share on other sites More sharing options...
dazzyweb Posted June 4, 2013 Author Share Posted June 4, 2013 What exactly is a mysql Resource? What is meant by a mysql resource This is a quote from tizag 'When you perform a SELECT query on the database it will return a MySQL Resource that holds everything from your MySQL table, "example". We want to use this Resource in our PHP code, so we need to store it in a variable, $result.' Quote Link to comment https://forums.phpfreaks.com/topic/278774-what-is-a-mysql-resource/#findComment-1434093 Share on other sites More sharing options...
Solution Jessica Posted June 4, 2013 Solution Share Posted June 4, 2013 Do not bump your posts. The quote pretty much explains it as far as what you need to know to use it. For more information see the PHP manual. http://us2.php.net/manual/en/language.types.resource.php Quote Link to comment https://forums.phpfreaks.com/topic/278774-what-is-a-mysql-resource/#findComment-1434096 Share on other sites More sharing options...
dazzyweb Posted June 4, 2013 Author Share Posted June 4, 2013 Hi I didn't mean to bump. Just wanted to explain my question a little more. The liink you gave me makes it more clear for me. 'A resource is a special variable, holding a reference to an external resource.' It was the terminology that i had a problem with. Now all is clear :-) Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/278774-what-is-a-mysql-resource/#findComment-1434101 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.