Jump to content

redixx

Members
  • Posts

    146
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

redixx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Fixing WebStyles code: $string = ''; foreach ($_POST as $key => $value) { $string .= "`" . $key . "` = '".mysql_real_escape_string($value)."', "; // use mysqli_real_escape_string or mysqli::real_escape_string if you are using MySQLi } $string = rtrim($string, ', ');
  2. $now = time(); $diff = $now - $timestamp; if ($diff => 600) { // 10 minutes has passed }
  3. Try something like this: if (is_int($param)) { $type = 'i'; } else if (is_float($param)) { $type = 'd'; } else { $type = 's'; } call_user_func_array(array($this->stmt,'bind_param'),array_merge(array($type),$param));
  4. You can do this with the mail() function. There are many tutorials and snippets floating around the web to show you how.
  5. Yup, find a different host. Alternatively there are a few options regarding email delivery companies (can't think of a better way to word that). You basically pay a small rate and they make sure your emails are delivered.
  6. http://flowplayer.org/
  7. Yup. See the manual for more information
  8. $pagetitle = rtrim(basename($_SERVER['SCRIPT_NAME']), '.php');
  9. Even if you use salts, md5 is not a safe option. At the very very least, use sha1 instead (which has exactly the same usage as md5, so there's no excuses).
  10. http://www.socialengine.net/
  11. MD5 is hashing not encrypting. And you should avoid it like the plague. See this topic: http://www.phpfreaks.com/forums/index.php?topic=336473.0
  12. Ah, I see. The easiest way would be just define a page_title variable and stick it in both the <title></title> and the query. The hardest way would be to use file_get_contents and scrape the HTML till you get the <title></title> text.
  13. Using Firefox 4, this seemed to work: .go-btn { position:relative; top:1px; } EDIT: By the way, you have a lot of unnecessary lines of code. You can put a lot of your styling into one statement. For example instead of all the border-left, border-right etc, you can just do: border:1px solid #F06; border-left:0px;
  14. Yes, store a failed_attempts field in your table. Update it each time they have a bad login, and then have a limit defined somewhere. If failed_attempts > the limit, they can't log in. But, make it so that if they haven't received a bad login for X minutes, it clears the failedAttempts.
  15. Is "page_title" supposed to be a variable? If so, you need to do it this way: $sql = "SELECT COUNT(*) FROM (SELECT * FROM `People` WHERE Name='" . $page_title . "') subq";
×
×
  • 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.