Buchead Posted July 25, 2006 Share Posted July 25, 2006 Hello.....I've just installed apache/mysql/php/phpmyadmin on an XP machine, and whilst it all works fine, when I write a page to retrieve any data from the database I get a completely blank page. No errors about not connecting to the database (tried using wrong password); just get nothing at all.If I have a standard php page that doesn't involve a database it works fine! phpmyadmin allows me to update the databases, so that side of it appears to be ok.It's running:Apache/1.3.34 (win32)PHP 5.1.1Mysql 5.0phpmyadmin 2.7.0I've installed it on another PC (albeit slightly different versions) and it works fine, so I know my coding is ok!Is anyone able to suggest what I've done wrong?Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/15581-blank-pages-when-attempting-to-read-from-a-database/ Share on other sites More sharing options...
lead2gold Posted July 25, 2006 Share Posted July 25, 2006 You probably have an error on your php script, but you don't have display errors on. (thus it comes out blank).What you should do is edit you php.ini fileand look for these line(s) (change them to what you see below):error_reporting = E_ALL & ~E_NOTICEdisplay_errors = OnIt will help you to debug the page and find out why it isn't displaying properly.It can happen if it failed to open the database, or you have a syntax error in your php script.Chris Quote Link to comment https://forums.phpfreaks.com/topic/15581-blank-pages-when-attempting-to-read-from-a-database/#findComment-63363 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.