Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/04/2007, 15:02
Avatar de el cirujano
el cirujano
 
Fecha de Ingreso: mayo-2003
Ubicación: Frente al PC
Mensajes: 609
Antigüedad: 21 años
Puntos: 3
Re: no lee base de datos

Código PHP:
<?
function Conectarse() 

    if (!(
$link=mysql_connect("localhost","root",""))) 
    { 
        echo 
"Error conectando a la base de datos."
        exit(); 
    } 
    if (!
mysql_select_db("siglas",$link)) 
    { 
        echo 
"Error seleccionando la base de datos."
        exit(); 
    } 
    return 
$link


$conexBD Conectarse();
$result=mysql_query("SELECT * FROM meanings"); 

while (
$row mysql_fetch_array($result)) { 
    print 
$row["Sigla"].$row["Meaning"].$row["Explanation"]; 
    } 
    
mysql_close($link);
?>
mi amistad prueba a ver
__________________
CSS2 + AJAX + PHP + MySQL, una mezcla sin competencia!!!!!!