Código PHP:
$query=" update Comercials set "
." cTitle='".$title."'"
." ,wname='".$wname."'"
." ,lifeEstile=".$le
." ,turism=".$tu
." ,Surfing=".$su
." ,realEstate=".$re
." ,loadging=".$lo
." ,ecology=".$eco
." ,rest=".$res
." ,other=".$ot
." ,cEmail='".$email."'"
." ,email2='".$email2."'"
." ,cPhone='".$phone."'"
." ,phone2='".$phone2."'"
." ,phone3='".$phone3."'"
." ,site='".$site."'"
." ,link='".$link."'"
." ,description='".$Description."'"
." ,bdescr='".$bdescr."'"
." ,testim='".$testim."'"
." ,services='".$serv."'"
." where cid =".$cid;
$result = mysql_query($query);
if ($result){
echo "<script>document.location.href='/php/menu.php?m=c&cid=".$cid."'</script>";
exit;
}else{
echo " <script>document.location.href='/php/error.php?err=0'</script>";
exit;
." cTitle='".$title."'"
." ,wname='".$wname."'"
y me pregunto si puedo hacer una actualizacion de dos tablas a la vez aunque no sean exactamente iguales, algo asi como
Código PHP:
$query=" update Comercials, fotos set "
." cTitle='".$title."'"
." ,wname='".$wname."'"
." ,lifeEstile=".$le
." ,turism=".$tu
." ,Surfing=".$su
." ,realEstate=".$re
." ,loadging=".$lo
." ,ecology=".$eco
." ,rest=".$res
." ,other=".$ot
." ,cEmail='".$email."'"
." ,email2='".$email2."'"
." ,cPhone='".$phone."'"
." ,phone2='".$phone2."'"
." ,phone3='".$phone3."'"
." ,site='".$site."'"
." ,link='".$link."'"
." ,description='".$Description."'"
." ,bdescr='".$bdescr."'"
." ,testim='".$testim."'"
." ,services='".$serv."'"
." where cid =".$cid;
$result = mysql_query($query);
if ($result){
echo "<script>document.location.href='/php/menu.php?m=c&cid=".$cid."'</script>";
exit;
}else{
echo " <script>document.location.href='/php/error.php?err=0'</script>";
exit;
![Golpeado](http://static.forosdelweb.com/fdwtheme/images/smilies/pelea.png)
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)