Capturing a sql query

From: Date: Wed, 29 Sep 2004 15:24:28 +0000
Subject: Capturing a sql query
Groups: php.db 
Request: Send a blank email to php-db+get-36445@lists.php.net to get a copy of this message
I'm trying to capture a sql query and save it to the database. Not as a stored procedure , more a URL parameter string , to be called up at will. I have this code that I believe will take the URL, just not sure how to go about grabbing it. I think maybe a hidden form with POST. I'm open to any ideas or help. :) $ReturnPage = isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : ""; if(!strlen($ReturnPage)) { $ReturnPage = isset($_SERVER["SCRIPT_NAME"]) ? $_SERVER["SCRIPT_NAME"] : ""; $QueryString = CCGetQueryString("QueryString", ""); if($QueryString !== "") $ReturnPage .= "?" . $QueryString; Thank you, Stuart

« previous php.db (#36445) next »