Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $title2="";
- $content="";
- $query="";
- $artid=$_GET['artid'];
- if(strLen($artid)>0){
- $query="select title,content from tbl_articles where id='$artid'";
- }else{
- $query="select title,content from tbl_articles where is_home='1'";
- }
- $q=mysql_query($query);
- while($r=mysql_fetch_array($q)){
- $title2=$r['title'];
- $content=$r['content'];
- }
- ?>
- <!-- title -->
- <title><?php echo $title." | ".$title2; ?></title>
- <!-- content -->
- <?php echo $content; ?>
Add Comment
Please, Sign In to add comment