DJMaze,
How come the following doesn't work, when code is included from previous posts?
Code:
<?php
header('Content-type: text/plain');
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("WB", $con);
$result = mysql_query("select * from Birds");
$records = array();
while ($array = mysql_fetch_assoc($result))
{
$records[0]['Name'];
}
print_r($records);
?>