Here is the code for my page
<html>
<head>
<title>BSTL</title>
<style>
body { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000 }
li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px }
hr { color: #3333cc; width=300; text-align=left}
a { color: #000000 }
.center { text-align: center }
.image { text-align: center; background: #081B39 }
.login { color: #FFFFFF; background: #081B39 }
.right { text-align: right }
</style>
</head>
<?php
require_once("stylesheet.php");
do_html_header();
?>
<div class="center">
<form method=post action="order.php">
<table class="login">
<tr>
<td colspan=2>Please log in:</td>
<tr>
<td>Employee Number:</td>
<td><input type=text name=username></td></tr>
<tr>
<td>Password:</td>
<td><input type=password name=passwd></td></tr>
<tr>
<td colspan=2 align=center>
<input type=submit value='Log in'></td></tr>
</table></div></form>
<?php
do_html_footer();
?>
and here is the stylesheet.php where the error is coming from....
what can i change to stop the message and will i have to do it for all of my pages
<?php
function do_html_header()
{
// print an HTML header
?>
<body>
<div class="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="image">
<img src="images\bschdr_tul.jpg" width=800 height=77 alt="Boston Scientific Tullamore" border="0">
</td></tr></table></div><br><br>
<?php
if($title)//gettin error here
do_html_heading($title);
}
/******************************************************************************/
function do_html_footer()
{
// print an HTML footer
?>
</body>
</html>
<?php
}
/******************************************************************************/
function do_html_heading($heading)
{
// print heading
?>
<!--<h2><?=$heading?></h2>-->
<?php
}
/********************************************************************************/
function login($username, $password)
// check username and password with db
// if yes, return true
// else return false
{
// connect to db
$conn = odbc_connect('Canteen' , '', '') or die("<h1>Error1</h1>");
if (!$conn)
return 0;
// check if username is unique
$strSQL = "select * from users where EmployeeNo='$username' and password = '$password'";
//and pass = password('$password')";
//echo $strSQL;
//$result = odbc_exec($conn, $strSQL) or die("<h1>Error3</h1>");
$result= odbc_exec( $conn, $strSQL);
if (!$result)
{
exit("Error in query");
}
if (odbc_fetch_row($result)>0)
return 1;
else
return 0;
odbc_free_result($result);
odbc_close($conn);
}
?>
thank you so much