php mysql connection problem, just a blank screen
Moderator: General Moderators
php mysql connection problem, just a blank screen
Hi, I cannot get php to connect to mysql. They both work individually, but when I run the connection script I just get a blank screen. It's not my script, it must be something in the configuration. Has anybody had this problem, or seen it posted here before? Any help/ideas would be greatly appreciated. Thanks, Matt
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
tapas_bahirbag
- Forum Newbie
- Posts: 14
- Joined: Sun Aug 06, 2006 6:54 am
- Contact:
Use a library like php adodb
If you are starting use a library like phpadodb. It is really easy to switch databases. Also it has cache and debug features. adodb is my personal favorite. Use it for many years. It is extremely easy to use and the documentation is excellent. Even Oracle recommends it.
http://adodb.sourceforge.net/
dont waste your time using calls like mssql_connect() you will regret it in the future. I least I did.
http://adodb.sourceforge.net/
dont waste your time using calls like mssql_connect() you will regret it in the future. I least I did.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
<?php error_reporting(E_ALL); ini_set("display_errors", true); ?>10 pence? You don't sound that confident!d11wtq wrote:I'll bet 10 pence that you don't have the MySQL extension enabled in your PHP installation, so mysql_connect() is an undefined function causing a fatal errorCode: Select all
<?php error_reporting(E_ALL); ini_set("display_errors", true); ?>