#1
|
||
|
PHP NEWS SCRIPT?
Hi i am looking for a good PHP news script, any one know of 1?
Thanks... o2 |
#2
|
||
|
well
i made one but i dont want ppl to use it cos they mess with copyright stuff which isnt even viewable lol
|
#3
|
||
|
<?
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>"; } ?> |
#4
|
||
|
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 ; |
#5
|
||
|
settings.php
<? $db = mysql_connect("localhost", "username", "password"); mysql_select_db("databasename", $db); ?> |
#6
|
||
|
This is a basic news script, use it if you want.
|
#7
|
||
|
wel..
not a bad script
i made one along same lines but with admin panel etc as it was part of my portal |
#8
|
||
|
just a few minutes work really hehe, but it does the job , forgot to add the admin part lol.
|
#9
|
||
|
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
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to get php script to work with ajax(jquery) | alvidales | phphq.Net Forums | 0 | 06-28-2011 10:24 AM |
What PHP script is this? | Chels | Web design and Programming | 11 | 02-04-2006 05:45 AM |
my first php script.. | General Nuisance | Web design and Programming | 32 | 05-31-2005 09:34 PM |
Php Database Script | area51-(xs)- | Web design and Programming | 8 | 06-27-2003 09:24 AM |
php news script? | Se7eN | Web design and Programming | 2 | 05-04-2003 12:09 PM |