using this code:
actinic crashes and burns.
and you need to open the database to extract the code manually, becasue it wont open after this.
i understand that its a database access, but this crash should never happen. there should be a polite error in the template preview.
PHP Code:
$db="C:\ActinicCatalog.mdb";
$conn = new COM('ADODB.Connection');
$conn->Open("DRIVER={Driver do Microsoft Access (*.mdb)}; DBQ=$db");
$sql = "SELECT TOP 5 * FROM product";
$res = $conn->Execute($sql);
while (!$res->EOF)
{
$lastupdate = $res->Fields['Last update']->Value;
$Status = $res->Fields['Status']->Value;
$ProductReference = $res->Fields['Product Reference']->Value;
$shortdescription = $res->Fields['Short description']->Value;
echo $shortdescription."<br>";
}
and you need to open the database to extract the code manually, becasue it wont open after this.
i understand that its a database access, but this crash should never happen. there should be a polite error in the template preview.
Comment