Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/08/2007, 15:52
Avatar de ferbux
ferbux
 
Fecha de Ingreso: mayo-2007
Ubicación: por ahí intentado ayudar
Mensajes: 823
Antigüedad: 17 años
Puntos: 6
Re: No Database Selected - 1046

Hola puedes hacer de est forma:

tu archivo php:
<?php

include("conexion.inc.php");
$link=conex();

$sql=("SELECT * FROM prueba"), $link;
$re = mysql_query($sql) or die('Consulta fallida: ' . mysql_error());
$row=mysql_fetch_array($re);



echo $row[0];//no se en ke posicion de la bd este tu campo nombre por eso pongo 0, pero ahi le cambias tu

?>

Pruebalo y me cuentas
__________________
"Eres grande por que caminas entre gigantes"