Cita:
Iniciado por erudito31
if($rows['tbusiness'] == 'Wholesales'){
print "<script>window.open('/mayoristas/index.htm','_self');</script>";
}
if ($rows['tbusiness'] == 'Retail'){
print "<script>window.open('/minoristas/index.htm','_self');</script>";
}elseif ( aca te falta una condicion = $rows['tbusiness'] == 'Otra Cosa') ) {
print "<script>window.open('/venezuela/index.htm','_self');</script>";
}
en todo caso te sale ams como usar CASE por ejemplo:
switch ($rows['tbusiness'] ) {
case 'Wholesales':
print "<script>window.open('/mayoristas/index.htm','_self');</script>";
break;
case 'Retail':
print "<script>window.open('/minoristas/index.htm','_self');</script>";
break;
case 'Otro':
print "<script>window.open('/venezuela/index.htm','_self');</script>";
break;
default:
break;
}
espero te sirva...
saludos y feliz año nuevo
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)