You are here: Re: Is this a good idea? « PHP Programming Language « IT news, forums, messages
Re: Is this a good idea?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация