Quick Problem
Posted: Wed Apr 18, 2007 2:13 pm
Jcart | Please use
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");
Jcart | Please use
Code: Select all
,Code: Select all
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:Code: Select all
<?php
$mysqli = mysqli("localhost", "localuser", "localpass", "database");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
} else {
printf("Host information: %s\n", mysqli_get_host_info($mysqli));
}
?>Jcart | Please use
Code: Select all
,Code: Select all
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]