- in_array: documentation ( source)
<?php
$get = $_GET['type'];
$array = array('AA', 'BB', 'CC');
if(in_array($get, $array)) {
$Qdaily_entriesD = mysql_query("SELECT * FROM daily_entries WHERE account_type=$get ") OR DIE ("error");
while ($showRowGeneral = mysql_fetch_assoc($Qdaily_entriesD)){
?>
<tr>
<td><?echo $showRowGeneral['account_type'];?></td>
<td><?echo $showRowGeneral['riyal'];?></td>
<td><?echo $showRowGeneral['dollars'];?></td>
</tr>
<?
}
}
?>