Hallo
Suche Hilfe, was muss ich ändern so das für Offline und Online ein Bild ausgegeben wird!
<?
include("sql.php");
$check = mysql_query("SELECT Site_URL FROM arphp_Accounts WHERE username = '$username'");
$link = mysql_fetch_array($check);
if(@fopen($link[0],r)) {
$res = "<font color="#006600">Online</font>";
}
else {
$res = "<font color="#CC0000">Offline</font>";
}
header("Content-Type: text/javascript");
echo "document.write('$res');";
?>
Aufruf ist:
<script type="text/javascript" src="Username.php?username=username"></script>
Danke für die Hilfe