Bug #10497 Updated: Not connect with MySql

From: Date: Wed, 25 Apr 2001 20:27:45 +0000
Subject: Bug #10497 Updated: Not connect with MySql
Groups: php.dev 
Request: Send a blank email to php-dev+get-52432@lists.php.net to get a copy of this message
ID: 10497 Updated by: cynic Reported By: erick@citmatel.inf.cu Old-Status: Feedback Status: Open Bug Type: MySQL related PHP Version: 4.0.4pl1 Assigned To: Comments: user feedback: **************** this is the error: Fatal error: Maximum execution time of 30 seconds exceeded in D:\Mis Documentos\Web\temp\ok.php on line 2 and this is the script: <? $db = mysql_connect("localhost","root"); mysql_select_db(portal,$db); $query = "select hora from noticias order by fecha"; $r_noticias = mysql_query($query); $rw_noticias = mysql_numrows($r_noticias); if ($rw_noticias) while($a_noticias = mysql_fetch_array($r_noticias)) $hora= $a_noticias[hora]; ....... ?> **************** please, use the web interface for future updates Previous Comments: --------------------------------------------------------------------------- [2001-04-25 15:56:20] cynic@php.net ah, right: this worked in 4.0.3 but doesn't work in 4.0.4 pl1, right? what error message do you get? --------------------------------------------------------------------------- [2001-04-25 15:54:35] cynic@php.net please report bugs in English. --------------------------------------------------------------------------- [2001-04-25 15:52:47] erick@citmatel.inf.cu Estas dos sentencias si funcionan en la versión 4.03 de php, pero en la 4.04pl1 no funcionan; no se conecta php a MySql. $db = mysql_connect("localhost","root"); mysql_select_db(portal,$db); --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10497&edit=2

« previous php.dev (#52432) next »