Jump to content


Php Not Working With Mysql

  • Please log in to reply
3 replies to this topic

#1 predator

  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts
  • LocationEngland

Posted 29 June 2006 - 06:14 PM

Hi i got php 5 and mysql 4.1 but when ever i try to speak to the mysql db through php i am getting unknow function and what ever the mysql function is. i have followed all instructions on how to get it working but still it is not can sumone please send me a work .ini file and also where the mysql.dll and mysqli.dll file should be thanks
<a href="http://www.mandppcs.co.uk">M & P PC's Website and Software Design & Development Service's</a>

#2 jworisek

  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 30 June 2006 - 03:33 PM

it would really help if you could post exactly what the error you are getting is.

can you access mysql through console?

I don't think you need to move the dll's, but you do need to uncomment them in you php.ini file.  I have a similiar setup and when I had a hard time getting both mysql.dll and mysqli.dll to function properly together so I use the mysqli exclusively now.

#3 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 03 July 2006 - 05:07 AM

Sounds like a PHP/mysqli library config issue, but we can't be sure until we see an error message.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#4 FamousMortimer

  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 03 July 2006 - 02:17 PM

I am also having problems with PHP accessing MySQL.

Currently I am trying to run a simple script just to test out the connection, but PHP will not execute anything.  Earlier I was getting the fatal error message saying the the mysql_connect() was an unidentified function(now I just get a blank browser screen). 

I had (and still have) my php.ini file extension_dir="c:\php\ext" AND extension=php_mysql.dll (with no semicolon ';' in front). When I run my phpinfo() script, it says no information about mysql.  Also, when I take the semicolon away from other extensions, the phpinfo shows the requisite info for that extension.  WHAT IS GOING ON HERE!?!??!

In my test script, I put echo statements before and after the mysql_connect() function and the browser doesn't show either of these echos.

Can someone please give a little help.....

P.S.  I am using apache and everything else that I do with PHP works fine, I don't know if that is relevant....

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users