mysql query not working

  • From: BlueScale <bluescale1976@xxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 07 Aug 2008 02:03:55 -0400

Hi,
I keep not getting what I am expecting.  I enter data I know is in the
database and still get an error.  Can someone tell me if there is
something wrong with this bit of code?
$sql = "SELECT * FROM members WHERE email_address = '" .
$_SESSION["email"] . "' AND pass_word = '" . $_SESSION["psswd"] . "'";
$row = mysql_fetch_assoc($sql);
Thanks
BlueScale

Other related posts: