What did i do this time?

admin

Administrator
Staff member
<?php
$con = mysql_connect("localhost", "", "") or die("Could not
connect");
$db = mysql_select_db("pinehead",$con) or die("could not connect to
database");
$sql = "SELECT * FROM sections";
$result = mysql_query($sql,$con) or die("couldn't query");
while ($sec = mysql_fetch_array($result)) {
$name = $sec['name'];
$id = $sec['secid'];
echo $name;
echo ("<OPTION VALUE='http://www.phpbuilder.com/board/archive/index.php/<?php $id; ?>'><?php $name; ?></OPTION>");
}
?>

it is supposed to retrive the info in the sections db.. It deosn't but i don't get any errors.

Any ideas?
Thanks
Anthony
 
Back
Top