Whenever I try to retrieve information from my MySQL database and show it on my web page, the page shows the source instead.
The code source start after the ->fecth(). I think that my WAMP is not setup correctly or the obvious one: "I did something wrong somewhere".
I am not looking for an upgrade but just for corrections.
<?
$bdd = new PDO('mysql:host=localhost;dbname=test', 'root', '');
$rep = $bdd->query('SELECT * FROM membre');
while($data = $rep->fetch())
{
echo $data['nom'];
}
?>