|
Posted by mtczx232 on 05/28/06 13:57
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?
Navigation:
[Reply to this message]
|