Re: [PHP] Re: Set variable outside of scope (redo)

2006-01-06 Thread Mike Tuller
Thanks. That is what I needed. That part works now. On Jan 5, 2006, at 4:09 PM, comex wrote: if ($row[range] != "") This should be $row['range'], not $row[range], although it doesn't make a difference unless you define a constant named range. Your problem isn't actually scope, it's

Re: [PHP] Re: Set variable outside of scope (redo)

2006-01-05 Thread comex
> > if ($row[range] != "") This should be $row['range'], not $row[range], although it doesn't make a difference unless you define a constant named range. Your problem isn't actually scope, it's that your PHP script is being called twice. Once to show the form, once to submit it. The sec

[PHP] Re: Set variable outside of scope (redo)

2006-01-05 Thread Al
Mike Tuller wrote: Excuse the last post, I didn't have all the code it there. I have a table listing items in a database, and have a delete button next to each item, and I want to be able to click on the delete and delete only that record in the database and then reload the page where it would d