![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
Código PHP:
$ssql="SELECT * FROM enlaces WHERE Tipo='$tipo' ORDER BY Id";
$consul = mysql_query($ssql) or die ("No se pudo ejecutar la consulta");
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
Código PHP:
include ('conexion2.php');
![Stress](http://static.forosdelweb.com/fdwtheme/images/smilies/stress.png)
Código PHP:
<?
$con=mysql_connect("localhost","","") or die ("no se ha podido conectar a la BD");
mysql_select_db("nombre_base_datos") or die ("no se ha podido seleccionar la BD");
?>
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
![Stress](http://static.forosdelweb.com/fdwtheme/images/smilies/stress.png)
![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
Por cierto si ejecuto la sentencia SQL directamente en MySql, con los datos de salida(p.ej.:SELECT * FROM enlaces WHERE Tipo='Ayuntamientos' ORDER BY Id)si me funciona.
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)