tranquillo
Technical User
hey... I must be doing something wrong... I just don't know what... to me it don't seem logical at all... the code that is pressented below is to list gigs for a couple of musicians... it's ordered by date and for some reason it refuses to show one of the rows... why?
---------------------------------------
$result2 = mysql_query("SELECT * FROM spelningar where spelningar.datum >= current_date AND
spelningar.artist='wieskahubert' order by datum",$db);
---------------------------------------
if ($myrow = mysql_fetch_array($result2)) {
do {
echo "<table width='270' border='0' cellpadding='0' cellspacing='0' class='textsmall' bgcolor=\n";
echo ($var%2) ? "'#CCCCCC'><tr><td align='left'>" : "'#FFFFFF'><tr><td align='left'>";
$var++;
printf("%s</td><td align='left' width='120'>%s</td><td align='left' width='60'>%s",
$myrow["datum"], $myrow["plats"], $myrow["land"]);
echo "</td><td></td></tr></table>\n";
} while ($myrow = mysql_fetch_array($result2));
} else {
echo "Sorry, no records were found!";
}
----------------------------------------------
if I write the SQL queary directly to the MySQL there's no problem. so there's nothing wrong with the dates...
thanks...
-s
---------------------------------------
$result2 = mysql_query("SELECT * FROM spelningar where spelningar.datum >= current_date AND
spelningar.artist='wieskahubert' order by datum",$db);
---------------------------------------
if ($myrow = mysql_fetch_array($result2)) {
do {
echo "<table width='270' border='0' cellpadding='0' cellspacing='0' class='textsmall' bgcolor=\n";
echo ($var%2) ? "'#CCCCCC'><tr><td align='left'>" : "'#FFFFFF'><tr><td align='left'>";
$var++;
printf("%s</td><td align='left' width='120'>%s</td><td align='left' width='60'>%s",
$myrow["datum"], $myrow["plats"], $myrow["land"]);
echo "</td><td></td></tr></table>\n";
} while ($myrow = mysql_fetch_array($result2));
} else {
echo "Sorry, no records were found!";
}
----------------------------------------------
if I write the SQL queary directly to the MySQL there's no problem. so there's nothing wrong with the dates...
thanks...
-s