I have a problem, my PHP page make loops.
I select into my DB only 2 informations like this :
$sqlins="SELECT hardware.name, rd.cmd
FROM hardware, rd
WHERE hardware.name LIKE 'Boomee'
AND rd.cmd LIKE 'putty'";
$toto = mysql_query($sqlins);
It's an exemple of my request. And when I use the loop While like this :
while ($data=mysql_fetch_array($toto)) {
echo $data[1];
echo "<br>";
}
I don't understand why my output send me many time the same line. While on my DB, I have 30 entries. I want to display them all... but the code sended me 2700!
My real script is a bit more complicate than this, I use preg_replace, implode etc, and much more "AND LIKE" in my SQL Query.
I hope you can help me. And please help me.