Check if a value exist in a recordet
How can I check if a value exist on a recordset column? I was thinking to use in_array command but I dont know how to implement it?
<?php
$amenities = new WA_MySQLi_RS("amenities",$ixtapa,0);
$amenities->setQuery("SELECT amenities.* FROM amenities WHERE amenities.id_hotel = ?");
$amenities->bindParam("i", "".(isset($_GET['hotel'])?$_GET['hotel']:"") ."", "-1"); //WAQB_Param1
$amenities->execute();?>
+++++++++++
in_array = ($places->getColumnVal("amenities"));
+++++++++++
<?php>