$tablename ) { mysql_query( "OPTIMIZE TABLE " . $tablename ) or die ( mysql_error () ); } } mysql_close( $link ); ?>