ik gebruik de volgende (imho) supersimpele code
De tabel locations bevat meer dan 1 rij, maar ik zie er maar eentje
PHP:
1
2
3
4
5
6
7
8
| $sql = "SELECT * FROM locations"; $result = MYSQL_QUERY($sql) or die(mysql_error()); $arr = mysql_fetch_array($result, MYSQL_ASSOC); while (list($key, $val) = each($arr)){ echo "key $key => value $val<br>"; } |
De tabel locations bevat meer dan 1 rij, maar ik zie er maar eentje