19-09-2008, 10:41 PM
du coup 10 requête pour le prix d'une. Je cherche donc à construire la requête
Code PHP :
<?php
$Req = 'select toto from table where tutu in (0,1,2,3,4,5,6,7,8,9)';
<?php
$Req = 'select toto from table where tutu in (0,1,2,3,4,5,6,7,8,9)';
<?php
$listeLoca = '';
$virgule ='';
for ($i=1; $i<=$nb; $i++)
{
$liste .= $virgule.$i;
$virgule =',';
}
$Req ='select toto from table where tutu in ('.$liste.')';