Asterixus
Aktives Mitglied
Hallo,
ich habe ein Problem, das ich einfach nicht gelöst bekomme. Vorweg: die Tabelle existiert, Inhalt gibt es auch.
Nun, wenn ich meine Seite öffne auf 127.0.0.1, funktioniert alles super (habe gleiche MySQL und PHP-Version auf meinem Server in Kanada), wenn ich aber jetzt die Seite aufrufe, also nicht lokal, sagt der mir folgendes:
Wo liegt das Problem?
Mit freundlichen Grüßen,
Asterixus
ich habe ein Problem, das ich einfach nicht gelöst bekomme. Vorweg: die Tabelle existiert, Inhalt gibt es auch.
Nun, wenn ich meine Seite öffne auf 127.0.0.1, funktioniert alles super (habe gleiche MySQL und PHP-Version auf meinem Server in Kanada), wenn ich aber jetzt die Seite aufrufe, also nicht lokal, sagt der mir folgendes:
Code:
[B]Warning[/B]: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [B]/home/www2/travian.lu/game/index.php[/B] on line [B]27[/B]
PHP:
<?php
include("inc/functions.php");
$link = connect();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>klau-mich.com</title>
<link href="style.css" rel="stylesheet" type="text/css" /></head>
<body><div class="banner"></div>
<div class="main"><div class="menue">
<p><strong>Menü:</strong></p>
<p> </p>
<p><a href="index.php">Startseite</a></p>
<p><a href="login.php">Login</a></p>
<p><a href="anmelden.php">Registrieren</a></p>
<p><a href="http://forum.klau-mich.com">Forum</a></p>
<p><a href="impressum.php">Impressum</a></p>
</div>
<div class="content">
<h1>Willkommen auf klau-mich.com</h1>
<?PHP
$sql = "select * from KLAU_TEMPLATES where NAME = 'index'";
$result = qry($sql);
if ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { ####Linie 27
echo(bb($row["inhalt"]));
} else {
template("temp/index.html");
}
?>
</div>
<div class="copyright">© 2008 Vincent Lycoops
</div>
</div>
</body>
</html>
Wo liegt das Problem?
Mit freundlichen Grüßen,
Asterixus