par
Gico » 02 nov. 2005, 15:53
Bonjour
je tourne autour de ça, mais ça fonctionne pas :
<?php
if ($_GET['VARvignette']= 0){
$image=$row_Art['illustrationW'];
}
else if ($_GET['VARvignette']= 1){
$image=$row_Art['photo1'];
}
else if ($_GET['VARvignette']= 2){
$image=$row_Art['photo2'];
}
else if ($_GET['VARvignette']= 3){
$image=$row_Art['photo3'];
}
else if ($_GET['VARvignette']= 4){
$image=$row_Art['photo4'];
}
?>
Je sais que c'est les "else if" qui fonctionnent pas , quelque soit la valeur passée à VARvignette ça me donne 1.
Merci
Bonjour
je tourne autour de ça, mais ça fonctionne pas :
[php]
<?php
if ($_GET['VARvignette']= 0){
$image=$row_Art['illustrationW'];
}
else if ($_GET['VARvignette']= 1){
$image=$row_Art['photo1'];
}
else if ($_GET['VARvignette']= 2){
$image=$row_Art['photo2'];
}
else if ($_GET['VARvignette']= 3){
$image=$row_Art['photo3'];
}
else if ($_GET['VARvignette']= 4){
$image=$row_Art['photo4'];
}
?>
Je sais que c'est les "else if" qui fonctionnent pas , quelque soit la valeur passée à VARvignette ça me donne 1.
Merci