create dynamic php page title?
Hi friends,
I want to make my website's product-detail pages title dynamic. so help me how can i create this in php. please share your suggestion. thanks. |
Hi Noah i think this code will be helpful for you
error_reporting("E_ALL ^ E_NOTICE"); $story = $_GET['story']; include 'admin/connect.php'; $getlist="Select * from news where id='$story'"; $result= mysqli_query($con,$getlist); while($row= mysqli_fetch_array($result)) { $a=$row[Heading]; } ?> and put this code in heading code between title tag code are below: |
Pick up the title from mysql before html tag eg. title variable is $title.
Quote:
|
database query is the best..
|
would advise that you use a templating engine such as PHPTAL, or XSLT if you prefer, rather than having header and footer files to do your printing.
|
We can create the dynamic page with the help of php. For known about the tutorial php w3school is best tutorial provide.......
|
thanks it works......
|
In php you have to store the pages in a database and from there you have to fetch these images using suitable function to show the images. Put the images in a folder. You have to put edit, delete, and update queries with it.
|
Quote:
|
All times are GMT -7. The time now is 06:10 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.