1. yes
2. the records are very basic, and it works fine for any record if you don't select all columns.
3. 78 columns
4. not much at all, most fields are integers with 0 in them, a few date/time, some ntext and some decimals and some money fields.
here is the whole record ...columns
Code:
Rec_ID MemNo Issue_Date Period_Start Period_End Due_Date Comp_Date Broker_Fees_Reg Broker_Fees_Non_Reg Proc_Fees_Reg Proc_Fees_Reg_Dets Proc_Fees_Non_Reg Proc_Fees_Non_Reg_Dets Income_Commercial Income_Commercial_Dets Income_Loans Income_Loans_Dets Income_Insurance Income_Insurance_Dets Income_Other Income_Other_Dets App_Person App_Person_Dets LifeTime Staff_Tot Staff_Mort Staff_Ins Staff_PT PT_Hours Leavers Leavers_Dets Sel_Mark_List_Mort Sel_Mark_List_Ins Sel_Ref_Intro_Mort Sel_Ref_Intro_Ins Sel_Ref_Brokers_Mort Sel_Ref_Brokers_Ins Sel_Telesales_Mort Sel_Telesales_Ins Sel_ColdCall_Mort Sel_ColdCall_Ins Sel_Visits_Mort Sel_Visits_Ins Sel_Postal_Mort Sel_Postal_Ins Sel_Direct_FP_Mort Sel_Direct_FP_Ins Sel_Repeat_Mort Sel_Repeat_Ins Sel_Internet_Mort Sel_Internet_Ins Sel_Ad_News_Mort Sel_Ad_News_Ins Sel_Ad_Mag_Mort Sel_Ad_Mag_Ins Sel_Ad_TV_Mort Sel_Ad_TV_Ins Sel_Ad_Radio_Mort Sel_Ad_Radio_Ins Sel_Ad_Internet_Mort Sel_Ad_Internet_Ins Sel_Ad_Other_Mort Sel_Ad_Other_Ins Sel_Ins_Motor Sel_Ins_Home Sel_Ins_PP Sel_Ins_Travel Sel_Ins_ASU Sel_Ins_Legal Sel_Ins_PMI Sel_Ins_CIC Sel_Ins_PHI Sel_Ins_Life Sel_Ins_HCPlan Sel_Ins_Ex_War Complaints Declaration Status
and values...
Code:
153 MY_MEMNO 23/03/2010 18/03/2010 31/03/2010 17/04/2011 13/04/2010 £0.00 £0.00 £0.00 £0.00 £0.00 £0.00 £0.00 £0.00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Agree COMP
5. it's a self contained script which serves a specific purpose
6. sort of answered by 5. but basicall ythe script does this...
Code:
#!/usr/bin/perl
######################
# Set Error Trapping #
######################
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
use warnings;
use strict;
# Set path to user modules
use FindBin qw($Bin);
use lib "$Bin";
######################
# Use Globals Module #
######################
use Memglobs;
##################
# Use SQL Module #
##################
use Sql2;
#######################
# Use Template Module #
#######################
use Template;
##########################
# Use Currency Formatter #
##########################
use Locale::Currency::Format;
##################
# Use CGI Module #
##################
use CGI;
###################
# Set SMTP Server #
###################
use constant SMTP_DOMAIN => "127.0.0.1";
# Read FORM or URL data
my $cgi = new CGI;
# Set Action & User variables
my $action = $cgi->param('FA');
my $user = $cgi->param('user');
# Set Date & Time
my @ukdate = &uk_date;
#################################################################
# UNCOMMENT CODE BELOW IF YOU WANT TO STOP MEMBERS USING SYSTEM #
#################################################################
if(!STAFF){
print "Content-type: text/html\n\n";
print "<h3 style=\"color:red;\">Sorry system is currently unavailable due to maintenance, please try again later</h3>";}
exit();
}
############### ARE THEY LOGGED IN CHECK ###################
if(&log_chk("$user") ne "yes"){&sys_error(2,"no"); exit();}
# Check is AR Pricipal
if(!&getSQL("mytable","Role","ID = '$user' AND Role='myrole'")){
&sys_error(5,"no"); exit();
}
################# FUNCTIONS ####################
if($action eq "VIEW"){
&view_rmar();
exit();
}
there is other functions but no point in showing them as they aren't called....
then the view sub which is crashing...
Code:
######### VIEW RMAR ###########
sub view_rmar {
# Update WhereIS record
&where_is("$user","Viewing Completed RMAR");
my $rec = $cgi->param('ID');
my @sel;
[blue]
# get RMAR
my @rmar = &getSQL("My_Table","*","Memno='$user' AND Rec_ID = $rec","Memno Desc","test");
[/blue]
there is code below but the blue line is where it crashes.
I don't see how the table is duff, it works with MS Access, SQL enterprise manager and Win32::ODBC with perl, it's ONLY DBI that is causing the problem.
The most annoying thing in all this is not being able to get the error outputted! I'm assuming it must be throwing one?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts