| Current Path : /home2/wtmwscom/www/ |
| Current File : /home2/wtmwscom/www/news.php |
<?php include './header.php';
include './connection.php';
?>
<style>
h1{color: #000000}
</style>
<section id="about-us">
<div class="container">
<div class="center wow fadeInDown">
<h2>Latest News</h2>
</div>
<!-- <h1>Latest News</h1>
Breadcrumbs ---------------------------------------------------------
<p itemscope itemtype="http://data-vocabulary.org/Breadcrumb" id="breadcrumbs"><a href="index.php" rel="home" itemprop="url"><span itemprop="title">Home</span></a> <i class="icon-chevron-right"></i> News</p>
<hr />-->
<!-- <h3>Some news by company.....</h3>-->
<div style="width: auto;height: auto;display: block;margin: 0 0 30px 0;">
<div style="margin: 0 auto;width: 80%;height: auto;border: 1px solid #dddddd;">
<div style="background-color: #ffc107;color: black;font-size: 15px;font-weight: bold;width: 100%;min-height: 10px;padding: 8px 15px;text-align: center;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;">News Box</div>
<div style="overflow: hidden;word-wrap: break-word;background-color: #ffffff;color: #0090ec;font-size: 13px;font-weight: normal;width: 100%;padding: 8px 15px;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;">
<?php
//$news = mysqli_fetch_object(mysqli_query($connection, "select news from news;"))->news;
?>
<!--<marquee width="100%" height="100%" scrollamount="2" direction="up" onmouseover="this.stop();" onmouseout="this.start();" style="">-->
<font size="4" face="arial" color="#0090ec">
<hr style="">
<br/>
<?php
$sql = 'SELECT news FROM news';
mysqli_select_db('test_db');
$result = mysqli_query($connection, $sql, $link );
if(! $result ) {
die('Could not get data: ' . mysqli_error());
}
while($row = mysqli_fetch_array($result, MYSQL_ASSOC)) {
echo $row['news'].
"<br>";
}
?>
<?//php echo $news;?>
<br/>
<hr style="">
</font>
<!--</marquee>-->
</div>
</div>
</div>
<div class="center wow fadeInDown">
<h2>Achievers News</h2>
</div>
<!-- <h1>Latest News</h1>
Breadcrumbs ---------------------------------------------------------
<p itemscope itemtype="http://data-vocabulary.org/Breadcrumb" id="breadcrumbs"><a href="index.php" rel="home" itemprop="url"><span itemprop="title">Home</span></a> <i class="icon-chevron-right"></i> News</p>
<hr />-->
<!-- <h3>Some news by company.....</h3>-->
<div style="width: auto;height: auto;display: block;margin: 0 0 30px 0;">
<div style="margin: 0 auto;width: 80%;height: auto;border: 1px solid #dddddd;">
<div style="background-color:#ffc107;color:Black;font-size: 15px;font-weight: bold;width: 100%;min-height: 10px;padding: 8px 15px;text-align: center;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;">News Box</div>
<div style="overflow: hidden;word-wrap: break-word;background-color: #ffffff;color: #0090ec;font-size: 13px;font-weight: normal;width: 100%;padding: 8px 15px;box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;">
<?php
//$news = mysqli_fetch_object(mysqli_query($connection, "select news from news;"))->news;
?>
<!--<marquee width="100%" height="100%" scrollamount="2" direction="up" onmouseover="this.stop();" onmouseout="this.start();" style="">-->
<font size="4" face="arial" color="#0090ec">
<hr style="">
<br/>
<?php
$sql = 'SELECT achiever_news FROM achiever_news';
mysqli_select_db('test_db');
$result = mysqli_query($connection, $sql, $link );
if(! $result ) {
die('Could not get data: ' . mysqli_error());
}
while($row = mysqli_fetch_array($result, MYSQL_ASSOC)) {
echo $row['achiever_news'].
"<br>";
}
?>
<?//php echo $news;?>
<br/>
<hr style="">
</font>
<!--</marquee>-->
</div>
</div>
</div>
</div> <!-- END .content -->
</section>
<section class="bg_default small_pt small_pb">
<!-- <div class="container">
</div>-->
</section>
<?php include './footer.php';?>