Sqlite db


I’m a noob at code. I got a template, and the subscribe.php form doesn’t seem to work. It is managing to create a table in a sample.db file, but no data is being written into it. I get this warning when I run an XHR:

Warning: PDOStatement::bindValue() expects parameter 3 to be long, string given in …/subscribe.php on line 51


line 51 being: $statement->bindValue(’:email’, $_POST[‘subscribe’], SQLITE3_TEXT);

the email in question: happyseaurchin@gmail.com

I have spent hours rooting around, but being a noob, haven’t got far. Could someone please suggest what to do to find why it isn’t working. WEBSITE: http://ecosquared.co.uk, subscription field…