Forum Moderators: coopster
I just installed Apache/PHP/MySQL all newest versions today on windows XP with service pack2, everything seems to be working fine, cept for when I went to connect to MySQL.
I'm getting this error:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\national\inc\conntemp.inc on line 3
line 3 of conntemp is:
$db_selected = mysql_select_db('National', $link) or die('Database name incorrect');
but i know the code is good, it works fine on my linux server.
can anyone tell me if i'm missing something? like a module maybe?
and if so what one and where can i get it?
thanks in advance for your time!
-Ken
<?php
phpinfo();
?>
Load it into your browser and scroll down through the information and look for a table titled mysql. If it doesn't exist, then your php was compiled without mysql support.
Burner
maybe try these posts
Troubleshooting Steps for PHP/Apache on windows [webmasterworld.com]
Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin [webmasterworld.com]
those might give you some tips on where to look