zu nitrado gewechselt nun steht bei der seite oben:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/customers/webs/ni78340_1/config.php on line 23 Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /var/customers/webs/ni78340_1/config.php on line 25
Ganzer CODE:
Code:
<?
session_start();
include("settings.php");
if(!(@mysql_connect("$host","$user","$pass") && @mysql_select_db("$tablename"))) {
?>
<html>
<head>
<title>MySQL Error</title>
</head>
<table width="50%">
<tr><td class="subTitle"><b>MySQL Error</b></td></tr>
</table>
</body>
</html>
<?
exit;
}
include("functions.php");
if(isset($_SESSION['login'])){
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `online` FROM `users` WHERE `login`='{$_SESSION['login']}'");
$data = mysql_fetch_object($dbres);
}
$site = mysql_fetch_object(mysql_query("SELECT * FROM settings"));
?>
ich weis leider nicht wo genau der fehler liegt da es eig alles geht.






