|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-26 18:32 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 21:00:01 2025 UTC |
Description: ------------ i'm trying to set up php,mysql and i can't get it to work. i can create table and user name fine in mysql. i can do phpinfo() fine. but when i try to have connection to mysql from php, it keeps giving me an error saying php has encountered an access violation at 01b0ac5a can you help. Reproduce code: --------------- <?php $db_server='localhost'; $db_user='test_user'; $db_password='test_password'; $db_name='test'; $connect_test = mysql_connect("$db_server", "$db_user", "$db_password") or die("Unable to connect to the database!"); print "The connection to the \"$db_name\" database was successful."; ?> Expected result: ---------------- the connection to test database was successful. or unable to connect to the database Actual result: -------------- the connection to test database was successful. or unable to connect to the database