Can anyone help me- this is driving me insane! I've got an access database to query which I have done with ODBC. I need to call a query with a parameter, and put it into an array.
$connection=odbc_connect("<dsn>","<username>","<password>");
$result=odbc_exec($connection,"{CALL Qpostage3(".$_SESSION['total_items'].")}");
while($row=odbc_fetch_array($result))
{
$postage[$row['postage_method']]=$row['MinOftotalcost'];
}
odbc_close($connection);
This code works wonderfully when it works, but it seems to not work at random- infact PHP crashes and no pages that use php can be accessed. It says:
"PHP has encountered an Access Violation at 77F47300"
Can anyone help me- please! I'm going mad!