[PHP] delete query doesnt work (fixed)
hi... my delete query : mysql_query(delete from members where company like '$delete'); now works..this is how i fixed it... in the form that submits the $delete var add this: input type=hidden name=flag_delete value=$delete now in query change $delete to $flag_delete... and poof it magically works still need to debug the edit system since all the records tend to get changed if someone submits the same data in the fields for that record... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] delete query doesnt work (fixed)
--- Sunfire [EMAIL PROTECTED] wrote: in the form that submits the $delete var add this: input type=hidden name=flag_delete value=$delete now in query change $delete to $flag_delete... and poof it magically works It's not magic, and John Holmes already explained it to you. If you do not pass a variable via GET, POST, or as a cookie, and you also do not store it as a session variable, why would you expect it to exist on another page? This demonstrates a very fundamental misunderstanding. You might want to start with the basics and learn a bit about how the Web works - how data is passed, etc. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php