T
tarweesh
hi, i created a query joining several tables and saved it in a
Microsoft Access database.
Now i want to access this query using PHP the same way i access a table
but i am getting an error.
$sql="SELECT * FROM q3";
$rs=odbc_exec($conn,$sql);
q3 is the saved query, i am sure $conn is working because when i try
writing any table's name instead of q3 it works properly.
i know i can create the query in the PHP but it's getting data from
several tables and there are lots of calculated fileds in the query so
this will take a lot of time each time the page is loaded.
Microsoft Access database.
Now i want to access this query using PHP the same way i access a table
but i am getting an error.
$sql="SELECT * FROM q3";
$rs=odbc_exec($conn,$sql);
q3 is the saved query, i am sure $conn is working because when i try
writing any table's name instead of q3 it works properly.
i know i can create the query in the PHP but it's getting data from
several tables and there are lots of calculated fileds in the query so
this will take a lot of time each time the page is loaded.