CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [KevinR] Creating alphabetic Sort: Edit Log



allan1962
Novice

Jun 5, 2007, 2:58 AM


Views: 5082
Re: [KevinR] Creating alphabetic Sort

The "|" on the end of the line is there because the script was being used on a multi-field database.

I just wasn't sure how to get rid of it without messing things up further.

I have no doubt that my coding looks awful, but like you say, it works.

With the exception of;

the "A" at the top of the page is hard coded

the "Y" and "Z" fields, because there are no categories for these, aren't displayed

ideally i need the results displayed in 3 columns ( similiar to what's here )

I have used 3 columns to display results with other scripts, but like you say, the code is a mess and I'd likely

bang my head for another 2 days trying to incorporate this.

$rowcount = "$in{'rowcount'}";
$rows = 3;


for ($rc=$rowcount; (($rc < $rowcount+3) && ($rc < $rows));)
{


print record

$rc += 1;

$i += 1;

}

$rows++;

If anyone can help with this it would be appreciated.


(This post was edited by allan1962 on Jun 5, 2007, 3:02 AM)


Edit Log:
Post edited by allan1962 (Novice) on Jun 5, 2007, 3:02 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives