i have this bit of code
<div class="content_text_right" style="width: 80%;">';
$num = 0;
foreach ($sopchannel as $sc) {
echo'<input type="checkbox" name="sopcastch'.$num.'" value="'.$sc['value'].' | "> '.$sc['Station'].'<br>';
$num ++;
}
echo'</div>
which loop the info from database and give the checkbox name a number
ie sopcast1 sopcast 2 ect
then i have this bit of code
$sopcast1 = $_POST['sopcastch1'];
$sopcast2 = $_POST['sopcastch2'];
$add_news_query = mysql_query("INSERT INTO ". $tbl_prefix ."footytv SET sopcastch = '".$sopcast1."".$sopcast2."'");
which i need it to insert in to the datbase in table footytv col sopcastch
value eg. 1|2|3
which i gets from the check boxes
but it is only adding the last one
please help ...
thank you
siriusdave