oki
ja jetzt weis ich was du meinst und werde es machen
ja jetzt weis ich was du meinst und werde es machen
...
$datum= date("m"."y"); // <-- ich denke unixformat???
$result = mysql_query("
SELECT DATE_FORMAT(datum, '%Y%m%d') as date,
DATE_FORMAT(datum, '$date_format') as date_formatted // <--- wo kommt $date_format her??
FROM user_onlinezeit where sendername='$sendername'");
list($date,$date_formatted) = mysql_fetch_Array($result); // <-- so bekommt man immer nur eine zeile! ist das richtig hier? und each fehlt!
...
<?
include("save_code/mysql.inc");
$verbindung=mysql_connect($host,$user,$pass);
@mysql_select_db($db_name,$verbindung);
$sql = mysql_query("SELECT sendername from performer");
while($res =mysql_fetch_array($sql)) {
$sendername = $res['sendername'];
$datum= date("m"."y");
$result = mysql_query("SELECT DATE_FORMAT(datum,'%Y%m%d') as date FROM user_onlinezeit ORDER BY sendername='$sendername' ");
list($date) = mysql_fetch_Array($result);
echo "$date<br>";
echo "$sendername<br>";
} //Sendername Abfrage While ENDE
?>
list($date) = mysql_fetch_Array($result);
in
$row = mysql_fetch_Array($result);
$date = $row["date"];
<?
include("save_code/mysql.inc");
$verbindung=mysql_connect($host,$user,$pass);
@mysql_select_db($db_name,$verbindung);
$sql = mysql_query("SELECT sendername from performer");
while($res =mysql_fetch_array($sql)) {
$sendername = $res['sendername'];
$datum= date("m"."y");
$result = mysql_query("SELECT DATE_FORMAT(datum,'%Y%m%d') as date FROM user_onlinezeit where sendername='$sendername' ");
$row = mysql_fetch_Array($result);
$date = $row["date"];
echo "$date<br>";
echo "$sendername<br>";
} //Sendername Abfrage While ENDE
?>
<?
include("save_code/mysql.inc");
$verbindung=mysql_connect($host,$user,$pass);
@mysql_select_db($db_name,$verbindung);
$sql = mysql_query("SELECT sendername from performer");
while($res =mysql_fetch_array($sql)) {
$sendername = $res['sendername'];
$datum= date("m"."y");
$result = mysql_query("SELECT DATE_FORMAT(datum,'%Y%m%d') as date FROM user_onlinezeit where sendername='$sendername' ");
$row = mysql_fetch_Array($result);
$date = $row["date"];
echo "$date<br>";
echo "$sendername<br>";
} //Sendername Abfrage While ENDE
?>
Kommentar