and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi, I tried the following in a .php file:
When I access the file's site, its blank and I see nothing. What must I do to fix this error and what causes it? I've looked all over with no luck. I have also tried error_reporting(E_ALL); and everything still shows up blank. It doesn't seem to want to execute any PHP commands after the line $mysqli = mysqli("localhost", "localuser", "localpass", "database");
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Well, see, thats what I was trying to set up earlier. Because before it gave me an error when trying to start the database, since I was missing the php.ini file. I renamed php.ini-recommended to php.ini and now it runs the Apache server, but gives me a nice blank screen when I try to connect to the database. Is there something I should put in the php.ini?