It's more like this:
if
{
$x=1;
echo $x;
}
elseif
{
echo $x;
}
On Jan 5, 2006, at 1:51 PM, Jay Blanchard wrote:
[snip]
The list listing is in an if/elseif statement where if something is
set, display the table that has the data, and elseif you click on the
delete button
[snip]
The list listing is in an if/elseif statement where if something is
set, display the table that has the data, and elseif you click on the
delete button, you would delete the data in the row of the table that
is is the if statement. One part of the data is in the if scope, and
the oth
The list listing is in an if/elseif statement where if something is
set, display the table that has the data, and elseif you click on the
delete button, you would delete the data in the row of the table that
is is the if statement. One part of the data is in the if scope, and
the other is i
[snip]
They key I am using to find the record I want to delete is the the
$row[id], but that is out of the scope of where the variable is set.
Is there a way to set a variable so that it goes outside the scope?
[/snip]
What do you mean by "out of the scope of where the variable is set"? If the
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 display the updated information. Here is part of the
code I have.
5 matches
Mail list logo