<?php
include_once("SQLDataManager/SQLDataManager.php");
$ConfigFile = "config/mysql_access.config";
$Sql = "select * from r_shop_data";
$DataChunks = 50;
$SQLDataManager = new SQLDataManager($ConfigFile);
$SQLDataManager->setType("R");
$SQLDataManager->setSql($Sql);
$SQLDataManager->setLowerLimit(0);
$SQLDataManager->setUpperLimit($DataChunks);
while($SQLDataManager->getMoreData()) {
$Status = $SQLDataManager->performSql();
if($Status == 1) {
$Results = $SQLDataManager->getResults();
$RowCount = $Results->getRowCount();
for($Row=0; $Row<$RowCount; $Row++) {
$ShopName = $Results->getRow($Row)->get_shop_name();
print($ShopName->getValue() . "<br/>");
print($ShopName->getUppercase() . "<br/>");
print($ShopName->getLowercase() . "<br/>");
}
$SQLDataManager->setLowerLimit($SQLDataManager->getUpperLimit());
$SQLDataManager->setUpperLimit($SQLDataManager->getUpperLimit() + $DataChunks);
}
else {
print("An error has occured.");
}
}
?>
|