| | |
MySQL - Some Records Not Deleting
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Im trying to delete records. Most delete ok but some don't and Im completly lost as to why...
The information Im storing are just URLs.
Could it be to do with some irregular characters within these URLs?
Is there a recomended way to store a URL?
Please help me out. Its quite a major flaw in my script
I think it probably is the irregular characters.
Here are the records which wont delete
Well there are just some. There are many more.
Thanks
The information Im storing are just URLs.
Could it be to do with some irregular characters within these URLs?
Is there a recomended way to store a URL?
Please help me out. Its quite a major flaw in my script
I think it probably is the irregular characters.
Here are the records which wont delete
PHP Syntax (Toggle Plain Text)
http://www.theflickzone.com/showthread.php?p=24961#post24961 http://www.theflickzone.com/tags.php?tag=Google+Video http://www.theflickzone.com/showthread.php?p=25067#post25067 http://www.theflickzone.com/member.php?find=lastposter&f=34 http://www.theflickzone.com/member.php?find=lastposter&f=31
Thanks
What error is returned?
Add
Add
or die(mysql_error()); to the closing bracket of the query as so: php Syntax (Toggle Plain Text)
mysql_query("....")or die(mysql_error());
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
There isn't one 
EDIT: Just for a bit of context...

EDIT: Just for a bit of context...
php Syntax (Toggle Plain Text)
<?php include('includes/config.php'); $referer = $_SERVER['HTTP_REFERER']; $addtolist = $_GET['add']; mysql_query("DELETE FROM spider WHERE url='$addtolist'")or die(mysql_error()); header("Location: $referer"); mysql_close($con); ?>
Last edited by !Unreal; Feb 22nd, 2009 at 10:17 pm.
![]() |
Similar Threads
- Deleting records from 2 tables based on checkbox (PHP)
- deleting of a record through php on mysql (PHP)
- Deleting multiple rows from mysql with checkbox (PHP)
- Mysql Query (PHP)
- please help with deleting records using checkboxes (PHP)
- inserting checkbox values in mysql +PHP (PHP)
Other Threads in the PHP Forum
- Previous Thread: Disallow Multiple of the Same Usernames
- Next Thread: storing the selected value of a drop-down list
| Thread Tools | Search this Thread |
advanced ajax apache api array basics beginner binary broken cakephp check checkbox class cms code combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert integration ip java javascript job joomla js limit link login loop mail menu mlm multiple mysql oop parse password paypal pdf php problem procedure query radio random recursion regex remote script search server sessions smarty smash sms soap source space sql stored syntax system table traffic tutorial unicode update upload url validator variable video web xml youtube





