Re: PHP give me empty page



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?

.



Relevant Pages

  • RE: [PHP-DB] Dynamic Website Question!
    ... Now I have a variety of queries to do to the database ... Just the data from the database. ... As I need it to be formated as in the echo. ... >> refresh, just the text from the database. ...
    (php.general)
  • Re: [PHP] peer review (was php framework vs just php?)
    ... the database. ... Additional arguements may be supplied to indicate columns to ... echo "<input ... single quotes in the Type column of the ...
    (php.general)
  • Re: [PHP] peer review (was php framework vs just php?)
    ... function formCreate($database, $table, $action, $excludeCols, ... the database. ... Additional arguements may be supplied to indicate columns to ... echo "<input ...
    (php.general)
  • RE: [PHP] Re: php framework vs just php?
    ... function formCreate($database, $table, $action, $excludeCols, ... the database. ... Additional arguements may be supplied to indicate columns to ... echo "<input ...
    (php.general)
  • peer review (was php framework vs just php?)
    ... function formCreate($database, $table, $action, $excludeCols, ... the database. ... Additional arguements may be supplied to indicate columns to ... echo "<input ...
    (php.general)