Jump to content

natepizzle

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Posts posted by natepizzle

  1. 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

  2. Great.

     

    Altho I do have a suggestion.. it might be anoying - unless there's another smart way to do this - but how about asking the user if the topic has been resolved, when posting the second post in said topic. I tend to forget to change my title to [RESOLVED] or whatever, so I'm sure I'll forget to click a link aswell.

     

    Other than that, wonderful mod.

     

    A checkbox for Topic Resolved would be nice. I think your idea is good.

  3. 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.