![]() |
Coding Problems
I've got messages being pulled from a database and I'm trying to create an option for the other administrators to remove the messages by clicking an image. I'm using the following code:
PHP Code:
I'm using this as the URL: PHP Code:
|
Your delete query is using the last ID set from the while loop instead of something like the following:
Code:
$db->query("DELETE FROM blastmsg WHERE blastid = " . intval($blast['blastid'])); |
D'oh! Can't believe I missed that -- thanks Calorie.
|
All times are GMT. The time now is 04:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|