I have 2 tables called learning_plan and tbl_user.I want to do this:
$qry=Query("SELECT user_name,user_family,coach_code FROM tbl_user WHERE user_level=2");
while($result=mysql_fetch_array($qry))
{
$qry1=Query("SELECT * FROM learning_plan WHERE coach_code=".$result['coach_code']);
while($result1=mysql_fetch_array($qry1))
{
}
}
So I want a query in second while which can get columns with these values (!=1 and <5)
Thank u so much