Jump to content
Larry Ullman's Book Forums

gmorton01451

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by gmorton01451

  1. The php documentation for mysqli_fetch_array indicates that the return value is, in fact, an array of strings.  Therefore if you wish to perform an identity comparison on any of the values (even numbers), you need to enclose the comparison value in quotes.  The code will work like this:

     

    if ($row['expired'] === '1') $_SESSION['user_not_expired'] = true;

×
×
  • Create New...