I want to create certain number of html pages dynamically with different content some similar content same layou using php, .net or any other method -
can me in situation dat
i want create around 1000 html pages same layout , different content , similar content header, footer, menu , paragraph in body changing values page title , meta tag , name of file, breacrumb etc should taken database .
as far understand problem want create 1000 pages same layout different cases.
i have done earlier.if can handle tons of code in single file don't have create 1000 pages. 1 single page enough.
you can follow concept of query strings.
assign links in page as
<a href='services.php?id=services'>services</a> <a href='services.php?id=mail'>mail</a>
and handle this
<?php if(isset($_get['id'])) { if($_get['id']=='services') { //display content of services } else if($_get['id']=='mail') { //display contents of mail } } ?>
first decide layout. content should changed use code. other layout unaffected code inside if condition changed.
Comments
Post a Comment