I am trying to display the results of a SQLite query on browser using php.
I connected to the database using
$conn = new PDO('sqlite:test.db');
Below is my query
$query = $conn->query("SELECT * FROM main");
Below is my fetch function
$row = $query->fetch(PDO::FETCH_ASSOC);
I get the output when I run it from my terminal using
But when I try to open the same script from browser, its showing empty screen as it is not getting any response from server.
Can anybody help me debugging it ?
Please post if you have any working script for the same. I am out of due to submit my college project.