Re: PHP want not write in Database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Mon, 16 May 2011 07:13:19 +0100 Ashley Sheridan wrote:
> What is your code in the included db.html? You do realise that unless
> you've told the server especially that it won't know to parse your HTML
> files for PHP code as well. HTML is embedded in PHP, not the other way
> around. If you think more like that, you'll realise why it's not
> working.

in the db.html is the follow code:

<start>
try {

$db = new PDO("mysql:host={$host};dbname={$database}", $user, $pass);

}catch(PDOException $pe)
{ die('Connection error, because: ' .$pe->getMessage());
}
<end>

Yes my Webserver parse html files as php. My formular work without problems,
and the old Blog Script work too without problems.


Regards
Silvio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux