what is a mysql resource exactly

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: what is a mysql resource exactly

Post by johnj » Wed Jun 05, 2013 6:39 am


johnmacd
New php-forum User
New php-forum User
Posts: 75
Joined: Wed Jun 12, 2013 9:30 pm
Contact:

Re: what is a mysql resource exactly

Post by johnmacd » Sun Jun 23, 2013 9:08 pm

The value that mysql_query returns and stores into $result, it is a MySQL Resource.
Additional PHP functions are required to extract the data from this Resource.
The mysql_fetch_array function takes a MySQL query resource as an argument ($result) and returns the first row of data returned by the mysql_query.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests