the code is more general then about the specific code:
function GetDownloads()
{
$db = 'd:\\my projects\\xxx\\source\\db.mdb';
$conn = odbc_connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . $db, "", "");
try
{
$sql = 'SELECT item_id FROM downloads;';
$rs = odbc_exec($conn,$sql);
$downloads = odbc_num_rows($rs);
odbc_errormsg();
odbc_free_result($rs);
odbc_close($conn);
return $downloads;
}
catch (Exception $e)
{
echo $e->getMessage();
}
i don't want to write 'd:\my projects\xxx\source\db.mdb', i want to write only db.mdb, so for that i need to change the runtime/output directory... isn't it?
how can i?