0) { $fileurl = mysql_fetch_array($queryurl); if($fileurl["status"] == 'ok'){ if($fileurl["tipo"] == 'foto'){ $url_foto = 'http://www.click360.com.br/cardapio/' . $fileurl["foto"]; echo ""; exit; } else { $url_real = $fileurl["url"]; echo ""; exit; } } else { echo ""; exit; } } else { echo ""; exit; } ?>