$id_url = 3;
$sql = "select id, title, title_en, spot, spot_en, content, content_en from content where id = ".$id_url." and status = 1";
$result = mysql_query ($sql, $connection);
if ($row = mysql_fetch_assoc($result)){
$id = $row["id"];
$title = $row["title"];
$title_en = $row["title_en"];
$spot = $row["spot"];
$spot_en = $row["spot_en"];
$content = $row["content"];
$content_en = $row["content_en"];
if ($lng=="EN"){
$title = $title_en;
$spot = $spot_en;
$content = $content_en;
}
$content = str_replace("
", "", $content);
$content = str_replace("
", "", $content);
$content = str_replace("div>", "p>", $content);
}
?>
if ($spot!="" && $id_url!=2){
?>
echo $spot; ?>
}
?>
echo $content; ?>
if ($spot!="" && $id_url==2){
?>
echo $spot; ?>
}
?>