Hi. Is there a reason why a new db table won't be created?
I have the following code within a form:
When I try it, the table is not created. However, if I create the table manually and then just leave the insert part of the code in the form, that part will work fine. Is there any limitation that is preventing CF or Joomla from creating a new db table?
I am using Joomla 2.5.6 and CF 4
David
I have the following code within a form:
$db =& JFactory::getDBO();
$query = "
CREATE TABLE IF NOT EXISTS #__data_compresion_".$anual."_".$mes."
LIKE #__data_matriz;
INSERT #__data_compresion_".$anual."_".$mes."
SELECT * FROM #__data_matriz;
";
$db->setQuery($query);
$db_dup = $db->query();
When I try it, the table is not created. However, if I create the table manually and then just leave the insert part of the code in the form, that part will work fine. Is there any limitation that is preventing CF or Joomla from creating a new db table?
I am using Joomla 2.5.6 and CF 4
David