User Profile

Collapse

Profile Sidebar

Collapse
jfarthing
jfarthing
Last Activity: Dec 11 '07, 11:06 PM
Joined: Sep 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jfarthing
    started a topic Dynamically resize divs.....

    Dynamically resize divs.....

    Hi Everyone!

    I am trying to resize a div based on screen size. I am using this

    Code:
    .Menu {
        position:absolute;
        background-color: #FFD600;
        float:left;
        top:0px;
        left:0px;
        height:100px;
        width:100%;
        width: expression(document.compatMode=='CSS1Compat'? (document.Menu.offsetWidth-81)+'px' : body.(offsetWidth-81)+'px');
    }
    ...
    See more | Go to post

  • jfarthing
    replied to Search not returning only one result
    in Perl
    Ok, how did I miss that???

    Anyway, thanks for all of your help Kevin. It is greatly appreciated.
    Jim...
    See more | Go to post

    Leave a comment:


  • jfarthing
    replied to Search not returning only one result
    in Perl
    Hiya Kevin,

    Ok, I made the changes that you suggested and made some headway.....

    but, I am trying to get the output into two columns, and it has been a *very^ long night so please bear with me for a minute......

    Anyway, I figured that the easiest way to get the output into two columns was a simple if ... else statement. So I came up with this little bit. For some reason, it always defaults to the first...
    See more | Go to post

    Leave a comment:


  • jfarthing
    replied to Search not returning only one result
    in Perl
    Yeah, it is just for testing but forgot to change it when I posted here.....

    Anyway, I tried adding the "=" but then it complained that @rows hadn't been explicitly declared, so declared it and then got "Can't use an undefined value as an ARRAY reference at search2.cgi line 153."...
    See more | Go to post

    Leave a comment:


  • jfarthing
    started a topic Search not returning only one result
    in Perl

    Search not returning only one result

    Hi everyone!

    I am using the script below to search a db. If the is more than one match in the db, all goes well. But if there is only one match in the db, nothing gets displayed.

    Any suggestions will be greatly appreciated.
    Jim

    [CODE=perl]#! /usr/bin/perl -w

    use strict;
    use DBI;
    use CGI qw(:standard escape escapeHTML);
    use diagnostics;
    use CGI::Carp qw/fatalsToBrowser...
    See more | Go to post
    Last edited by numberwhun; Oct 16 '07, 03:23 AM. Reason: Formatting

  • jfarthing
    replied to Select not returning all results
    Ok, forgive my ignorance on this, but could you please explain???

    BTW..... It seems to only not give me anything when the search results contain only one entry. If I do a search for 'Fundraising' which I only have 1 entry for in the DB, I get nada, if I do a search for 'Real Estate' which I have several of in the DB, no problems.....

    Strange........
    See more | Go to post

    Leave a comment:


  • jfarthing
    started a topic Select not returning all results

    Select not returning all results

    Hi everyone,
    I am using a PERL script and am having some probs with it....

    [CODE=perl]$query = sprintf (
    "SELECT `Cats`.`Name`,` Address`.`Addre ss`,`Address`.` City`,`Contact` .`Phone`
    FROM
    (
    `Cats`
    LEFT JOIN
    `Address`
    USING (`Name`)
    ...
    See more | Go to post
    Last edited by pbmods; Oct 14 '07, 03:35 PM. Reason: Changed [CODE] to [CODE=perl].

  • Oops, I left the contact info out of the original query. I figured that one out on my own!

    Your suggestion works perfectly.

    Thanks for the help!
    Jim
    See more | Go to post

    Leave a comment:


  • Joining three tables... getting 100 rows where there should only be six.

    I am trying to write a query that joins 3 tables and having a
    problem.... First, some structure info, the 3 tables are.....

    Code:
    Address
         Name
         Street
         City
         State
         Zipcode
         ID
    
    Contact
         Name
         Phone
         Fax
         Email
         URL
    
    Keys
         Name
         Keywords
         ID
    ...
    See more | Go to post
    Last edited by pbmods; Oct 13 '07, 07:54 PM. Reason: Changed [CODE] to [CODE=mysql].

  • jfarthing
    replied to SELECT from 2 columns
    Category contains names, and keywords is a comma separated list.....
    See more | Go to post

    Leave a comment:


  • jfarthing
    started a topic SELECT from 2 columns

    SELECT from 2 columns

    Hi all,
    I have what I hope is a simple question....

    I have a table with several columns, the 2 I am concerned with at the moment are Category and Keywords.

    I need to search both of these columns for a word or short phrase that I get from a form.

    For example, the search can be 'Antiques' or 'Antique Dealers'

    I tried to use this
    CODE
    [CODE=mysql]SELECT name, address, city,...
    See more | Go to post
    Last edited by mwasif; Sep 20 '07, 12:06 AM. Reason: Added code tags.
No activity results to display
Show More
Working...