All pastes #429273 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-08 04:03 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;
}