php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30079 error unkow
Submitted: 2004-09-14 02:09 UTC Modified: 2004-09-14 08:25 UTC
From: lixmanh at yahoo dot es Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.1 OS: WinXP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lixmanh at yahoo dot es
New email:
PHP Version: OS:

 

 [2004-09-14 02:09 UTC] 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&oacute;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&oacute;: ' . 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-14 08:25 UTC] derick@php.net
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.

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 26 12:00:02 2025 UTC