EDIT:
Quick Answer
Ah, I understand now. You are trying to print an array. You need to iterate/loop through it to print each value. $stmt returns from SQLite as an array.
Try this to start:
foreach( $stmt as $key => $value){
echo "Key: $key, Value: $value <br />";
}
An explanation:
What happens here is that PHP receives an array from SQL and every element in an array has a key and a value. Consider the following:
$myArray[0] = "ElementZero";
$myArray[1] = "ElementOne";
$myArray[2] = "ElementTwo";
...
$myArray[15] = "ElementFifteen";
The numbers in the square brackets (0,1,2,15) are your keys and the text in quotes are your values. This is an indexed array, where each element has an index number. An associative array is where strings are used instead of numbers to identify each item in the array.A quick example of this:
$myArray['bob'] = "foo";
...
$myArray['joe'] = "bar";
In this array, we use strings as keys instead of numbers. Personally, I only see this useful when dealing with multidimensional arrays, but that is not for now...
Good luck, hope this helps.