Array question
| From: | Scott | Date: | Tue, 18 Sep 2001 20:46:30 +0000 |
| Subject: | Array question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67743@lists.php.net to get a copy of this message | ||
Ok, I think I have my template and includes problem worked out,
but making an array out of the data returned.
My question is how do I make an array out of a returned result. Here
is the code:
$sql = "select bp_section_id,bp_section_name from bp_sections order by bp_section_name";
$sql_result = mssql_query($sql);
while ($row = mssql_fetch_array($sql_result)){
$bp_section_id = $row["bp_section_id"];
$bp_section_name = $row["bp_section_name"];
$ln = "<tr><td><a href=\"bpsection.php?section=$bp_section_id\">$bp_section_name</a></td><td></td></tr>";
};
I need to create an array of the data returned and store it in a variable that I
can call.
Thanks in advance.