Hi,
the if sequence (returning sys.php) doesn't make sense. What do you want to do with that code ?
Try the following code:
<?PHP
session_start();
require_once("Sources/sys.php");
require_once("Sources/mysqlconnect.php");
$title = "My Standard Title";
// there is a WHERE clause missing to get
// a specific title
$res = mysql_query("SELECT title FROM Userdata") or die("Error: ".mysql_error());
if ($row = mysql_fetch_array($res)) {
$title = $row["title"];
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us" />
<title>
<?PHP echo $title; ?>
</title>
<link rel="stylesheet" type="text/css" href="themes/style1.css" />
</head>
<body>
<center>
<table width="80%" cellspacing="1" cellpadding="1" border="0" class="border">
<tr>
<td class="windowbg2" colspan="4" align="center">
<font size="3"><b>Welcome to <?PHP echo $title; ?></b></font>
</td>
</tr>
</table>
<?PHP
include "Sources/urls.php";
?>
<br /><br /><br /><br />
<!------HEADER------>
<table width="80%" cellspacing="1" cellpadding="1" border="0" class="border">
<tr>
<td class="titlebg" align="center">
<b>Entry Title:</b>
</td>
<td class="titlebg" width="145" align="center">
<b>Date:</b>
</td>
</tr>
</table>
<!------FOOTER------>
<br /><br /><br /><br /><br /><br /><br />
<center><font size="1">Powered by UltraBlog Version 0.5</font></center>
</body>
</html>
I'd suggest to change the css styles so that you don't need to use e.g. <b>..</b> inside the <td>...</td> tags and so on.
Additionally, I'd suggest to change the web server configuration so that DirectoryListing is not allowed. You can get a listing of each directory on the server.
Thomas