Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-25-2004, 04:27 AM
o2
Unregistered

Posts: n/a

PHP NEWS SCRIPT?

Hi i am looking for a good PHP news script, any one know of 1?

Thanks...
o2
Reply With Quote
  #2  
Old 09-25-2004, 03:02 PM
careless
Unregistered

Posts: n/a

well

i made one but i dont want ppl to use it cos they mess with copyright stuff which isnt even viewable lol
Reply With Quote
  #3  
Old 09-25-2004, 05:45 PM
Dane
Unregistered

Posts: n/a

<?
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>";
}


?>
Reply With Quote
  #4  
Old 09-25-2004, 05:45 PM
Dane
Unregistered

Posts: n/a

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 ;
Reply With Quote
  #5  
Old 09-25-2004, 05:46 PM
Dane
Unregistered

Posts: n/a

settings.php

<?
$db = mysql_connect("localhost", "username", "password");
mysql_select_db("databasename", $db);
?>
Reply With Quote
  #6  
Old 09-25-2004, 05:47 PM
Dane
Unregistered

Posts: n/a

This is a basic news script, use it if you want.
Reply With Quote
  #7  
Old 09-26-2004, 08:52 AM
careless
Unregistered

Posts: n/a

wel..

not a bad script

i made one along same lines but with admin panel etc as it was part of my portal
Reply With Quote
  #8  
Old 09-26-2004, 05:33 PM
Dane
Unregistered

Posts: n/a

just a few minutes work really hehe, but it does the job , forgot to add the admin part lol.
Reply With Quote
  #9  
Old 10-30-2004, 03:57 PM
XinG
Unregistered

Posts: n/a

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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 11:24 AM
What PHP script is this? Chels Web design and Programming 11 02-04-2006 06:45 AM
my first php script.. General Nuisance Web design and Programming 32 05-31-2005 10:34 PM
Php Database Script area51-(xs)- Web design and Programming 8 06-27-2003 10:24 AM
php news script? Se7eN Web design and Programming 2 05-04-2003 01:09 PM


All times are GMT -5. The time now is 04:41 PM.




Powered by vBulletin®