From: lixmanh at yahoo dot es
Operating system: WinXP
PHP version: 5.0.1
PHP Bug Type: *General Issues
Bug description: error unkow
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 bug report at http://bugs.php.net/?id=30079&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30079&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30079&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30079&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30079&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30079&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30079&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30079&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30079&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30079&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30079&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30079&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30079&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30079&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30079&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30079&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30079&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30079&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30079&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30079&r=mysqlcfg