#30079 [Opn->Bgs]: error unkow
| From: | derick@php.net | Date: | Tue, 14 Sep 2004 06:25:51 +0000 |
| Subject: | #30079 [Opn->Bgs]: error unkow | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66160@lists.php.net to get a copy of this message | ||
ID: 30079
Updated by: derick@php.net
Reported By: lixmanh at yahoo dot es
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: WinXP
PHP Version: 5.0.1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2004-09-14 02:09:16] lixmanh at yahoo dot es
Description:
------------
<?php
/* Conexion, seleccion de una base de datos */
$enlace = mysql_connect('localhost', 'lixman', '')
or die('No pudo crear una conexión: ' . mysql_error($enlace));
mysql_select_db('test')
or die ('No pudo seleccionarse la base de datos'.
mysql_error($enlace));
/* Realizar una consulta SQL */
$consulta = 'SELECT * FROM autores';
$resultado = mysql_query($consulta, $enlace) or die('La consulta
falló: ' . mysql_error($enlace));
/* Cerrar la conexion */
mysql_close($enlace);
?>
Expected result:
----------------
connect to a data base of Mysql created by MySQLAdmin
named test
Actual result:
--------------
Fatal error: Call to undefined function mysql_connect() in
D:\Sitios\PHP\inicio.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30079&edit=1