Ok, this should work (wrote that other one @ work, no code to reference).
PHP Code:
<?
// Connect to database
$server = 'localhost';
$user = 'user';
$pass = 'pass';
$db_name = 'dbname';
$connection = mysql_connect($server, $user, $pass)
or die ('I cannot connect to the database because: ' . mysql_error());
$db = mysql_select_db($db_name, $connection)
or die ('I cannot connect to the database because: ' . mysql_error());
$sql = "SELECT * FROM logo";
$result = mysql_query($sql);
if ( mysql_error() )
{ print "Database ERROR: " . mysql_error(); }
else
{
else
while($row = mysql_fetch_array($result))
{
echo "$row[column_1_name] | $row[column_2_name] | $row[column_3_name] | etc... <br>";
}
}//endif else
?>
With this, just replace the column_1_name with the name of the first column, etc.