IIRC this should work:
PHP Code:
<?php
$server = "localhost";
$db_name = "dbname"
$user = "user";
$pass = "pass";
$logo="SELECT logo * FROM logo";
// Make a MySQL Connection
mysql_connect($server, $user, $pass) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());
// Retrieve all the data from the "example" table
$result = mysql_query($logo) or die(mysql_error());
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "$row <br>";
}
?>
As for the other code posted, the problem was is that it needed a semi-colon ( ; ) after echo $data[logo]