im sure im missing something obvious, i just cant see it any more.
i had a fail on a site as i tried live, i tried to break the problem down i found the error as below with a foreach and an if condition.
This is working fine on my local server but not live.
$sql = "SELECT * FROM data";
$result = mysqli_query($test,$sql);
mysqli_fetch_array($result );
foreach($result as $row){
if( $late['area']=='Sanur'){
echo $row['title'].'<br>';
}}
It has to be something basic i am sure but im cooked!