This is same to Tute 9. But we do this work in different stapes.
First open the index.php file in notepad++ soft.
Write this code into the body <?php ?> tag after the “$heading=$query_row['heading'];” code :
---------------------------------------------------
$details=$query_row['details'];
---------------------------------------------------
Again write this code after " echo $heading. '<br>'; " code :
---------------------------------------------------
echo $details. '<br><br>';
---------------------------------------------------
Code for show details data |
Save the file and again go to browser and refresh. We see description with headline.
If not see please check code carefully in index.php file.
Now we some decorate our post. So include <h3></h3> tag in our body php code.
Write <h3></h3> like this :
---------------------------------------------------
echo '<h3>'.$heading. '</h3>';
echo $details. '<br><br>';---------------------------------------------------
Decorate the home page data |
Go to the Google Chrome and refresh the home page. We see our home page show description with heading.
Show Data Home Page Hand with Details |
No comments :
Post a Comment