MyBB Community Forums

Full Version: tables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
okay with $db->table_exists('blah') is there a way of doing the same sort of thing but for a row in the database? as with my plugin i added a row to one of the tables and i want to use the is_installed function.
	/**
	 * Check if a field exists in a database.
	 *
	 * @param string The field name.
	 * @param string The table name.
	 * @return boolean True when exists, false if not.
	 */
	function field_exists($field, $table) {}

$db->field_exists("FIELDNAME", "TABLENAME");

And the 'row' you mention is probably a 'column'.
Ye its a field thank you LeX- your good help.