CodeIgniter Laravel PHP Example Javascript jQuery MORE Videos New
Need a Website Or Web Application Contact : +91 9437911966 (Whatsapp) Note: Paid Service

Codeigniter Google News


index.php

<!DOCTYPE html >
 <html >
	 <head >
	    <title >Current Weather </title >
	 </head >
 <body >
   <!--NEWS-->
	   <div class="card" >
       <div class="card-body" >
         <ul class="list-unstyled" >
			 <?php
			for ($x = 0; $x  <= 9; $x++) {
			? >
			   <li class="kit_l15_item" >
				 <a href=" <?php echo ucwords($newsdata- >articles[$x]- >url); ? >" class="kit_l15_itemLink" >
				   <div class="kit_l15_itemCover mr-3" >
					 <img src=" <?php echo $newsdata- >articles[$x]- >urlToImage; ? >" alt="Hands" >
				   </div >
				   <div >
					 <div class="text-blue" > <?php echo ucwords($newsdata- >articles[$x]- >title); ? > </div >
					 <div class="font-weight-bold mb-2" > <?php echo ucwords($newsdata- >articles[1]- >publishedAt); ? > </div >
					 <div>
					  <?php echo ucwords($newsdata- >articles[1]- >description); ? >
					 </div>
				   </div >
				 </a >
			   </li >
   <?php
			}
			? >
 </ul >

       </div >
     </div >
	   <!--NEWS END-->
 </body >
 </html >