Re: PHP give me empty page
- From: "Dae.OS" <arsenault.daniel@xxxxxxxxxxxx>
- Date: Sun, 28 May 2006 09:39:17 -0400
if 'echo "xxxx";' doesn't print after mysql_connect(), this could mean that you have a fatal error that stop the script. If display_errors is off, the script will die silently (try to turn it on if it's the case, and see what error you got ... maybe php_mysql module is not loaded, then mysql_connect would not be a recognized function. I don't remember but I think it would throw a fatal error)
Dae
mtczx232@xxxxxxxxx a écrit :
but I have another problam with connection MySQL page:.
heare the code:
<?php
$host = "localhost";
$username = "root";
$password = "1234";
$database = "db";
echo "xxdfdfdf";
echo mysql_error();
$server = mysql_connect($host, $username, $password);
echo (mysql_error());
//die(mysql_error()
// Select the database now:
$connection = mysql_select_db($database, $server);
//Do queries here.
// $query = mysql_qeury("SELECT * FROM aa ");
// $row = mysql_fetch_array($query);
// echo $row['aa'];
//Close Connection
mysql_close($server);
echo "xxxx";
//phpinfo();
?>
I try a lot, but always all echo after :"mysql_connect" ignored!
why?
- Follow-Ups:
- Re: PHP give me empty page
- From: mtczx232
- Re: PHP give me empty page
- References:
- PHP give me empty page
- From: mtczx232
- Re: PHP give me empty page
- From: mtczx232
- Re: PHP give me empty page
- From: mtczx232
- PHP give me empty page
- Prev by Date: Re: PHP give me empty page
- Next by Date: Stop PHP from rounding
- Previous by thread: Re: PHP give me empty page
- Next by thread: Re: PHP give me empty page
- Index(es):
Relevant Pages
|