iPhone İndirimleri

 

[php]

<?php
$con = mysql_connect(“localhost”,”smtakca_samet”,”smtgs.252″);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}
mysql_select_db(“smtakca_feeds”, $con);
$result = mysql_query(“SELECT descr FROM feedstest where dtype = 1 limit 10;”);

while($row = mysql_fetch_array($result))
{
// echo $row[‘descr’];
// echo “<br />”;

$title = str_replace(‘ & ‘, ‘ &amp; ‘, $row[‘title’]);
$link = $row[‘link’];
$description0 = $row[‘descr’];
$description = str_replace(‘</h3><br/>’,'</h3><br/><br/>’,$description0);
$posit = strrpos($description,'(<a href=”‘);
$description1 = substr($description,0,$posit) ; // . ‘]]></description>’;
$description1 = str_replace(‘Device’,’Cihaz’,$description1);
$description1 = str_replace(‘Category’,’Kategori’,$description1);
$description1 = str_replace(‘-> Free’,’-> ‹cretsiz’,$description1);
$description1 = str_replace(‘Version’,’Versiyon’,$description1);
$date = date(‘l F d, Y’, strtotime($row[‘date’]));
echo ‘<p><strong><a href=”‘.$link.'” title=”‘.$title.'”>’.$title.'</a></strong><br />’;
echo ‘<small><em>Posted on ‘.$date.'</em></small></p>’;
echo ‘<p>’.$description1.'</p>’;

}
mysql_close($con);

// echo “THE END ” . $x;
?>

[/php]