Database error

wxdqz

New Member
$db = mysql_select_db("pinehead",$con") or die("could not connect to
database");
$sql = "SELECT name FROM sections";
$result = mysql_query($sql) or die("couldn't query");
while ($sec = mysql_fetch_array($result)) {
$sect = $sec['name'];
echo $name;

Anybody knwo whayt is wrong with that?

Thanks
Anthony
 
Back
Top