![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
First of all your script has a problem with the usage of $num. It is an array fetched using a PDO method, and you are checking if its value equals to 0? An array cannot equal to 0 unless it contains only one element(which is considered a string instead), the statement will always evaluate to be false...
On the other hand, you are using the delete() method incorrectly. It does not accept an empty array as its second argument, so get rid of it. I am surprised that you do not receive an error message for the way you use delete().
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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? |