You are here: Re: PHP give me empty page « All PHP « IT news, forums, messages
Re: PHP give me empty page

Posted by Dae.OS on 05/28/06 16:39

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@yahoo.com 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?
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация