SQLite Forum

Return boolean if item EXISTS in database
Login
Many thanks for pointing me in the right direction as I am very new to both SQLITE and PHP.

I am indeed making the query via PHP and I am using Apache server on a Mac. I don't think I have installed any wrapper. 

I've tried your code but still it never returns "item does not exist". 
If I dump $EntryExistsBoolean results the Javascript console in Safari shows the following error:

[Log] RESPONSE,  – "<br />↵<b>Warning</b>:  SQLite3::query(): Unable to prepare statement: 1, incomplete input i…" (mySite.html, line 473)

It mentions "incomplete input". Any idea what may be wrong?

Thanks again. In the future I will ask these questions on PHP fora.