Well, you will need to change a little:
Code:
$conn=odbc_connect("DEMODATA","","","");
$sql="select * from class";
The "DEMODATA" is the name of the ODBC DSN and the "select * from class" is the SQL statement. I don't have a Linux box handy but I know the code works correctly on Windows.
The code not working could indicate a problem with the Pervasive client. What version do you have installed?