winmastergames Posted February 6, 2008 Share Posted February 6, 2008 I think this is kind of similar to the other Post i did and was fixed i tried kind of what had to be fixed in that one but nope that didnt work heres the script <?php include 'config.php'; include 'opendb.php'; $dbtodel = $_GET["user"]; // ... do something here $query = 'DROP DATABASE $dbtodel'; $result = mysql_query($query); // ... probably do something here too include 'closedb.php'; ?> Thanks for your time Im thinking about donating some money seen as PHPFreaks Has helped me so much AND THIS ISNT A BRIBE Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/ Share on other sites More sharing options...
Stooney Posted February 6, 2008 Share Posted February 6, 2008 What's the problem/error? Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/#findComment-459487 Share on other sites More sharing options...
winmastergames Posted February 6, 2008 Author Share Posted February 6, 2008 Sorry forgot it just doesnt delete the table Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/#findComment-459488 Share on other sites More sharing options...
Stooney Posted February 6, 2008 Share Posted February 6, 2008 The script is trying to delete a database where you are talking about deleting a table. Which one? Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/#findComment-459490 Share on other sites More sharing options...
winmastergames Posted February 6, 2008 Author Share Posted February 6, 2008 ohh then how do you make it drop Tables ??? Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/#findComment-459491 Share on other sites More sharing options...
Stooney Posted February 6, 2008 Share Posted February 6, 2008 <?php include('config.php'); include('opendb.php'); $table = $_GET['user']; // ... do something here $result=mysql_query("DROP TABLE $table"); // ... probably do something here too include('closedb.php'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/#findComment-459497 Share on other sites More sharing options...
winmastergames Posted February 6, 2008 Author Share Posted February 6, 2008 That Worked Thanks Quote Link to comment https://forums.phpfreaks.com/topic/89672-solved-droping-tables-using-php-problem-similar-to-my-other-post/#findComment-459498 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.