Wednesday, March 5, 2014

Tute 27 : Latest Data show in category page : Part Two

Now we write some php and html code into "latest-news" div. We write this code after <h2></h2> :




-----------------------------------------------------------------------------------------------------------
<ul>
                        <?php
                        while($query_lat_row=mysql_fetch_assoc($query_lat_run)){
                        $heading_lat=$query_lat_row['heading'];
                        $id_lat=$query_lat_row['id'];
               
                        echo '<li> <a href="detailspage.php?id='.$id_lat.'">'.$heading_lat.'</a></li>';
                        }
                        ?>
                        </ul>
-----------------------------------------------------------------------------------------------------------




After hat we save the document and go to Google chrome and refresh the home page. We see some article heading show in right panel. We take the mouse this heading. The mouse pointer change in linkable pointer.
Then go to home page and again click other category. Now show different news in right panel.

So other category latest news work has been done.

No comments :

Post a Comment