function updatedbimagename($destination_file, $username, $cid, $description1){
@ $db=mysql_connect ("localhost", "er", "er");
if (!$db){
echo "Error: Could not connect to database. Please try again later.";
exit;
}
mysql_select_db ("al");
switch ($n){
case "1":
echo "este es el 1";
break;
case "2":
echo "este es el 2";
break;
}
}
Y no funciona, siempr me deja la pag en blanco!
-----------------------------------------------------------------
Este es el que si funcia con el if:
function updatedbimagename($destination_file, $username, $cid, $description1){
@ $db=mysql_connect ("localhost", "er", "er");
if (!$db){
echo "Error: Could not connect to database. Please try again later.";
exit;
}
mysql_select_db ("al");
if ($n =="1"){
//switch ($n){
//case "1":
echo "este es el 1";
}Else{echo "este es el 2";
}
Ven algo mal en el switch????
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)