Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/09/2012, 19:06
christian_register
 
Fecha de Ingreso: septiembre-2012
Mensajes: 2
Antigüedad: 14 años, 1 mes
Puntos: 0
Que esta mal en esta function de php (para conectarse a una base de datos en php)

Este es el codigo
Código PHP:
<?php
function conectar "localhost","root", "", "basededatos"
{ 
  
$con = @mysql_connect("localhost", "root", "") ;
  @
mysql_select_db("basededatos", $con);
}
?>
Me sale error en la linea numero 2 ayuda por favor