CodeIgniter Forums
[SOLVED]Drop Table with Database Forge - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [SOLVED]Drop Table with Database Forge (/showthread.php?tid=18262)



[SOLVED]Drop Table with Database Forge - El Forum - 04-30-2009

[eluser]Lamonte[/eluser]
On my wamp server on my xp pro sp3 computer, the dbforge->drop_table does not execute.


[SOLVED]Drop Table with Database Forge - El Forum - 04-30-2009

[eluser]Dam1an[/eluser]
Do you have permissions to drop databases? Try doing it in phpMyAdmin using plain SQL


[SOLVED]Drop Table with Database Forge - El Forum - 04-30-2009

[eluser]Lamonte[/eluser]
Yes I can drop table with plain SQL in phpMyAdmin.

Note this is using the latest code igniter also


[SOLVED]Drop Table with Database Forge - El Forum - 04-30-2009

[eluser]Dam1an[/eluser]
Load the profiler
Code:
$this->output->enable_profiler(true);
and execute the drop command, see if it even attempt to execute the query


[SOLVED]Drop Table with Database Forge - El Forum - 04-30-2009

[eluser]Lamonte[/eluser]
Okay, I knew CI was great Smile. It was my fault why it wasn't working because I was using the wrong variable to try using the call_user_func for a custom module system I've created. (pretty insane)

It works Big Grin, a moderator can lock or delete this because it isn't broken Smile


[SOLVED]Drop Table with Database Forge - El Forum - 04-30-2009

[eluser]Dam1an[/eluser]
[quote author="Lamonte" date="1241143215"]
It works Big Grin, a moderator can lock or delete this because it isn't broken Smile[/quote]

I don't think threads ever get locked or deleted (unless they're offensive?)
You normally edit the post and put [SOLVED] at the start of the subject