|
require_once "inc_search.php"; ?>
|
 |
$db = new Database();
$db->OpenDBIConnection();
$spName = "sp_GetNews(0, 4)";
if ($db->mysqli->multi_query("CALL " . $spName))
{
if ($result = $db->mysqli->store_result())
{
$num_rows = $result->num_rows;
if ($num_rows > 0)
{
$c = 0;
while($rs = $result->fetch_object())
{
$c++;
$counter++;
$mod = bcmod($c, 5);
$id = $rs->id;
$title = trimstr($rs->title);
$content = trimstr($rs->content);
$cnt = substr($content, 0, 50);
if ($mod==1) echo '';
echo '
' . $title . '' . $cnt . '...
';
if ($mod==0)
{
$counter = 0;
echo ' ';
}
unset($rs);
}
if ($counter<3) echo '';
$result->close();
}
}
}
$db->CloseDBIConnection();
unset($db);
?>
|
 |
|
 |
With over ten years of experience in the wheel industry, Tectran is a corporation that is here to stay.
The future for Tectran Corporation includes continuous expansions for years to come.
|
 |
|