[IIS] [REVCMS] Posting News

Mavec

New Member
Feb 6, 2012
5
0
I get this by posting a news article:

PHP:
Incorrect integer value: 'Mavec' for column 'author' at row 1

Someone has a fix for it?
 

Micki

Active Member
Sep 2, 2011
105
22
Try not to change the author column to your name if you haven't done that fix.
If not try to duplicate an previous article and edit it to your own,
 

Ryabs

Christmas Donator
Dec 30, 2011
343
39
Find file news2.php and replace line 66 with
Code:
mysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());"
 

Clipper

New Member
Mar 26, 2012
5
0
can you help me?
Find file news2.php and replace line 66 with
Code:
mysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());"
Do that.
 

Users who are viewing this thread

Top