PHP 5 and mysql
Posted: Thu Jun 17, 2004 2:46 pm
ok heres my problem...last night i got bored so i downloaded and installed apache 2 and PHP 5.....everything was working fine until i just tried to use phpmyadmin, i get the following error
then i thought id try do see if mysql was working fine so i opened up send and i wrote this
if i run it in zend it returns the 4 databases in mysql.....
but if i run it from my webserver it returns nothing at all
is it a problem with my install of php 5, do i need to reinstall mysql, or is it just an issue with me/phpMyAdmin????
thanks guys
Code: Select all
cannot load MySQL extension,
please check PHP Configuration.Code: Select all
<?php
$link = mysql_connect('localhost', 'blah', 'blah') or die(mysql_error());
$db_list = mysql_list_dbs($link) or die(mysql_error());
while ($row = mysql_fetch_object($db_list)) {
echo $row->Database . "\n";
}
?>but if i run it from my webserver it returns nothing at all
is it a problem with my install of php 5, do i need to reinstall mysql, or is it just an issue with me/phpMyAdmin????
thanks guys