|
Posted by Pedro Graca on 09/27/24 11:37
sam.s.kong@gmail.com wrote:
> I found a code that suits my intention.
>
> <?php
>
> class mysql_array
> {
>
> public function __construct ( $s_host , $s_user , $s_pass ,
> $s_db )
> {
> $this -> r_conn = mysql_connect ( $s_host , $s_user ,
> $s_pass ) or die ( mysql_error ( ) ) ;
> mysql_select_db ( $s_db ) ;
> }
>
> private function array_make ( $s_sql , $i_type )
> {
> $r_rs = mysql_query ( $s_sql , $this -> r_conn ) or die (
> mysql_error ( ) ) ;
<snip>
You might want to replace the mysql_query call with
mysql_unbuffered_query ... never tested it though, not sure if there is
any performance gain ...
--
If you're posting through Google read <http://cfaj.freeshell.org/google>
Navigation:
[Reply to this message]
|