Re: Does it matter?
click this http://lists.mysql.com/[EMAIL PROTECTED] Steven Grosch schrieb: NO. Best Regards, Steven Grosch -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 8:41 AM To: [EMAIL PROTECTED]; mysql@lists.mysql.com Subject: RE: Does it matter? {snip] Please remove me from your email distribution. [/snip] Do you not see an unsubscribe link at the bottom of this e-amil? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: doing SELECTS and keeping the array intact with php
julian haffegee schrieb: Hi all, this has been bugging me for some time now. I want to do a mysql select then using php while ($a_row = mysql_fetch_array($result)) { do something to get a small portion of the data } hi julian, how about using this snip $result = mysql_query($sql)or die("fehler:".mysql_error()); $num = mysql_num_rows($result); $erg = array(); for ($i = 0; $i < $num; $i++) { $erg[$i] = array(); $erg[$i] = mysql_fetch_object($result); } i work with it, and its just fine. put it in a function or a class and you wont have to bother about processing the results anymore. have fun. greetz seba --- http://www.helft-sebastian.de http://www.schaudirmaldiean.de http://www.random-link.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]