Jump to content

mike1313

Members
  • Posts

    116
  • Joined

  • Last visited

Posts posted by mike1313

  1. That would work, but basically I need it so if they put music like? It would return the same results.  So basically I need to search the entire string for two words like and music no matter what words come in between or what order they are in as long as they are in the same string.

  2. Alright basically what is want to do is take user input and I want it to check if the user asked if you like music?

     

    And I want to have so if you just entered,  like music? it would return the same. So do you like music? and like music? would return the same result.

     

    So,

     

    Would preg_match be the best solution?

     

    Thanks in advance.

     

     

     

     

  3. $result = mysql_query("SELECT * FROM Loans");
    $num_rows = mysql_num_rows($result);
    IF ($num_rows <=25){
    $date = date("Y-m-d G:i:s", strtotime("+1 Day"));
    $date0 = date("Y-m-d G:i:s");
    $date1 = date("Y-m-d G:i:s", strtotime("+2 Day"));
    $date2 = date("Y-m-d G:i:s", strtotime("+3 Day"));
    $date3 = date("Y-m-d G:i:s", strtotime("+7 Day"));
    }
    ELSEIF($num_rows > 25) {
    $date = date("Y-m-d G:i:s", strtotime("+2 Day"));
    $date0 = date("Y-m-d G:i:s");
    $date1 = date("Y-m-d G:i:s", strtotime("+3 Day"));
    $date2 = date("Y-m-d G:i:s", strtotime("+4 Day"));
    $date3 = date("Y-m-d G:i:s", strtotime("+7 Day"));
    }
    ELSE {
    //some 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.