Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Alex] Insert not putting category in?

Quote Reply
Re: [Alex] Insert not putting category in? In reply to
Actually, looking at it further, I don't think mod_perl is enabled on my linkssql.net site...

I double checked that the script is taking new changes ok by adding a 'duplicate check' bit of code (reports an error if a similar entry exists in the database). Could it be anything to do with the code above the statement? BTW, I've edited it a bit more now, so its in a couple of statements, instead of one long one;

Code:
# ok, if we have got this far, lets assume its ok to add the article...
use GT::Date;
GT::Date::date_set_format($Date_Format);
my $Date = GT::Date::date_get();
my $TimeStmp = GT::Date::timelocal();
my $Article_Table = $DB->table('News_Articles') || &error("SQL Error: $GT::SQL::error");
my $result = $Article_Table->insert( { Title => $Title, Short => $Short_Article, Date => $Date, Category => $Category, Image => $Image, TimeStmp => $TimeStmp, Full => $Full_Article } ) || &error("SQL Error: $GT::SQL::error");
if (!$result) { &error("SQL Error: $GT::SQL::error"); }

This is doing my head in! And there I was thinking the rewrite of my Ace_News plugin was going to be easy! That will serve me right for being too confident...lol

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Insert not putting category in? Andy 3088 Sep 10, 2003, 9:01 AM
Thread Re: [Andy] Insert not putting category in?
Alex 2953 Sep 10, 2003, 12:39 PM
Thread Re: [Alex] Insert not putting category in?
Andy 2963 Sep 10, 2003, 12:43 PM
Thread Re: [Andy] Insert not putting category in?
Alex 2962 Sep 10, 2003, 12:45 PM
Thread Re: [Alex] Insert not putting category in?
Andy 2969 Sep 10, 2003, 1:00 PM
Thread Re: [Andy] Insert not putting category in?
Alex 2951 Sep 10, 2003, 1:11 PM
Thread Re: [Alex] Insert not putting category in?
Andy 2946 Sep 10, 2003, 1:23 PM
Post Re: [Andy] Insert not putting category in?
Andy 2944 Sep 11, 2003, 9:28 AM
Post Re: [Alex] Insert not putting category in?
Andy 2961 Sep 10, 2003, 1:04 PM