|
$user="root";
$pass="5iMoSebi";
$host="localhost";
$dbname="signumdb";
$connection = mysql_connect($host, $user, $pass);
if (!$connection){
echo "Could not connect to database: " .mysql_error();
}
$founddb = mysql_select_db($dbname, $connection);
if (!$founddb){
echo "Could not find DB: " .mysql_error();
}
?>
$result = mysql_query("select * from signum_news_status") or die("Can't connect to the database. Please try later");
for ($i=1; $i<=1; $i++) {
if ($row = mysql_fetch_array($result)) {
$visible = $row["visible"];
if ($visible == "Yes"){
echo "
>
";
}
if ($visible !== "Yes"){
echo "";
}
}}
?> |
|