Untitled
public text v1 · immutablefunction checkforindex($index)
{
global $db;
$result = $db->get_results('SELECT * FROM information_schema.STATISTICS WHERE INDEX_NAME="'.$index.'" AND TABLE_SCHEMA="'.EZSQL_DB_NAME.'"');
if (!$result) {
return false;
}
return true;
}