Utilisation de la fonction "implode"
Bonsoir j'essaye de testé ce script mais il ne fonctoinne pas voici l'erreur qu'i met:
Code:
1 2
|
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN(1213111113)' at line 2 |
je n'arrive pas a afficher la correspondance de mon panier
voci le script
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<?php
session_start();
include("../inc.php");
mysql_connect("localhost","root","");
mysql_select_db("base");
$sql="SELECT * FROM prestation"."WHERE idprest
IN(".implode($_SESSION['monpanier']).")";
$resultat=mysql_query($sql) or die (mysql_error());
while($service=mysql_fetch_array($resultat))
{
print $service['acte'];
}
?> |
merci de vos aident