One thing I did see right off that bat is your $count variable is not the proper count to be using for your deletion code.
If I have 6 items that need to be deleted. And I select 6 checkboxes..
Then I need to count those selected Items, counting the items in your SQL query is not at all the same thing.
Example:
if(isset($_POST['checkbox'
{
$count= count($_POST['checkbox']);
for($x=0;$x<$count;$x++)
{
echo($_POST['Checkbox'][$x
}
}
Main Topics
Browse All Topics





by: efficaciousPosted on 2008-09-24 at 10:13:20ID: 22561763
This code snippet is extremely messy.. You realize you don't have to put php tags in everytime you want to output html..
Example:
<?php
$MyVariable='Hello!'
echo("
<html>
<head>
</head>
<body>
SOME STUFF IN THE BODY
The value of \$MyVariable is ".$MyVariable."
</body>
</html>
");
Could you please isolate the problematic code