non ho capito...
la query è così:_
la subquery è:codice:$query3 = "UPDATE table SET ".$subquery." WHERE IdDitta = $id";
[supersaibal]
if (isSet($img[0])&& $img[0]!='0'){
$Link1 = htmlentities($img[0]);
if($desc_[0]!=''){
$Desc_Link1 = htmlentities($desc_[0]);
}else{
$Desc_Link1 = '';
}
$subquery .= "Link1='$Link1', Desc_Link1='$Desc_Link1',";
}
if (isSet($img[1])&& $img[1]!=0){
$Link2 = htmlentities($img[1]);
if($desc_[1]!=''){
$Desc_Link2 = htmlentities($desc_[1]);
}else{
$Desc_Link2 = '';
}
$subquery .= "Link2='$Link2', Desc_Link2='$Desc_Link2',";
}
if (isSet($img[2])&& $img[2]!=0){
$Link3 = htmlentities($img[2]);
if($desc_[2]!=''){
$Desc_Link3 = htmlentities($desc_[2]);
}else{
$Desc_Link3 = '';
}
$subquery .= "Link3='$Link3', Desc_Link3='$Desc_Link3',";
}
if (isSet($img[3])&& $img[3]!=0){
$Link4 = htmlentities($img[3]);
if($desc_[3]!=''){
$Desc_Link4 = htmlentities($desc_[3]);
}else{
$Desc_Link4 = '';
}
$subquery .= "Link4='$Link4', Desc_Link4='$Desc_Link4',";
}
$subquery .= "0";
[/supersaibal]
scusate la grossa mole di codice.![]()
dies![]()

Rispondi quotando