function executeQuery($string) { GetDatabaseConnection(); $result = mysql_query($sqlText) or die( "Query failed " . writeErrorToLog( $_SESSION['USERNAME'], "Query Failed: " .$sqlText . " " . mysql_error() ,$scriptName )); return $result; } function writeErrorToLog($owner,$description,$script) { $script = str_replace($_SERVER['DOCUMENT_ROOT'], "", $script); $sqlText = "INSERT INTO errorLog (ownerID,time,description,script) " . "VALUES ('" . $owner . ",Now(),'" . $description . "','" . $script . "')"; executeQuery($sqlText, $_SERVER['PHP_SELF']); return ""; }
[Advertisement]
BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!