smf_db_drop_table

Description

Drops the specified table

Syntax

bool smf_db_drop_table (string $table_name[, array $parameters[, string $error]])



Parameter $table_name

Expected type: String
Description: The name of the table



Parameter $parameters

Expected type: Array
Description: An array of parameters

Array Elements of $parameters
Key Optional Expected type Description
no_prefix yes Boolean Set to true to prevent SMF from adding the db_prefix



Parameter $error

Expected type: String
Description: Standard error parameter...



Return value

Expected type: Boolean
Description:


Notes

  • For security reasons, will not drop any default SMF table (eg one that's created when you install SMF)
  • Checks to see if the table exists, but doesn't throw an error if it doesn't
Advertisement: