/home/desid573/phewl.desidrivers.com.au
Edit: /home/desid573/phewl.desidrivers.com.au/getData.php (1223B)
query($sql);
if(!$result) {
error_log($conn->error);
}
foreach($oXML->channel->item as $oEntry){
$sql = "INSERT into stations (`id`, `name`, `brand`, `address`, `suburb`, `lat`, `lng`, `features`, `price`, `date_price`) VALUES (NULL, '".$oEntry->{"trading-name"}."', '".$oEntry->brand."', '".$oEntry->address."', '".$oEntry->location."', '".$oEntry->latitude."', '".$oEntry->longitude."', '".$oEntry->{"site-features"}."', '".$oEntry->price."', '".$oEntry->date."')";
$result = $conn->query($sql);
if(!$result) {
error_log($conn->error);
}
echo $oEntry->title . "
";
}
?>