Hi I’m trying to add the below Php to my page head so that I can call data into the body of my page any ideas how I can get this to work, see the code below:
<?php
$con = mysql_connect("localhost","root","root");
$db = mysql_select_db("rr_car_make",$con);
$get=mysql_query("SELECT car_make FROM rr_car_make ORDER BY car_make ASC");
$option = '';
while($row = mysql_fetch_assoc($get))
{
$option .= '<option value = "'.$row['car_make'].'">'.$row['car_make'].'</option>';
}
?>
<html>
<body>
<form>
<select>
<?php echo $option; ?>
</select>
</form>
</body>
</html>