All pastes #429279 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-08 04:05 UTC
rendered paste body
function 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;
}