Won't create tables
-
i install plugin. But it won’t create any table in db. same problem occured in my site also. I think the code in admin/odl_admin_settings.php is culprit
$tabs = $wpdb->get_results("SHOW TABLES", ARRAY_N); $tables = array(); for ($i=0; $i<count($tabs); $i++){ $tables[] = $tabs[$i][0]; } @reset($odlinkssql); while (list($k, $v) = @each($odlinkssql)){ if (!@in_array($k, $tables)){ echo " - create table: " . $k . "<br />"; $wpdb->query($v); } } }
Normally plugins use dbDelta() function to create table, but it uses wpdb->query to create table. Is it problem.
- The topic ‘Won't create tables’ is closed to new replies.