<html>
....
<body>
<?php
mysql_connect('localhost', 'pouet', 'truc');
mysql_select_db('tagada');
$result = mysql_query('SELECT name, machin FROM liste');
while($row = mysql_fetch_assoc($result)) {
echo 'Nom : ', $row['nom'], ' - Machin : ', $row['machin'];
}
?>
...
</html> |