[PHP-DB] PHP Arrays

2004-04-04 Thread Martin Oettinger
Does anyone know up to which level arrays in variables are possible? Is there a limit? $foo[1][2][3][4][5][6] ... ? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PHP Arrays

2004-04-04 Thread Bruno Ferreira
Martin Oettinger wrote: Does anyone know up to which level arrays in variables are possible? Is there a limit? $foo[1][2][3][4][5][6] ... ? I feel the right answer is why do you ask? It's either some very complex thing you're doing there, or you're doing it the wrong way :) Bruno

Re: [PHP-DB] How to get only 2nd row in result set ???

2004-04-04 Thread Kim Steinhaug
I would say the same, do the query and then a loop through the results. Skip the first one and output the second, eg. $levels = mysql_query(SELECT levelID from hf_levels ORDER BY levelorder RB DESC LIMIT 2) or die('Unable to get levelsbr'.mysql_error());

Re[2]: [PHP-DB] How to get only 2nd row in result set ???

2004-04-04 Thread Aitziber Hernndez
KS $item = mysql_fetch_object($levels); probe with $item = mysql_fetch_rows($levels); Aitzi [EMAIL PROTECTED] -- domingo, 04 de abril de 2004, 22:17:41, escribiste: KS I would say the same, do the query and then a loop through the results. KS Skip the first

[PHP-DB] Drop down menu with PHP

2004-04-04 Thread The Image Builder
Hello, I have code for a drop down menu that works fine. But, though I only want the results from one row to fill the form, I want it to show 2 rows in the drop down menu. Can I do that? I would appreciate your help. Here is what I have now: ? mysql_connect(localhost,user,password);

Re: [PHP-DB] Drop down menu with PHP

2004-04-04 Thread Jason Wong
On Monday 05 April 2004 10:01, The Image Builder wrote: I have code for a drop down menu that works fine. But, though I only want the results from one row to fill the form, I want it to show 2 rows in the drop down menu. What exactly do you mean by that? If you want to increase the size of