i am struggling to find where to include my headers and footers as i keep getting errors.
when i normally place them at the top of the form it works but for some reason i can't include my style sheet with my diagram.
this is the start of show_poll.php
<?php # - show_poll.php
/*******************************************
Database query to get poll info
*******************************************/
// get vote from form
$vote=$HTTP_POST_VARS['vote'];
// log in to database
if (!$db_conn = @mysql_connect('localhost', 'CC006200', 'arsenal'))
{
echo 'Could not connect to db<br />';
exit;
};
@mysql_select_db('shopbots');
this is the bottom of the page
// move down to next bar
$y=$y+($bar_height+$bar_spacing);
}
/*******************************************
Display image
*******************************************/
Header('Content-type: image/png');
ImagePng($im);
/*******************************************
Clean up
*******************************************/
ImageDestroy($im);
?>