what am I doing wrong

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
okanem
Forum Newbie
Posts: 9
Joined: Thu Jan 12, 2006 6:26 am

what am I doing wrong

Post by okanem »

After a hardware failure on my apache web server, i built a new one, installed and configured apache, php and mysql, and restored the htdocs files and mysql data folders from tape backup into the new htdocs and data folders.

Apache runs fine when viewed in ie.

PHP is installed and phpinfo returns all the php stuff when viewed on the web.

MYSql is accessable via cmd and the databases are visable and full of data via odbc into excel.

The problem is that when i visit my search page and enter a search, the resulting php search page displays only the html and no data from the database.

If I edit the database login on the search page so that it shouldn't be able to log into the database, the results page is just the same, no error message telling me could not connect etc etc. It used to do this.

It seems that php just isn't running properly or is not aware of mysql.

Can anyone think of any reasons or tests to help me.

Thanks in advance
Okanem
User avatar
mattcooper
Forum Contributor
Posts: 210
Joined: Thu Mar 17, 2005 5:51 am
Location: London, UK

Post by mattcooper »

MySQL isn't enabled by default, and you have to edit your php.ini file. Have a look at the manual...

http://uk2.php.net/mysql

Hope this help!
Post Reply