Thread: Adopts News
View Single Post
  #32  
Old 05-30-2009, 03:10 PM
Saphira Saphira is offline
Member
 
Join Date: Jan 2009
Posts: 89
Credits: 5,890
Saphira
Default RE: Adopts News

Hmm. I haven't tried this out since I changed the database field for detail to LONGTEXT. I'm trying to post news now, and I'm getting an error on add_news.php. I'm guessing that there's an error inserting it into the database.

PHP Code:
    $query "INSERT INTO ".$prefix."news(topic, detail, name, nid, datetime) VALUES('".$topic."', '".$detail."', '".$name."', '".$Max_idd."', '".$datetime."')"
The line of code to insert it, and below, the database layout:

Quote:
nid int(11)
topic varchar(255)
detail longtext
name varchar(65)
datetime varchar(25)
Does this all seem right to you?
Reply With Quote