Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //the blog and the news system are very practically the same
- <span class="body">
- <h1><b><u>Blog!....<br>Or is it?<br>Yes!!<br> Ok then.</u></b></h1>
- <?php
- include 'sql.php';
- $run = mysql_query("SELECT * FROM `blog` ");
- while($runrows = mysql_fetch_assoc($run)) {
- $title = $runrows ['title'];
- $date = $runrows ['date'];
- $desc = $runrows ['main'];
- echo "<div id ='$title'><h1>$title</h1><h4>$date</h4>";
- 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>
- <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> ";
- }
- ?>
- </span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement