Thread: Adopts News
View Single Post
  #33  
Old 05-30-2009, 08:31 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 29,471
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: Adopts News

Quote:
Originally Posted by Saphira
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?
Can you tell me the error please.

And find the '$result' nearest to the line where it says the error is, and place this right after it:

die('Invalid query: ' . mysql_error());
Reply With Quote