|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-04-25 15:52 UTC] erick at citmatel dot inf dot 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);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
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 updatesthis 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 in php: <? $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]; ....... ?> ok. thanks.this script don't work <? $file=fopen ("ftp://user:password@localhost/administrador/servicios.inc","w"); fputs($file,"Algo"); fclose($file); ?>this script don't work <? $file=fopen("ftp://user:password@localhost/administrador/servicios.inc","w"); fputs($file,"Algo"); fclose($file); ?>