bueno este es el script: <html> <body> <?php>
function conectarse() { if (!($link=mysql_connect("localhost","root","xxxxxxxxx" ))) { echo "error conectando a la base de datos."; exit(); } if (!mysql_select_db("marimas",$link)) { echo "error selecionando base de datos."; exit(); } return $link; } $link=conectarse(); echo "conexion a la base de datos conseguida."; mysql_close($link); // cierra la conexion ?> </body> </html> cuando lo cargo me da el siguiente error: Parse error: parse error, unexpected T_FUNCTION in /var/www/conexion.php on line 5 4 ojos ven mejor que dos. gracias anticipadas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]