Recently developed a project to use this, remember:
The key is two.
--> 1 define('client_multi_results', 131072);
2
3 $link = mysql_connect("127.0.0.1", " root"," ",1,client_multi_results) or die("could Not connect: ". Mysql_error());
The following is the normal use, the following is an example program.
--> 1?Php
2Define('Client_multi_results',131072);
3
4$link=Mysql_connect("127.0.0.1","Root","",1,Client_multi_results) orDie("Could not connect:".Mysql_error());
5mysql_select_db("Vs") orDie("Could not select database");
6?>
7
8 ?Php
9$result=Mysql_query("Call GET_NEWS_FROM_CLASS_ID (2)") orDie("Query failed:".Mysql_error());
10While($row=Mysql_fetch_array($result,MYSQL_ASSOC))
11{
12$line='<tr><td><a target = _blank href=''. $row [url].''>'.$row["Title"].'('.$row["Page_time"].')'.'</a></td></tR>';
14 echo $line;
printf("n");
16
}
mysql_free_result($result);
?>
20
? Php
mysql_close($link);
?>