Hello - I have two pages. In page 1 I have defined:
$dbHandle = new PDO('sqlite:data.sqlite');
$var='hello';
I can pass a $var variable to page 2 using using the URL as in
echo " page2.php?var=$var GO TO PAGE 2 ";
and I want to execute an sqlite/PHP command in page 2 like:
$var=$_GET(var);
$sth = $dbHandle->query("select * from table where ID0='$var'");
But I cannot figure out how to get the $dbHandle to page 2. Can anyone help?
Frank L.
--
View this message in context:
http://old.nabble.com/Passing-a-%24dbHandle-to-a-new-page-tp26791268p26791268.html
Sent from the SQLite mailing list archive at Nabble.com.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users