AJR-Legend
New Member
I'm trying to code an array that displays a certain set of products depending on the gender of the logged in user. The arrays not really the problem but the parts where I'm going to have to check the database then create the conditional statement from the results is the main problem i think.Here is my code:\[code\]<?phpinclude"config.php" or die "cannot connect to server";$gender=$_POST['gender']; $qry ="SELECT * FROM server WHERE gender ='$gender'"; $result = mysql_query($qry); $productdetails; $productdetails1["Product1"] = "