Re: [PHP] Loops inside of a loop

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 10:14 am, Moises Zaragoza said: > I was trying to get a MySQL Loop to run in side of a loop but I have to > reset the MySQL Pointer so that It can start again for as long as my loops > goes on. http://php.net/mysql_data_seek -- Like Music? http://l-i-e.com/artists.htm -- P

RE: [PHP] Loops inside of a loop

2005-07-06 Thread Jay Blanchard
[snip] I was trying to get a MySQL Loop to run in side of a loop but I have to reset the MySQL Pointer so that It can start again for as long as my loops goes on. [/snip] Can we see some of your code , that way we may be able to help. -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Loops

2004-12-14 Thread Richard Lynch
>> //Untested code. >> $connection = @mysql_connect('localhost', 'USERNAME', 'PASSWORD') or >> trigger_error(@mysql_error() . " connecting to mysql", E_USER_ERROR); > mysql_error() *never* returns warnings... so why are you prepending an @ ? If $connection is an invalid link, it most certainly doe

Re: [PHP] Loops

2004-12-14 Thread M. Sokolewicz
Richard Davey wrote: Hello Steve, Tuesday, December 14, 2004, 3:52:26 PM, you wrote: SM> I would like to loop the multiple variables rather than put all the SM> variables into a single variable with an array. I can not figure out how to SM> do this. I assume you have placed the MySQL query and chec

Re: [PHP] Loops

2004-12-14 Thread M. Sokolewicz
Richard Lynch wrote: Steve Marquez wrote: Greetings. I am trying to display looped information from a MySQL database in a PHP file. Loop $name (witht a br />) then $description End of loop I would like to loop the multiple variables rather than put all the variables into a single variable with an a

Re: [PHP] Loops

2004-12-14 Thread Richard Davey
Hello Steve, Tuesday, December 14, 2004, 3:52:26 PM, you wrote: SM> I would like to loop the multiple variables rather than put all the SM> variables into a single variable with an array. I can not figure out how to SM> do this. I assume you have placed the MySQL query and checked the number of

Re: [PHP] Loops

2004-12-14 Thread M. Sokolewicz
Gareth Williams wrote: $result = mysql_query("SELECT name, description FROM table"); while ($row = mysql_fetch_assoc($result)) { echo "{$row['name']}$row['description']"; that will throw errors. echo "{$row['name']}{$row['description']}"; would work, just like all of the following would also: e

Re: [PHP] Loops

2004-12-14 Thread Richard Lynch
Steve Marquez wrote: > Greetings. I am trying to display looped information from a MySQL database > in a PHP file. > > Loop > > $name (witht a br />) then > $description > > End of loop > > I would like to loop the multiple variables rather than put all the > variables into a single variable wi

Re: [PHP] Loops

2004-12-14 Thread Gareth Williams
$result = mysql_query("SELECT name, description FROM table"); while ($row = mysql_fetch_assoc($result)) { echo "{$row['name']}$row['description']"; } On 14 Dec 2004, at 16:52, Steve Marquez wrote: Greetings. I am trying to display looped information from a MySQL database in a PHP file. Lo