mysql_unbuffered_query()

It executes a query on a MySQL database and buffering the result

A. Return the first data faster
B. Does not return all data faster
C. Use less memory

Example

<?php
 mysql_pconnect("localhost", "root", "phpcode") or die(mysql_error());
 $db_selected = mysql_select_db("database_name");
 echo mysql_result(mysql_unbuffered_query( "SELECT * FROM users"),1);
 mysql_close();
 ?>
Share