Jump to content

john_6767

Members
  • Posts

    99
  • Joined

  • Last visited

    Never

Everything posted by john_6767

  1. no worries, i'll check it out further and then make another topic if i can't get it, cheers!
  2. Cheers, that works.. I also have some .flv files that work fine locally but don't play online, would there be another setting to limit the max file size of downloads? They are progressive downloads not streaming..
  3. cheers, i'll give that a go, i'll try ini_set('post_max_size', '20M'); ini_set('upload_max_filesize', '20M');
  4. I used to have a line in my .htaccess file that over rode the 2mb limit (php_value upload_max_filesize 10M). But recently my server (jumba.com.au) has introduced something new which won't let this work. I get the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@domain.com.au and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Is there another way to up this file upload limit or should i look at different servers? I know I can ask the server guys but they haven't been very helpful in the past.
  5. wait i found one! http://rainbow.arch.scriptmania.com/scripts/preload_wait.html thanks guys!
  6. cheers, i know a bit about this and think its possible without flash, i may be after a javascript that waits until eveything is loaded and then shows the page. one of the recent page si found that does this is: http://forums.ski.com.au/forums/ubbthreads.php
  7. how do i get one of these going? i.e When the site is loading i want to display an animated gif or somthing to keep people amused, then the whole site somes up at once and they go 'gee that was quick'.. not sure if this is php so feel free to move this topic mods..
  8. checked it all out on the localhost, cheers, Would this work with table rows? I am using http://cyberdummy.co.uk/test/dd.php posted by pocobueno1388 which uses lists, the <li> tags can be manipulated with javascript but i would like to do this same thing with <tr> tags.. is this possible?
  9. AndyB - Thanks HoTDaWg - yeh i don't have accesss to the site, cheers though!
  10. Is there anyway i can go to a website and see if its server supports php & mysql?
  11. Thanks, i'll check them out and post back how i go.
  12. pocobueno1388 - its not online yet, but here's an example. Sounds like your onto what i'm after, I have a photo gallery, with 2 fields, (ID, file, caption) I would like to add another field 'order' and then sort by order in the photo gallery so the photo with number 1 is first 2 is second etc... For the backend. I have all the records display in a table, each record as a row. I would like to add a drop and drag using javascript with php that fires when it is dropped to make the update. If this is not possible a simple up link and a down link for every record would suffice.
  13. pocobueno1388 - your right a gap doesn't matter, do you know how to do this with a gap? it would just be 'neater' and the numbers stay smaller with no gaps..
  14. Thanks for your quick reply, I don't want to change the pk and i am after a server side (php) script to do this, i would like to have a seperate field for 'order by' so the user can choose the order of records, i.e. like for a photo gallery the user can choose which photos are displayed before others without having to put them into the gallery, i have seen this done before but can't figure it out.. i assume its common practise and there are php scripts out there for it.. it involves something like, change current record from 'oldValue' to 'newValue' if another record has 'newValue' then change new record etc...
  15. I would like to implement a column in my mysql database that allows me to sort my records by this column. I assume that numbers is the best way to go, (ie orders are 1,2,3,4,5 and i can sort by order ascending). My question is in regards to maintaining this column as if i delete a record in the middle of the order i would have to move every order number that is higher down a number so there isn't a gap in numbers. And to update i would have to move all the other records around this record which are effected by the change. Is this the way to approach this problem, is there a better way or can you point me towards some script to do this..
  16. i know, must have been something else that was wrong, half my code is commented out so i'm going through it now trying to work out where my error is, thanks for your help though i didn't know it was that easy, i was just taking a stab in the dark.
  17. thanks guys, yep the $_POST['quantity_'.$My_Variable] worked now, theres a handy trick for the future
  18. nope no luck, i changed it to this so i can tell if it works.. any more ideas? if (eval('$_POST[\'$qtyField\'];') > 0) { echo "It is bigger than 0"; } i tried it without the semicolon but no luck there either
  19. ok i'm trying to get the value of a posted field that has the name stored in my variable.. is this possible?? $_POST['$My_Variable'] i have some fields named quantity_1, quantity_2, quantity_3 etc so i have also tried $_POST['quantity_'.$My_Variable] .. but no luck, any tips?
  20. yep, just been reading it now, when i wrote my last post i already had what i'd done on the clipboard and didn't want to waste it! ;) cheers, that way is definitely better
  21. cheers, i have just got this to work, its a bit messy, but incase it helps anyone else.. i'll now go check that link out and see if theres a better way to do it.. [code]   <?php   $DateParam = date("Y");   $yearsBetween = $DateParam - 2000;   $i=0; echo "<select name=\"start_date\" id=\"start_date\" class=\"formDropDown\"/>"; while($i<=$yearsBetween)   {   $yearVar = 2000 + $i;   echo "<option value=\"" .$yearVar ."\">".$yearVar ."</option>";   $i++;   } ?> <option value="<?php echo date("Y") + 1 ?>"><?php echo date("Y") + 1 ?></option> <option value="<?php echo date("Y") + 2 ?>"><?php echo date("Y") + 2 ?></option> </select> [/code]
  22. i'm trying to fill a drop down with the years from year 2000 to two years ahead of the current year, ie for this year there would be the values: 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 as options in the drop down and then next year 2010 would appear.. i have been using the following code to display from two years back to one year ahead but cannot see how i can go from the year 2000 widthout having to update the code every year.. maybe someone can show me how to get the current year minus the year 2000 then loop through adding every year between? [code]<select name="start_date" id="start_date" class="formDropDown"/> <option value="<?php echo date("Y") - 2 ?>"><?php echo date("Y") - 2 ?></option> <option value="<?php echo date("Y") - 1 ?>"><?php echo date("Y") - 1 ?></option> <option value="<?php echo date("Y")?>"><?php echo date("Y") ?></option> <option value="<?php echo date("Y") + 1 ?>"><?php echo date("Y") + 1 ?></option> </select>[/code]
×
×
  • 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.