rogerzebra
Technical User
I'm back...
Can anyone check this code to see what's wrong and why I get a parse error. It's supposed to be something after the </html>..what's missing??
Any input would be much appreciated.
Thanks
/rz
Can anyone check this code to see what's wrong and why I get a parse error. It's supposed to be something after the </html>..what's missing??
Any input would be much appreciated.
Code:
<?php require("main_test.php"); ?>
<?php
/*config connection to database*/
$dbhost = 'localhost';
$dbusername = 'root';
$dbpassw = 'matrix';
$database_name = 'intranet';
/*connect to the database*/
if(mysql_connect($dbhost,$dbusername,$dbpassw)){
$connection = mysql_connect($dbhost,$dbusername,$dbpassw);
mysql_select_db($database_name,$connection);
return $connection;
}else{
print("<b>Can't connect to the database.</b>");
?>
<html>
<head>
<title>My Dynamic Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="80%" border="1" cellspacing="0" cellpadding="0">
<tr valign="top">
<td colspan="2">
<h5>My dynamic page:-)</h5>
</td>
</tr>
<tr valign="top">
<td width="200">
<h6>The news</h6>
<?php getNews();?>
</td>
<td width="340">
<h6><?php getContent($story);?></h6>echo $story;
</td>
</tr>
<tr valign="top">
<td width="200"> </td>
<td width="340"> </td>
</tr>
</table>
</body>
</html>
/rz