At first this was at least loading the table (incorrectly) but I tried to fix it and now it is creating a cats array but not loading anything at all. It makes less and less sense to me as I get more tired. Please help. Thanks.
Code:while ($row = mysql_fetch_array($result_cat)) { $count++; echo '<td width="253"><input type="checkbox" name="cats[]" value="'.$row['cat_id'].'">'.$row['category'].'</td>'; if (($count % 3) == 0){ echo "</tr>"; } }Code:if(isset($_POST['cat_id'])) { $cat_id = $_POST['cats']; foreach ($cats as $newcatid) { $query = "INSERT INTO eventcat ( event_id, cat_id ) VALUES ( '" .$neweventid. "', '".$newcatid."' ) "; } }



Reply With Quote




Bookmarks