#29477 [Opn->Fbk]: Apache & CGI crash on insert query

From: Date: Mon, 14 Feb 2005 23:26:27 +0000
Subject: #29477 [Opn->Fbk]: Apache & CGI crash on insert query
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74063@lists.php.net to get a copy of this message
 ID:               29477
 Updated by:       tony2001@php.net
 Reported By:      phprazor at dap dot ro
-Status:           Open
+Status:           Feedback
 Bug Type:         SQLite related
 Operating System: Windows XP
 PHP Version:      5CVS-2004-08-01 (dev)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2004-08-01 02:59:57] phprazor at dap dot ro

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.";
}
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29477&edit=1


Thread (3 messages)

« previous php.bugs (#74063) next »