Forum Moderators: coopster
its dropping with this isset -> if(isset($_POST['button1']{..
Ive tested via echo "bla bla" to see if it was a query issue, but its not. Im using Joomla and when i click on "update" it drops out and opens a joomla article. Ive tried it outside the while loop, and tried using html instead of echo if(isset.. but no difference..
Im new to php, and on a steep learning curve.. but im lost with this now.
I know its not the sql in the if(isset($_POST['button1'])) which handles the update button. I tested with a echo, but that didnt even show. so its breaking out when button is clicked.
Oh, thanks for your advice before too :)
Or what happens if button1 is not set. That is, we can't see what's after the if (isset()) condition, so in the condition below,
if (isset('button1')) {
// do something
}
// No condition if button1 is not set.
// So the script just ends if there's not an
// else or else if here.
?>
... if button1 is present, it executes what's in the if, if not, there's nothing to do following it.
My point is programming can sometimes throw you a curve, making you look in all the wrong places for sometimes days on end. I'd 1) make sure button1 is set by doing something like this,
if (isset('button1')) {
// do something
echo "button 1 was set";
}
and 2) find out what's in the if condition that's causing it to end (or outside it, if button1 is not set.)
all good, got to remove some submits, only one per form, so plan to just have one and update all rows at the same time. my works cut out for me.. should be sort of fun learning