RE: [PHP] Results In Variable

From: Date: Mon, 06 Feb 2006 13:40:09 +0000
Subject: RE: [PHP] Results In Variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229942@lists.php.net to get a copy of this message
Put it in an array? -----Original Message----- From: Pastor Steve [mailto:smarquez@ccfortsmith.com] Sent: Monday, February 06, 2006 8:14 PM To: PHP eMail List Subject: [PHP] Results In Variable Greetings, I am attempting to put the results of a ³while² loop into a variable. Example: $result = mysql_query(³SELECT filename, page_title FROM table²); while ($row = mysql_fetch_assoc($result)) { $var = ³<a href=\²$htmldir{$row[Œfilename¹]}\²>{$row[Œpage_title¹]}</a><br />²; echo ³$var²; } I would like for the the entire ³while² statement result to be in a variable for use outside of the statement. Is that possible? Thank you for your help, -- Steve Marquez Marquez Design

« previous php.general (#229942) next »