For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2004 > Capturing a sql query









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Capturing a sql query
Stuart Felenstein

2004-09-29, 8:03 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com