I am trying to check to confirm that both memberid and recipeid is not null. That way if both have value it will allow the member to ad the ripe to there list if both have a value it will tell them the recipe they are adding is already in there list. Working on this for a while need help and trying to transition from asp classic to php ;-).
$check_fav = mysql_query("SELECT memberid, recipeid FROM favorites WHERE (memberid = '".$memberid."' AND recipeid = '".$id."')");
If ($check_fav == TRUE){.......
$check_fav = mysql_query("SELECT memberid, recipeid FROM favorites WHERE (memberid = '".$memberid."' AND recipeid = '".$id."')");
If ($check_fav == TRUE){.......