sql foutDoor:
Ivo(lid)Datum: 19:09:32 07-07-2005
Stuur prive bericht
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'index' at line 1
ik zie de fout niet.. kan iemand helpen?
Mvg izdesign.nl
<?php
$database ="valkenswaard";
$server ="localhost";
$user ="valkenswaard1";
$wachtwoord ="valkenswaard2";
mysql_connect("$server","$user", "$wachtwoord");
mysql_select_db("$database");
$query = "SELECT * FROM index";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$titel = $row['titel'];
$pagina = $row['pagina'];
echo "<br>";
echo "<table widht=250 border="0" cellspacing="0" cellpadding="2" bordercolor="#000000">";
echo "<tr><td><b>$titel<b></td></tr>";
echo "<tr><td><b>$pagina<b></td></tr>";
echo "</table>";
}
?>