What is mysql unbuffered query in PHP
In this article I am going to explain about mysql_unbuffered_query function in PHP.
PHP mysql_unbuffered_query() Function
The PHP mysql_unbuffered_query function is used to send an sql query to MySQL without fetching the result rows.
Syntax of mysql_unbuffered_query function
mysql_unbuffered_query(query,connection) |
Parameters in mysql_unbuffered_query function
It has only one parameter:
Parameter |
Description |
query |
It specifies the sql query. |
connection |
It specifies MySQL connection. |
Example of mysql_unbuffered_query function
<?php
$con=mysql_connect("localhost","gupta","sharad");
if(!$con)
{
die("Could not connect:".mysql_error());
}
mysql_select_db("mcn_solution",$con);
mysql_unbuffered_query("Select * from Emp");
mysql_close($con);
?>
|
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here