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(){...
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...
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...
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...
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...
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...
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...
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...
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...
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
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"/>...
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...
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
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...
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
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...
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.