<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE html 
 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">



    require_once( 'output_functions.php' );

    function connect_to_database( $host, $user, $password, $dbname )
        // Try to connect to database
        $dbconnection = mysql_connect('......', '...', '.....');
        if ( ! $dbconnection )
        // Try to select database
        $dbselection = mysql_select_db( 'polls.sql');
        if ( ! $dbselection )
        return $dbconnection;

    function output_problem_page()
        output_header( 'Database Problem', 'stylesheet.css' );
        output_paragraph( 'We seem to be experiencing difficulties. Please call back at a later time' );
        output_footer( 'The PHP team' );


is poll.sql a database or a file?
if you return a database it will not be printed as table, it will only connect to the database.
so nothing will ouputed with the page you posted above

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.