Advertisement
pcwizz

pcwizz.net blog.php

Jan 2nd, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1. //the blog and the news system are very practically the same
  2. <span class="body">
  3. <h1><b><u>Blog!....<br>Or is it?<br>Yes!!<br> Ok then.</u></b></h1>
  4. <?php
  5.  
  6. include 'sql.php';
  7. $run = mysql_query("SELECT * FROM  `blog` ");
  8.  while($runrows = mysql_fetch_assoc($run)) {
  9.                $title = $runrows ['title'];
  10.                     $date = $runrows ['date'];
  11.                $desc = $runrows ['main'];
  12.                
  13.                     echo "<div id ='$title'><h1>$title</h1><h4>$date</h4>";
  14.                
  15.            
  16.                  
  17.              
  18.                 echo "<p>$desc</div><br><br><p>tweet this blog post<br><a href='https://twitter.com/share' class='twitter-share-button' data-url='http://pcwizz.net/index.php?page=news#$title' data-text='i think you might like this very much read this blog post $title' data-via='pcwizz' data-hashtags='pcwizz'>Tweet</a>
  19. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='//platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','twitter-wjs');</script>  ";
  20.                
  21.                    
  22.                        
  23.             }
  24.  
  25.  
  26.  
  27. ?>
  28. </span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement