Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: HughbertD
  • Content: Threads
  • Order by date
  1. HughbertD

    Changing captions with pictures - captions not working

    Hi all, For this page here: http://morrish.juiceserver.co.uk/plo...=136&prop_id=9 I have the following code for the photo gallery: var thumbProportion = .17 // thumbnails are 32% of their full size; var IE = false; if (navigator.appName == "Microsoft Internet Explorer"){IE = true;}...
  2. HughbertD

    Null is null or not an object - IE problem

    Hi all, I am encountering the following problem with my javascript code. I get a null is null ornot an object error for this line in my code(the second one): var nImg = document.getElementById('fullSizeContainer'); var fullSizeImg = nImg.getElementsByTagName('img')[0]; The...
  3. HughbertD

    Gallery with image swapping / div swapping

    Hi all, A little while ago someone created a gallery for me, with thumbnails, it would swap the main image for the thumbnail, so no picture was displayed twice (both as thumb and main image) at the same time. I now need to add some captions to the main image but can't figure out how to do it...
  4. HughbertD

    Setting up a variable, explicit package required

    From the code below I get the following errors: Global symbol $start requires explicit package name. I have already initialised this variable here, my $start=$newLine[0]; but it refers to my SQL statement: my ($queryAll) = " select ev_title, ev_locn, dateTime, dateTimeFin from calendar...
  5. HughbertD

    Not satisfying a while loop (probably very obvious)

    Hi all, I execute this while loop, and it never stops. $rownumber is definitely 3. my ($rownumber) = $execute->numrows(); # FETCHROW ARRAY my ($i)=0; while (my (@results) = $execute->fetchrow() && $i<=$rownumber) { $sheet1->write(0, $i, $results[0], $format)...
  6. HughbertD

    SQL statement for adding timeStamp columns

    Hi all, I have a table which holds information for meetings, in the form of, startDate (timestamp), finishDate(timestamp), meetingCompany (varchar). I want to: Add up the total amount of time spent in meetings for each different company. But only include meetings that are longer than 2...
  7. HughbertD

    Catching MYSQL errors

    Hi all, I want to be able to catch a "Cannot delete or update a parent row" error from a mysql database. Instead of just printing the error to the screen, I want to explain that some records need to be altered. Is there a way of doing this? Thanks for any help
  8. HughbertD

    Form tags, what I can and can't do?

    Hi all, I have a PHP page. What I am trying to do is open a <form> which has text boxes in, close that form, then open a different form, close that form, open the first <form> so that I can include the submit button. My hoping was that if i reference by name, the information would come...
  9. HughbertD

    Argh - General Perl Logic! Don't know where to start..

    Hi all, I am having problems simply figuring out where to start with this problem. Ultimately I want to create a spreadsheet which adds up all the hours spent at each company. I have a MySQL database. It holds all the meetings details for each company visited including, the meeting start time...
  10. HughbertD

    Converting Unix timestamps into readable days/hours/seconds ACCURATELY

    Hi all, I have the following code, $start = strtotime($row["dateTime"]); $end = strtotime($row["dateTimeFin"]); $result = ($end - $start); $conv=gmdate("d \d\a\y\s H \h\o\u\\r\s\ i \m\i\\n\s\ s \s\e\c\s",$result); All my results are a day out. When I find out the months and years...
  11. HughbertD

    Apache &amp; Perl - problem with script aliases

    Hi all, I have WAMP installed - (I know I was seduced by its simplicity) I have active state perl installed, 5.8.8 I wish to run perl scripts. I have edited my httpd.conf file with; AddHandler cgi-script .cgi .pl <Directory /> Options FollowSymLinks +ExecCGI AllowOverride None...
  12. HughbertD

    Guarantee text file at the beginning of the array?

    Hi I have /another/ question - sorry, you have all been so good with my queries - thanks. I am zipping up a bunch of files within directories - and the aim is to have the files but not the directories they are in : however, there is a file "BugList.txt" that exists in $WORKING/ area - I want...
  13. HughbertD

    Printing duplicates in a hash

    I have a hash with paths as the key and filenames as the value, I want to print out the path and filename of any of these elements that appear more than once in the hash. Thank you if you can help at all
  14. HughbertD

    Delaying a split

    Hi, I have a string in a scalar $path , I want to split it to get just the file name. I was splitting on the "/" into an array, and then "popping" the last element of the array into the variable, but is there a simpler way to do this?
  15. HughbertD

    Finding duplicates within an array

    Hi all, I am writing a program, so far I have written the contents of the file (in this case filenames) into an array - now I want to find any duplicate filenames within the array and print them to another file - I am having a hard time getting my head around the logic to do this? Can anyone help?

Part and Inventory Search

Back
Top