View Single Post
  #10   Spotlight this post!  
Unread 14-03-2006, 15:45
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: php/forms/posting/I NEED HELP!!!!!!!!!

ya know, it would be a ton easier to just use a database.
if you have PHPmyAdmin, then use it.

PHP Code:
mysqlServer mysql_pconnect("server","username","password"//server is typically "127.0.0.1"
mysql_select_db("siteData"mysqlServer);

$getNews mysql_query("SELECT * FROM `news` ORDER BY `id` DESC");
$rowGetNews mysql_fetch_assoc($getNews);
$numRowsGetNews mysql_num_rows($getNews);

do {
echo 
$rowGetNews['body'];
} while(
$rowGetNews mysql_fetch_assoc($getNews)); 
im assuming that you have a database, schema name "siteData", with a table called "news".
columns should be AT LEAST:
id INTEGER AUTO_INCREMENT, title VARCHAR(35), body TEXT


adding news to the DB is a different story.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY