Hallo!
MySql Tabelle ist angelegt mit did, mid, yid (also z.B 03, 12, 2002)und head- und content-Spalte.
MySQL hat für Daten Spaltentype. Für diese Spaltentypen kann man Funktionen verwenden, die einem das Leben sehr einfach machen.
$today = getdate();
$day = $today[mday];
$month = $today[mon];
$year = $today[year];
$result = mysql_query("select did, mid, yid, head, content from $tabelle where did='eday' AND mid='$month' AND yid='$year'");
$ergebnis = mysql_query($result);
// was sagt den mysql_error() hier?
echo mysql_error();
while($row = mysql_fetch_object($ergebnis))
{
echo $row->head, content;
}
MfG, André Laugks
L-Andre @ gmx.de