Hi, I am trying to implement calc40.txt to my database.
When I press "List All" I get the full list (in short view). If I press a name I get the record. I can also press Back to full list in short view, next and previous.
BUT... when I press one of the col titles I get this errormessage:
db.cgi line 759 says:
My files can be found at:
http://www.colombiaklubben.no/dbman_txt/db_cgi.txt
http://www.colombiaklubben.no/..._txt/default_cfg.txt
http://www.colombiaklubben.no/dbman_txt/html_pl.txt
The db is here
http://www.colombiaklubben.no/cgi-bin/dbman/db.cgi
You can log in with test:test (view)
Jan Peter
When I press "List All" I get the full list (in short view). If I press a name I get the record. I can also press Back to full list in short view, next and previous.
BUT... when I press one of the col titles I get this errormessage:
Error Message : fatal error: Not a CODE reference in sort at db.cgi line 759.
db.cgi line 759 says:
Line 753: # Sort the array @hits in order if we are meant to sort.
Line 754: if (exists $in{'sb'}) { # Sort hits on $in{'sb'} field.
Line 755: my ($sort_order, $sort_func);
Line 756: $in{'so'} ? ($sort_order = $in{'so'}) : ($sort_order = "ascend");
Line 757: $sort_func = "$db_sort{$db_cols[$in{'sb'}]}_$sort_order";
Line 758:
Line 759: foreach $hit (sort $sort_func (keys %sortby)) {
Line 760: $first = ($hit * $#db_cols) + $hit; $last = ($hit * $#db_cols) + $#db_cols + $hit;
Line 761: push (@sortedhits, @hits[$first .. $last]);
Line 762: }
Line 763: @hits = @sortedhits;
Line 764: }
My files can be found at:
http://www.colombiaklubben.no/dbman_txt/db_cgi.txt
http://www.colombiaklubben.no/..._txt/default_cfg.txt
http://www.colombiaklubben.no/dbman_txt/html_pl.txt
The db is here
http://www.colombiaklubben.no/cgi-bin/dbman/db.cgi
You can log in with test:test (view)
Jan Peter