<? // 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 ?>