Could some PHP guru please help me? I am have a drop down list, whose
options are read in dynamically from a table in a MySQL database. one
of the items being read in is an URL. I am
unable to display this URL in the drop down list. The following is the
code snippet I am using:
$sql_query = mysql_query("SE LECT DISTINCT year, semester, school,
schoolurl FROM
schoolproject_p ics ORDER BY
year");
echo "<select name=\"semester \">";
while(list($yea r, $semester, $school, $schoolurl) =
mysql_fetch_arr ay($sql_query)) {
echo "<option value=\"$year\" >$year $semester <a
href=\"$schoolu rl\">$school</a></option>";
}
When the drop down list is displayed, I do not see the URL. Could
someone please point out what exactly I am doing wrong? Thanks in
advance for your help, any help would be greatly appreciated.
options are read in dynamically from a table in a MySQL database. one
of the items being read in is an URL. I am
unable to display this URL in the drop down list. The following is the
code snippet I am using:
$sql_query = mysql_query("SE LECT DISTINCT year, semester, school,
schoolurl FROM
schoolproject_p ics ORDER BY
year");
echo "<select name=\"semester \">";
while(list($yea r, $semester, $school, $schoolurl) =
mysql_fetch_arr ay($sql_query)) {
echo "<option value=\"$year\" >$year $semester <a
href=\"$schoolu rl\">$school</a></option>";
}
When the drop down list is displayed, I do not see the URL. Could
someone please point out what exactly I am doing wrong? Thanks in
advance for your help, any help would be greatly appreciated.
Comment