MySQL Forums
Forum List  »  PHP

Php not display any error or result with Mysql
Posted by: kaji rouji
Date: January 05, 2006 12:56PM

Hi All,
I write simple PHP and want to display any thing in browser

this is my page
<?



$mysqli = new mysqli( "abc.abc.com", "root", "xxxxx", "ticket" );

if( mysqli_connect_errno() ){
echo "Data Open Error :\n";
echo "Error Message? . mysqli_connect_error() . "\n";
exit();
}
else{
echo "Open Success?\n";
}


$mysqli->close();
?>

when I call this page in IE 6 on WinXP SP2, I can not find display anything.
means nothing display on my page , just like a blank

I use
<?
phpinfo()
?>

and get return infomation and set mysql options already in php.ini

Active Persistent Links 0
Active Links 0
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On
mysql.connect_timeout 60
mysql.default_host abc.abc.com
mysql.default_password xxxxx
mysql.default_port no value
mysql.default_socket /var/lib/mysql/mysql.sock
mysql.default_user root
mysql.max_links Unlimited
mysql.max_persistent Unlimited
mysql.trace_mode Off

I chekc with mysql database at console
and try to SQL statment on my ticket database and can get the retuen result

OS: Linux FC3
Php: Version 4.3.9

Does anyone can give me a hand or share experience

Thanks a lot

Options: ReplyQuote


Subject
Written By
Posted
Php not display any error or result with Mysql
January 05, 2006 12:56PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.