Thodaabnota
New Member
I have a \[code\]$_SESSION\[/code\] id's of an itemfor example i have this items \[code\]$_SESSION['items'] = array(1,4,5,7,8);\[/code\]and I have a data from database \[code\]$query = mysql_query("SELECT * FROM items");while($row = mysql_fetch_array($query)){ // Here in the loop; I want to Search // $row['id'] if exist in $_SESSION['items'] // if exist I want to display 'YES' else 'NO'}\[/code\]How to do the right code for this ?Thank you for any help.