Sadly, experiencing issues:
[code] <?php
mysql_connect("****", “", "”) or die(mysql_error());
mysql_select_db("*****") or die(mysql_error());
// select record fields from database table and check for results
$sql=“SELECT * FROM horses WHERE breed=‘Abaco Barb’ AND gender=‘mare’ AND allowed=‘OK’ ORDER BY points DESC”;
$mysql_result=mysql_query($sql,$connection);
$num_rows=mysql_num_rows($mysql_result);
if ($num_rows == 0) {
echo “Sorry, we have no records”;
} else {
echo "
Name |
Horse ID |
Player ID |
Type |
Points |
Goal |
Max Foals |
Breeding Style |
Fee |
";
// table population
while ($row=mysql_fetch_array($mysql_result))
{
$name=$row[“name”];
$horse_id=$row[“horse_id”];
$player_id=$row[“player_id”];
$horse_type=$row[“horse_type”];
$points=$row[“points”];
$goal=$row[“goal”];
$max_foals=$row[“max_foals”];
$breeding_type=$row[“breeding_type”];
$fee=$row[“fee”];
// results & headings
echo "
$name |
$horse_id |
$player_id |
$horse_type |
$points |
$goal |
$max_foals |
$breeding_type |
$fee |
";
}
}
mysql_close($connection);
?>[/code]
The error message I am receiving: http://www.virtualstudbook.co.uk/search … _barb1.php
Here is the code with the line numbers included:
http://www.virtualstudbook.co.uk/code_error.pdf
Many thanks.