comparison ca/index.php @ 49:a67bf725e87b

put both paths in include_path and depend on that
author Charlie Root
date Wed, 16 Jan 2019 13:42:15 -0500
parents 84a412b8122c
children
comparison
equal deleted inserted replaced
48:da133c130c1d 49:a67bf725e87b
122 $chars = explode("/",$isbn); 122 $chars = explode("/",$isbn);
123 $isbn = $chars[0]; 123 $isbn = $chars[0];
124 $ret = 1; 124 $ret = 1;
125 $countryCode = 2; 125 $countryCode = 2;
126 126
127 include "../../private/db.php"; 127 include "db.php";
128 $query = "CALL b_getBookInfo('$isbn', $countryCode)"; 128 $query = "CALL b_getBookInfo('$isbn', $countryCode)";
129 //echo $query; 129 //echo $query;
130 $res = mysqli_query($link, $query) or exit( mysqli_error( $link )); 130 $res = mysqli_query($link, $query) or exit( mysqli_error( $link ));
131 include "../xml/aws_signed_request.php"; 131 include "../xml/aws_signed_request.php";
132 include "../xml/getAmazonInfo.php"; 132 include "../xml/getAmazonInfo.php";
166 166
167 $recommended = ""; 167 $recommended = "";
168 $linkedRecommended = ""; 168 $linkedRecommended = "";
169 for($i=0;$i<sizeof($xml->isbn);$i++){ 169 for($i=0;$i<sizeof($xml->isbn);$i++){
170 $linkedISBN = $xml->isbn[$i]; 170 $linkedISBN = $xml->isbn[$i];
171 include "../../private/db.php"; 171 include "db.php";
172 $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)"; 172 $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)";
173 //echo $query; 173 //echo $query;
174 $res = mysqli_query($link, $query) or exit( mysqli_error( $link )); 174 $res = mysqli_query($link, $query) or exit( mysqli_error( $link ));
175 if ( mysqli_num_rows( $res ) > 0 ) 175 if ( mysqli_num_rows( $res ) > 0 )
176 { 176 {