Hi,
I am struggling with some code. I keep getting the following error:
Notice: Undefined offset: 8 in C:\Apache2\htdocs\1626\top_secret\TMPu37ibky2pu.php on line 249
while ($row = mysql_fetch_array($s_rs)){
$j[$i] = $row["s_id"];
$l[$i] = $row["s_school"];
$i++;
}
while ($row = mysql_fetch_array($p_rs)){
for($k=0; $k<=count($j);$k++){
if ($j[$k]==$row["p_schoolid"]){ //This is line 249
The error is specific to the array reference $j[$k] - I moved it onto a new line assigning it to a variable, and the error then refers to this new line. Any ideas why I'm getting the error, the code runs normally otherwise?