Publication Content

[insert_php]

$language= $_GET[language];
$id = $_GET[id];

$language=substr($language,0,2);
$id =substr($id,0,10);

$connect = mysql_connect(“localhost”, “elianyjma”, “72*pI$52”);
mysql_select_db(“elianyjma”, $connect);

$query=”select * from tblPublicationContent where idLanguage=’$language’ and idPublication=’$id’;”;
$result = mysql_query($query);

$direction=”ltr”;
if($language==”HE”){
$direction=”rtl”;
}
$cssStyle=”text-align:justify;direction:”.$direction;

Print “

“;
if (mysql_num_rows($result)) {
$qry = mysql_fetch_array($result);
Print ““;
Print $qry[‘title’];
Print “

“;
if($qry[‘imagePath’]!=null){
Print ““;
Print “
“;
}
Print $qry[‘content’];
}else
{
die(‘Invalid query: ‘ . mysql_error());
}
Print “

“;

mysql_close($connect);
[/insert_php]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

This site uses Akismet to reduce spam. Learn how your comment data is processed.