diff --git a/ajaxCRUD.class.php b/ajaxCRUD.class.php index 1444d42..b2e2ec9 100644 --- a/ajaxCRUD.class.php +++ b/ajaxCRUD.class.php @@ -331,7 +331,7 @@ class ajaxCRUD{ // Constructor //by default ajaxCRUD assumes all necessary files are in the same dir as the script calling it (eg $ajaxcrud_root = "") - function ajaxCRUD($item, $db_table, $db_table_pk, $ajaxcrud_root = "") { + function __construct($item, $db_table, $db_table_pk, $ajaxcrud_root = "") { //global variable - for allowing multiple ajaxCRUD tables on one page global $num_ajaxCRUD_tables_instantiated;