Jump to content

natepizzle

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Everything posted by natepizzle

  1. I don't think you need to cast the session id as an integer.
  2. Create 2 mysql columns, min price and max price, and use php to check for a max price on each row. If it exists then it should display as min - max eg $90 - $100 As for the unavailable you could set the min price for those hotels to null and use php to display Unavailable if the min is null Im not the greatest with mysql but im fairly certain you can use null with integers
  3. are you on windows, *nix, or a [choke] mac [/choke]
  4. html and javascript can be viewed but a site with a working php parser, the php isn't viewable as its server side.
  5. Until you could get a more qualified answer you could try padding the prices with 0's in mysql and strip them with php in the output.
  6. If you have ftp access to the files in question you can right click the file in most ftp programs and change permissions.
  7. A checkbox for Topic Resolved would be nice. I think your idea is good.
  8. If he is just wanting to put the design of the site into a single place so that changes reflect over every page include would work just fine.
  9. http://us2.php.net/manual/en/function.include.php
  10. you could use sessions if you don't want to use a db and email everything when finished. http://us2.php.net/manual/en/book.session.php
  11. Try $item_retail = ($_GET['item_retail'] * .75); and remove *.75 from <INPUT TYPE=HIDDEN NAME=price VALUE='$item_retail*.75'>
  12. Can you attach the /home/ausnzcla/public_html/libraries/joomla/environment/uri.php file to the thread so we may help further.
  13. I understand '===0' means is exactly the same but i don't understand the return statement with that on the end. I saw this code snippet at http://www.jonasjohn.de/snippets/php/starts-with.htm and its dated back in 2007 so maybe its just old and not UTD with php 5. Maybe there is an implied if statement there saying return this line only if it is exactly equal to 0. Thanks for any help. [cod] function StartsWith($Haystack, $Needle){ // Recommended version, using strpos return strpos($Haystack, $Needle) === 0; } [/cod]
×
×
  • 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.