Do you see anything wrong with this code?
<?php for($i='0'; $i <= $logcount; $i++){ if($logarray[i] == $postrow[msg_id]){ $add = 'no'; } echo '-' . $logarray[i] . '-'; } ?>
$logarray is an array of variables.
Thanks for any help! 😃
forgot the $ in front of your i's...
for($i=0;$i<=$logcount;$i++) { if($logarray[$i] == $postrow['msg_id']){ $add = "no"; } echo "-".$logarray[$i]."-"; }
Thanks! (Can't believe I didn't see that)
<?php for($i=0; $i <= count($logarray); $i++){ if($logarray[$i] == $postrow['msg_id']){ $add = "no"; } echo '-' . $logarray[$i] . '-'; } ?>