Nieuw lid |
|
Toch nog een probleempje blijkbaar
<?php
$tabel="akern";
$dbhost = "localhost";
$dbdb = "database";
$dbgebruiker = "root";
$dbww = "";
mysql_connect($dbhost,$dbgebruiker,$dbww) or die(mysql_error());
mysql_select_db($dbdb) or die(mysql_error());
$sql=mysql_query("SELECT * FROM akern WHERE date >= NOW() ORDER BY date ASC LIMIT 1");
echo("<table border=1>");
while($rij=mysql_fetch_array($sql,MYSQL_ASSOC)) {
echo("<tr>");
foreach($rij as $veldwaarde) {
echo("<td>$veldwaarde</td>");
}
echo("</tr>");
}
echo("</table>");
?>
Foutmelding: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ... |