Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php mysql connection problems
Old 06-20-2008, 07:38 PM php mysql connection problems
Junior Talker

Posts: 1
Name: aLOK
Trades: 0
I am using php5.2.6 and mysql5 on winxp and IIS server.I am having problems getting php to talk to mysql.I have enabled php_mysql.dll,php_mysqli.dll in php.ini. I have copied libmysql.dll to system 32 folder.But all it does is gives me a blank page with no error messege.I tried using PEAR but the same result.Please help I am stuck!!.I checked the include_path it is pointing to c:/php/pear.My php.ini file is in c:\php.I have checked the system path and it has the path.I cant seem to think of anything more.
alokp99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-20-2008, 07:56 PM Re: php mysql connection problems
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Have you checked for your error log? I'm not sure where it'd be on your particular server, but sometimes errors are written to it instead of being echoed out to the screen. You could manually echo a connection error out to the screen with something like

PHP Code:
echo '['.__line__.'] '.mysql_error(); 
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 06-21-2008, 12:50 PM Re: php mysql connection problems
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
This is how I handle mysql errors(if they exist):
PHP Code:
$sql "SELECT * FROM example";
if (!
$result mysql_query($sql)) {
    die(
"Error: ".mysql_error());

__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to php mysql connection problems
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46248 seconds with 12 queries