Hi,
(I hope i have posted in the right section)
I would like how below code would work
$result = mysql_query('select * from table');
does php store all rows return by this query in the $result obj?
Just curious.
How mysql_query works
Moderator: General Moderators
Re: How mysql_query works
Write some code to find out ... connect to the database, do the query, then disconnect from the database ... if you can still access the records in $result you'll know that they're being stored by PHP.
Re: How mysql_query works
You can read this, it may be interesting for you:
http://bg2.php.net/manual/en/function.m ... -query.php
http://bg2.php.net/manual/en/function.m ... -query.php
-
sudesh_poojari
- Forum Newbie
- Posts: 3
- Joined: Tue Jun 17, 2008 12:20 pm
Re: How mysql_query works
thx it was so simpleonion2k wrote:Write some code to find out ... connect to the database, do the query, then disconnect from the database ... if you can still access the records in $result you'll know that they're being stored by PHP.
and thx darhazer