Jump to content

discomatt

Members
  • Posts

    1,943
  • Joined

  • Last visited

    Never

Posts posted by discomatt

  1. I'm no mysql guru, but try escapting all mysql field names. Sometimes you can be using a reserved name without knowing it

     

    $query = mysql_query("

     

    UPDATE `user` SET `password1` = MD5('" . mysql_escape_string($password1) . "'), `password2` = MD5('" . mysql_escape_string($password2) . "')

    WHERE `emailaddress1` = '" . $_SESSION['sessioname'] . "'

     

    ");

  2. The ! before the function can pretty much be equated to == FALSE;

     

    so

     

    if (!function()) is the same as if (function() == FALSE)

     

    Be careful though... ! checks for both FALSE and 0.. so if your function returns a numeric value, and there's a chance it might be 0, be sure to use

     

    if (function() === FALSE)

×
×
  • 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.