| News
"; $sql="SELECT * FROM caltek_products ORDER by id DESC"; $result=mysql_query($sql); $row= mysql_fetch_array($result); $pr_sql="SELECT * FROM caltek_producenci WHERE pr_id='".$row["firma_id"]."'"; $pr_result=mysql_query($pr_sql); $pr_row= mysql_fetch_array($pr_result); $opis_1=substr($row["opis"],0,255); echo"
".$pr_row["pr_nazwa"]." ".$row["name"]." |
"; if(isset($row["obrazek"])) { $wlk = getimagesize("../wyslane/big/".$row["obrazek"].""); echo""; } echo"".$opis_1."... more »
";
$start=$row["id"];
$sql22="SELECT * FROM caltek_products ORDER by id DESC LIMIT 1,6";
$result22=mysql_query($sql22);
while($row22= mysql_fetch_array($result22)) {
$pr_sql22="SELECT * FROM caltek_producenci WHERE pr_id='".$row22["firma_id"]."'";
$pr_result22=mysql_query($pr_sql22);
$pr_row22= mysql_fetch_array($pr_result22);
echo"".$pr_row22["pr_nazwa"]." ".$row22["name"].""; if(isset($row["obrazek"])) { $wlk = getimagesize("../wyslane/big/".$row["obrazek"].""); echo""; } echo"".$opis_1."... more »
"; } ?>
$news_sql="SELECT * FROM caltek_news ORDER by news_id DESC LIMIT 4";
$news_result=mysql_query($news_sql);
while($news_row= mysql_fetch_array($news_result)){
$opis_2=substr($news_row["eng_news_txt"],0,185);
echo"» ".$news_row["eng_news_title"]."
".$opis_2."...
"; } ?> » Other news
".$opis_2."...
"; } ?> » Other news