Commit 8d09c59f authored by michael lundquist's avatar michael lundquist
Browse files

Removing unnecessary echos

parent 93d2c3ee
......@@ -25,7 +25,6 @@ function SQLlogin(){
if(strpos(PHP_ROOT,"public_html") !== FALSE){
//greengeeks credentials
echo "here";
$server = "mikeroservices.com";
$username = "sellmysh";
......
<?php
//configure the database name?
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI");
echo PHP_ROOT;
if(strpos(PHP_ROOT,"public_html") !== FALSE){
//API
define("HTML_ROOT", "");
......
......@@ -17,7 +17,6 @@ include_once(dirname(__FILE__)."/exceptions.php");
function resultQuery($queryString, $paramArr, $paramTypes = NULL){
$con = SQLlogin();
//echo "hello 1";
$errorCode = 0;
if($stmt = $con->prepare($queryString)){// no terminating ;
if(sizeof($paramArr)>0){
......@@ -40,7 +39,6 @@ function resultQuery($queryString, $paramArr, $paramTypes = NULL){
*/
function noResultSQL($SQLstring, $paramArr, $paramTypes = NULL){
$con = SQLlogin();
//echo "hello no 1";
$worked = TRUE;
if($stmt = $con->prepare($SQLstring)){
if(sizeof($paramArr)>0){
......@@ -79,7 +77,7 @@ function getParamTypes($paramArr, $paramTypes = NULL){
}elseif(is_string($v)){
$retStr .= "s";
}else{
echo $v."<br>@ queryPrep.getParamTypes()";
echo $v."<br>@ queryPrep.getParamTypes()<br>";
print_r($paramArr);
throw new assertionError();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment