|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-15 00:26 UTC] tony2001@php.net
[2005-02-22 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
Description: ------------ I used IIS 5.0 with the CGI version of php5 and I was getting a "CGI has encountered an error..." . I read about other bugs with SQLite and some users were suggesting the use of Apache. So i switched from the CGI version of php running with IIS to running it as a module with Apache 2.0. when i run the code, it tells gives me an "Apache has encountered an error..." dialog. I'm trying to create a script to process a registration form. It would take the data, an store it in an SQLite database. I tried commenting out the INSERT query and i get no error. It seems the INSERT Query is the problem. A SELECT query workd fine. Can someone help? Reproduce code: --------------- <?php if (isset($_POST["username"])) { $db = sqlite_open("db/db.chat"); sqlite_query("INSERT INTO users VALUES(NULL, ".$_POST['username'].", ".$_POST['password'].")",$db); echo "done."; } ?>