Jump to content

sloshire1

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by sloshire1

  1. It's not a full PHP solution, but it works for me. I found a flash file that handles multiple file uploads by calling a PHP file upload handler once per file. You can find it at http://www.element-it.com/MultiPowUpload.aspx. I used it in one of my recent contract jobs, they loved it. Hope this helps.
  2. How about something like this: <input type="image" src="/images/delete.gif" name="Delete" value="77"><br> <input type="image" src="/images/delete.gif" name="Delete" value="78"><br> <input type="image" src="/images/delete.gif" name="Delete" value="79"><br> . . . You would need to create a delete button image, but it would work.
  3. Email programs can have difficulty reading special characters.  Try using the html character codes for the special characters instead.  You would have to look them up because they are not exactly human friendly, but they can look something like this: &#8225; Hope this is what you are looking for,
  4. Thanks for the tip, I will use that. [quote author=Daniel0 link=topic=121453.msg500114#msg500114 date=1168296913] [code]$input = array_merge($_POST,$_GET);[/code] ;) [/quote]
  5. The simplest way out that I can see is to test the extension of the file.  If it is an html file, print it out.  If it is a PHP file, include it.  Just make sure that there aren't any conflicting variables in your auth script and you should be fine. Hope this helps.
  6. It depends on how the form is going to be used.  I typically try to use $_POST and $_GET when I know who will be submitting data to the script.  I will only use $_REQUEST if I don't know the method the submitting form is using.
  7. It seems far easier just to track the last login rather than keep a record of all the logins for every user.  The simplest way out if to as a last login column to the name table, then update it when that user logs in.
  8. Ok, got it.  You might try just recalling the next larger and smaller id number.  If there isn't one, you know to stop.  Maybe something like this. $currentID = $_GET['id']; $nextQuery = "select id from image where id > $currentID limit 0,1"; $prevQuery = "select id from image where id < $currentID limit 0,1"; The result of each of these queries should be the next ID in the sequence.  Does this help?
  9. I have had some luck using the window.opener reference.  You can have hidden fields on your main page and populate them from the popup like this: [code]parentField = window.opener.document.forms['myForm'].elements['myField']; popupField = document.forms['popupForm'].elements['myField']; parentField.value = popupField.value; window.close();[/code] Hope this helps.
  10. I misunderstood, I thought you wanted to go to the next page of the gallery.  The $page variable should be the page number, and the 1 should be the page size.  Maybe this will be a clearer example: $pageNum = $_GET['PageNumber']; $pageSize = 20; //Set to your maximum page size. $offset = $pageSize * $pageNum; $query = "select * from image order by id asc limit $offset,$pageSize"; The result of this query should be a subset of your images from the gallery to display on the page.  Is this what you are looking for?
  11. Try getting the count of images to determine your upper and lower bounds for the previous and next buttons.  For your query, try the following: select * from images order by id asc limit $page,1 This will give you the images in order, but give you an offset into the table that is based on the page number.  Hope this helps.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.