Dyman
02.12.2009, 23:19
Hi leute ich habe mir vor einer Woche das VMS_MembernewsAddon installiert.
Nun bekomme ich aufeinmal im ausgeloggten zustand die Meldung:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/htdocs/ks0163/html/index.php on line 11
habt ihr da ne idee?
meine index
<?
$start_time = microtime(true);
$sql_time = 0;
if (isset ($_GET['content']) && !empty ($_GET['content'])) {
if (strpos ($_GET['content'], '../') !== FALSE) die ('Zugriffsverletzung !');
if ($_GET['content']{0} != '/') $_GET['content'] = '/'.$_GET['content'];
}
require ( './lib/header.php' );
$qry = 'SELECT membernews_last_seen FROM '.$db_prefix.'_kontodaten WHERE uid = '.$_SESSION['uid'];
$membernews_last_seen = mysql_fetch_array(db_query($qry));
$qry = 'SELECT ID FROM '.$db_prefix.'_membernews WHERE Postdate >= '.$membernews_last_seen[0];
$membernews = db_query($qry);
$count = (int) @mysql_num_rows($membernews);
if ($count > 0)
{
if ($_SERVER['REQUEST_URI'] != '/index.php?content=/module&mod=membernews')
{
head ('Information');
if ($count == 1)
{
echo '<center><a href="?content=/module&mod=membernews">Neue Member-News
verfügbar</a></center>';
}
else
{
echo '<center><a href="?content=/module&mod=membernews">Es sind insgesamt
'.$count.' neue Membernews verfügbar</a></center>';
}
foot();
}
}
require ( './content'.$_GET['content'].'.php' );
require ( './lib/footer.php' );
?>
Nun bekomme ich aufeinmal im ausgeloggten zustand die Meldung:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/htdocs/ks0163/html/index.php on line 11
habt ihr da ne idee?
meine index
<?
$start_time = microtime(true);
$sql_time = 0;
if (isset ($_GET['content']) && !empty ($_GET['content'])) {
if (strpos ($_GET['content'], '../') !== FALSE) die ('Zugriffsverletzung !');
if ($_GET['content']{0} != '/') $_GET['content'] = '/'.$_GET['content'];
}
require ( './lib/header.php' );
$qry = 'SELECT membernews_last_seen FROM '.$db_prefix.'_kontodaten WHERE uid = '.$_SESSION['uid'];
$membernews_last_seen = mysql_fetch_array(db_query($qry));
$qry = 'SELECT ID FROM '.$db_prefix.'_membernews WHERE Postdate >= '.$membernews_last_seen[0];
$membernews = db_query($qry);
$count = (int) @mysql_num_rows($membernews);
if ($count > 0)
{
if ($_SERVER['REQUEST_URI'] != '/index.php?content=/module&mod=membernews')
{
head ('Information');
if ($count == 1)
{
echo '<center><a href="?content=/module&mod=membernews">Neue Member-News
verfügbar</a></center>';
}
else
{
echo '<center><a href="?content=/module&mod=membernews">Es sind insgesamt
'.$count.' neue Membernews verfügbar</a></center>';
}
foot();
}
}
require ( './content'.$_GET['content'].'.php' );
require ( './lib/footer.php' );
?>