|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP Not Connecting To MySQL
I had a hard time trying to convince my college server administrator that the PHP is not connecting to MySQL DB.
When I run the <?php phpinfo();?> here: http://lilium.help.edu.my/~thamyw/test.php .....it seems like there is no connection configured between PHP and MySQL. I have created the MySQL database called "books". When I run the PHP scripting connecting to MySQL, it simply does not return any results display here: http://lilium.help.edu.my/~thamyw/search.html (pls enter "michael" as your search query) Would appreciate some pointers on how to convince my ServerAdmin that the connection is not properly set up yet. For your info, we are running on: Redhat 8.0 PHP 4.2.2 MySQL V.5.0 Apache 2.0.40 Server Thanks in advanced !! |
|
#2
|
|||
|
|||
|
Try using a die command on each of your "mysql_" statement like this:
mysql_query($query) or die ("error report:<br>" . mysql_error()); See if that gives you any help. |
|
#3
|
|||
|
|||
|
sql connectivity error
Hi, I am facing this error problem in both my website and apache. so can any one tell me how 2 solve this problem?
MySQL Connection Failed: Access denied for user: 'root@localhost' |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > PHP Not Connecting To MySQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|