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

Removing unnecessary echos

parent 93d2c3ee
...@@ -25,7 +25,6 @@ function SQLlogin(){ ...@@ -25,7 +25,6 @@ function SQLlogin(){
if(strpos(PHP_ROOT,"public_html") !== FALSE){ if(strpos(PHP_ROOT,"public_html") !== FALSE){
//greengeeks credentials //greengeeks credentials
echo "here";
$server = "mikeroservices.com"; $server = "mikeroservices.com";
$username = "sellmysh"; $username = "sellmysh";
......
<?php <?php
//configure the database name? //configure the database name?
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI"); define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI");
echo PHP_ROOT;
if(strpos(PHP_ROOT,"public_html") !== FALSE){ if(strpos(PHP_ROOT,"public_html") !== FALSE){
//API //API
define("HTML_ROOT", ""); define("HTML_ROOT", "");
......
...@@ -17,7 +17,6 @@ include_once(dirname(__FILE__)."/exceptions.php"); ...@@ -17,7 +17,6 @@ include_once(dirname(__FILE__)."/exceptions.php");
function resultQuery($queryString, $paramArr, $paramTypes = NULL){ function resultQuery($queryString, $paramArr, $paramTypes = NULL){
$con = SQLlogin(); $con = SQLlogin();
//echo "hello 1";
$errorCode = 0; $errorCode = 0;
if($stmt = $con->prepare($queryString)){// no terminating ; if($stmt = $con->prepare($queryString)){// no terminating ;
if(sizeof($paramArr)>0){ if(sizeof($paramArr)>0){
...@@ -40,7 +39,6 @@ function resultQuery($queryString, $paramArr, $paramTypes = NULL){ ...@@ -40,7 +39,6 @@ function resultQuery($queryString, $paramArr, $paramTypes = NULL){
*/ */
function noResultSQL($SQLstring, $paramArr, $paramTypes = NULL){ function noResultSQL($SQLstring, $paramArr, $paramTypes = NULL){
$con = SQLlogin(); $con = SQLlogin();
//echo "hello no 1";
$worked = TRUE; $worked = TRUE;
if($stmt = $con->prepare($SQLstring)){ if($stmt = $con->prepare($SQLstring)){
if(sizeof($paramArr)>0){ if(sizeof($paramArr)>0){
...@@ -79,7 +77,7 @@ function getParamTypes($paramArr, $paramTypes = NULL){ ...@@ -79,7 +77,7 @@ function getParamTypes($paramArr, $paramTypes = NULL){
}elseif(is_string($v)){ }elseif(is_string($v)){
$retStr .= "s"; $retStr .= "s";
}else{ }else{
echo $v."<br>@ queryPrep.getParamTypes()"; echo $v."<br>@ queryPrep.getParamTypes()<br>";
print_r($paramArr); print_r($paramArr);
throw new assertionError(); 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