|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-08 16:27 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 13:00:02 2025 UTC |
Description: ------------ running PHP 5.1.4 w/Apache 2.0.55 mysql_connect() is not found. Reproduce code: --------------- $host =$_SESSION['dbhost']; $uname =$_SESSION['dbuser']; $pw =$_SESSION['dbpw']; $link=mysql_connect($host,$uname,$pw); if (!$link) { die('Could not connect: ' . mysql_error()); } Expected result: ---------------- # $link is suitable for use in: $query='Select * from Table1'; $result=mysql_query($query, $link); Actual result: -------------- Fatal error: Call to undefined function mysql_connect() in C:\Documents and Settings\mimiller\My Documents\UIUC\NCSA\Schedule\dblink.php on line 8