Re: Array question
| From: | Gerard Samuel | Date: | Tue, 18 Sep 2001 20:57:53 +0000 |
| Subject: | Re: Array question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67744@lists.php.net to get a copy of this message | ||
Try this.....
$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>";
$new_data[] = $variable_or_array[element];
};