Here is the code:
while($i != $unisize){
$sql2 = "SELECT * FROM suscritos WHERE sector='$uni[$i]' AND oficio='$oficio'";
$req2 = mysql_query($sql2);
$co2 = mysql_num_rows($req2);
if($co2 == 0){
die("Unable to find near you");
}else{
while ($row2 = mysql_fetch_array($req2){
array_push($idarray, $row2['id']);
}
}
$i++;
}
This is the error: Parse error: syntax error, unexpected '{'
All the other variables have been declared before.
Thanks.