I was having trouble with this problem last night and received quite a bit of help. Now I have it working for the most part except for one thing. When I hit the submit button on my form I get the same result every time, no matter how many different boxes I check. It always returns "Resource id #2 " I am not sure why I even get this value. I was expecting to get the data I have in my db. Any help would be greatly appreciated.
The Form
<html>
<head>
<title></title>
</head>
<body>
<form METHOD="POST" ACTION="db.php">
<?php
mysql_connect("localhost", "UN", "PW") or
die("Could not connect: " . mysql_error());
$query = mysql_query("SELECT * FROM hconklin.phones_nokia");
while ($row = mysql_fetch_array($query)) {
echo $row["id"] . "<input type='checkbox' name='name[]' value='" . $row["id"] . "'><br>";
}
?>
<input TYPE="submit" name="submit">
</form>
</body>
</html>
The Processor
<html>
<head>
<title></title>
</head>
<body>
<?php
mysql_connect("localhost", "UN", "PW") or
die("Could not connect: " . mysql_error());
$query = "SELECT * FROM hconklin.phones_nokia WHERE id IN ('" . implode("','", $_POST['name']) . "')";
$result = mysql_query($query);
echo $result;
?>
</body>
</html>