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 bkrike 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: overflo
  • Content: Threads
  • Order by date
  1. overflo

    Pagination

    Hi I have this function that works great but the volume of photos could get really large. I've tried numerous tutorials on pagination but with no luck. Does anyone know a simple way to have 15 instances on each page. Any ideas much appreciated function show_homepage(){...
  2. overflo

    compare values of checkboxes

    I have a form that has 4 checkboxes. They are displayed as checked or not as according to what is in the database. When the form is submitted I need to compare the in initial state of checkboxes so that if any are changed then I can add the code to update database. eg initial form checkbox...
  3. overflo

    GD Library Text on Image

    The following is some code that was supplied to me by a Tek-Tips member (pjadie - thanks again) which works great except when I try to save it to file. I have tried to add to the imagepng($im); with this imagepng($im, 'new_image.png', 100); i have also tried by declaring a $new_image variable...
  4. overflo

    GD Library add text to image

    Hi. Has anyone had any success with using the GD library to write text on an image. I have trawled the 'net and tried various methods but none will work. I have tried them all on 4 separate servers - all with GD enabled, FreeType Support enabled, FreeType Linkage with FreeType, GetText Support...
  5. overflo

    Distinct query problem

    I have a table that with the fields ID, workerID and photo. Each worker can have multiple photos but I need a query to grab one of each worker randomly, so that only one photo is shown of each worker in a gallery, and in random order. I have this code but it is only grabbing the first instance...
  6. overflo

    File Upload Data verification

    I am trying to verify if the field is empty, (Have verifying if .jpg or .gif working) I have tried these: if (empty($_"FILES['image']['tmp_name'])){ $message = "Please choose and image"; } if ($_"FILES['image']['size']===0){ $message = "Please choose and image"; } if...
  7. overflo

    php imagemagick crop

    Hi I have this script working so far. It get gets an image, resizes the shortest edge to 300, now I need it to crop the image so that it is 300x300 (from the center). I have tried so many different ways that I'm totally confused and would be eternally grateful if anyone can give me any ideas...
  8. overflo

    Date add 1 year

    Hi I am trying to help someone and and I'm only a beginner myself in VBA. We have an after update event of a text box (txtDatePaid). What we need it to do is grab the date from another text box (txtDueDate) add 1 year (the date will always be 30th June) and put this back into txtDueDate. I...
  9. overflo

    USB Devices not recognized

    This is what happened to a friends computer. Her daughter had the camera connected and disconnected using "Safely remove hardware device". Ever since then the only USB device the computer will recognize is the camera (as a Mass Storage Device"). The previously working printer and flash drive...
  10. overflo

    left click download for pdf file

    Can I use JS to enable website visitors to download a pdf file with a left click Cheers
  11. overflo

    Clearing the buffer

    Is it necessary to clear the buffer in php 5. Cheers
  12. overflo

    Include files './file.php' as opposed to 'file.php'

    Just wondering what, if any, is the difference when including a file from the same directory between './file.php' and 'file.php'. Is there any reason to use the ./ or are there instances where one should be used in preference to the other. Thanks in advance
  13. overflo

    reading data from a text file

    I'm trying to make sense of this code. It's a simple script to display data from a text file <?php if (file_exists($filename)){ $data = file($filename); $lineno=0; foreach ($data as $line) { $lineno +=1; echo nl2br($line); if (($lineno % 2) == 0) { echo '<hr width="50%" align="left"/>...
  14. overflo

    Error &quot;Warning: cannot modify header....&quot;

    I have a dynamic website written on a comp running PHP 5 (and had also run on testing server running the same). I have uploaded to server which is running PHP 4.4.1. The problem is I have some scripts that redirect after deleting and everything was running fine until I uploaded to server. Now I...
  15. overflo

    form focus first field

    I need to force the focus onto the first field of a form. I know how to do this in javascript for a html form but what if the forms are generated from functions (It's a fully dynamic site)? Any help would be greatly appreciated
  16. overflo

    MySQL FULLTEXT problem

    I have a search function that works, but only on some words. It isn't missing whole fields or rows as I have tested it extensively. It will find Co-ordinator or Foreman in a field named position but will ignore Manager. In the same row where Manager is the position it will see the values of the...
  17. overflo

    Apache 2.0.55 and PHP 5.0.18 - not working right

    Just installed Apache 2.0.55 and PHP 5.0.18. Made the obligatory phpinfo.php and that works fine. However I can't get it to parse any other php files. I am trying to use Dreamweaver8 and set up testing server as Local but no luck. Is there a common mistake I may have made. Thanks
  18. overflo

    Value from database to form only displays firstword

    I have an editable form that when the value is called from database it will only display the first word in the text input field. If I change it to a textarea, or when it is called anywhere else on the site it displays correctly. I haven't come across this problem before. Does anyone know what...
  19. overflo

    generate next 12 months

    I need a script that generates the next 12 months. i.e. if it was April it would generate April '06 to March '07. I presume I need to use jdmonthname but have no idea where to start. Any help will be greatly appreciated.
  20. overflo

    FCKeditor won't display in form

    I have a form generated from a function.Everything worked ok until I changed a text box to FCKeditor. This won't display inside the form. It displays before the form and throws the whole page out of whack and when the form is submitted it doesn't read the editor. I can get it working on a HTML...

Part and Inventory Search

Back
Top