i have a table named users where i have two three column userid, email, membershipexpiry
i want to write a stored procedure tat will take email as a input from the front hand and compare the current date with the date stored int the membershipexpiry column in the database its should be less then or equal to the current date if the membership hasn't expired it should return 1 or else 0.
plz help me
thanks in advance
sanjay