Re: A Starter has prob in blog script

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

 



Hello,


i have it running now. For complete the thread, write here the code with
it run.

<?php
require_once "inc/common.php";
$blogid = ((!empty($_GET['blogid'])) ? $_GET['blogid'] : '' );

try {
$sql = "SELECT blogid, content FROM `bloggen` WHERE id=".(int)$blogid;
$result = $DB->query($sql);
foreach ($result as $var)  {
echo $var['content'];
}
$DB = null;
}
catch (PDOException $e) {
echo "Fehler: " . $e->getMessage();
exit ();
}
?>

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