The sql_repair() function is used to repair a damaged SQL table. It is called by SPIP when an administrator attempts to repair a database using the ecrire/?exec=admin_tech page.

It accepts 3 parameters:

  1. $table is the table which is requested to be repaired,
  2. $serveur,
  3. $option.



Note: PostGres and SQLite database managers ignore this instruction.

Author Mark Baber Published : Updated : 12/03/23

Translations : English, français