[eluser]Damien_Pirsy[/eluser]
Thnak you for the answer! I'm at work now, so I cannot check the code.
Being quite a n00b, I'm missing something concerning what comes before your script.
Let's give a sample:
<?php
require ('logindata.php'); //page with datas for connection
require ('dbconnect.php'); //page with database connect. instructions
$query="SELECT img,name,info,price FROM table WHERE color=blue";
// I start the query
$results=mysqli_query($query);
if(!&results
{
die ("Query problems"); }
// so far, so good.
// usually, I did a $row=mysqli_fetch_assoc($query);
// then declared single variables for each column, i.e.
// $image=$row['img'];
// and so on, echoing them in <td>
//
// Truly, I dont' know where I can insert your snippet, though I think to start grasping its meaning
//
?>
Thanks again!