![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#3
|
||||
|
||||
![]()
The problem is in this code not the above code:
Code:
elseif (isset($_POST['deltab'])) { $name = $_POST['name']; $query = "SELECT * FROM ".constant("PREFIX")."tabs WHERE username='".$loggedinname."' AND name='".$name."'"; $stmt = $adopts->query($query); $num = $stmt->fetch(PDO::FETCH_ASSOC); if($num == 0){ $article_content='This cage does not exist.'; }else{ $adopts->update("owned_adoptables", array("tab" => ''), "owner='{$loggedinname}' and tab='{$name}'"); $adopts->delete("tabs", array(), "username='{$loggedinname}' and name='{$name}'"); $article_content='You successfully deleted the tab. Your hamster was automatically moved to your default cage at the <a href="myadopts.php">My Hamsters</a> page.'; } |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Database Query: COUNT(*) | Kyttias | Questions and Supports | 5 | 01-19-2015 03:57 AM |
CSS Query .-. | ChibiMaestro | Templates and Themes | 2 | 12-08-2012 05:51 AM |
Having a problem running a query | !Alive | Questions and Supports | 8 | 03-11-2012 02:39 PM |
MySQL Query Empty on default install? (i.e. No edits.) | Flametail | Questions and Supports | 3 | 10-18-2011 12:30 PM |
Join query for optimization? | Arianna | Questions and Supports | 2 | 04-09-2010 12:32 PM |
What's New? |
What's Hot? |
What's Popular? |