Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael R Lundquist
zipAPI
Commits
8d09c59f
Commit
8d09c59f
authored
Nov 14, 2018
by
michael lundquist
Browse files
Removing unnecessary echos
parent
93d2c3ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
SQLlogin.php
View file @
8d09c59f
...
...
@@ -25,7 +25,6 @@ function SQLlogin(){
if
(
strpos
(
PHP_ROOT
,
"public_html"
)
!==
FALSE
){
//greengeeks credentials
echo
"here"
;
$server
=
"mikeroservices.com"
;
$username
=
"sellmysh"
;
...
...
configNuts.php
View file @
8d09c59f
<?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"
,
""
);
...
...
queryPrep.php
View file @
8d09c59f
...
...
@@ -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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment