Search results

  1. J

    PHP Regex Name Help! Simple Question!?

    Are you sure the rest of the code is set up correctly? It worked fine for me. Maybe you have the trigger backwards? Hmm
  2. J

    PHP: User timeout using timestamp?

    Make a function that you can put at the top of each page. Something like function checktime() { $time = mysql_fetch_array(mysql_query("SELECT timestamp FROM table WHERE id = '#'")); $ts = $time['timestamp']; if ($ts > (time() - 900)) { logout(); } } // End function That might work. I'm not...
  3. J

    How do you keep your X/HTML tidy with PHP?

    I used to have the same problem. There's this lovely thing called a line break. Lol It is \n You use it in the print function. Ex: Instead of echo "<div><p>Text Text</p></div>"; echo "<a href=\"asdf.org\">ASDF</a>"; Which will output <div><p>Text Text</p></div><a href=\"asdf.org\">ASDF</a>...
  4. J

    How do you keep your X/HTML tidy with PHP?

    I used to have the same problem. There's this lovely thing called a line break. Lol It is \n You use it in the print function. Ex: Instead of echo "<div><p>Text Text</p></div>"; echo "<a href=\"asdf.org\">ASDF</a>"; Which will output <div><p>Text Text</p></div><a href=\"asdf.org\">ASDF</a>...
Back
Top