PHP NEWS SCRIPT?
Hi i am looking for a good PHP news script, any one know of 1?
Thanks... o2 |
well
i made one :p but i dont want ppl to use it cos they mess with copyright stuff which isnt even viewable lol
|
<?
include("settings.php"); $sql = "SELECT * FROM clanname_news ORDER BY news_id DESC"; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { echo "<br><br>"; echo "<table cellspacing=1 cellpadding=4 border=0 width=90%><tr><td id=outline2><b>".$row['news_title']."</b> - "; echo $row['news_author']." - ".$row['news_date']; echo "</td></tr><tr><td id=outline2>"; $body = $row['news_body']; print(nl2br($body)); echo "</td> </tr> </table>"; echo "<br>"; } ?> |
CREATE TABLE `clanname_news` (
`news_id` int(11) NOT NULL auto_increment, `news_author` varchar(32) default NULL, `news_title` varchar(32) default NULL, `news_body` text, `news_date` varchar(32) default NULL, PRIMARY KEY (`news_id`) ) TYPE=MyISAM AUTO_INCREMENT=49 ; |
settings.php
<? $db = mysql_connect("localhost", "username", "password"); mysql_select_db("databasename", $db); ?> |
This is a basic news script, use it if you want.
|
wel..
not a bad script :)
i made one along same lines but with admin panel etc as it was part of my portal |
just a few minutes work really hehe, but it does the job :), forgot to add the admin part lol. :D
|
careless can u send me that script? i wanna know how u make an admin panel n stuff, add me on msn if u can tomwatts20@hotmail.com
|
All times are GMT -5. The time now is 08:09 PM. |
Powered by vBulletin®