comparison uk/index.php @ 15:385ddd7c4b55 testing

use test_db.php to get mysqld_test instance
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 19 Feb 2017 16:17:53 +0000
parents 7a532f1e0f07
children
comparison
equal deleted inserted replaced
14:1477b5e6dd16 15:385ddd7c4b55
122 $chars = explode("/",$isbn); 122 $chars = explode("/",$isbn);
123 $isbn = $chars[0]; 123 $isbn = $chars[0];
124 $ret = 1; 124 $ret = 1;
125 $countryCode = 1; 125 $countryCode = 1;
126 126
127 include "../../private/db.php"; 127 include "../../../private/db_test.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";
149 149
150 $recommended = ""; 150 $recommended = "";
151 $linkedRecommended = ""; 151 $linkedRecommended = "";
152 for($i=0;$i<sizeof($xml->isbn);$i++){ 152 for($i=0;$i<sizeof($xml->isbn);$i++){
153 $linkedISBN = $xml->isbn[$i]; 153 $linkedISBN = $xml->isbn[$i];
154 include "../../private/db.php"; 154 include "../../../private/db_test.php";
155 $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)"; 155 $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)";
156 //echo $query; 156 //echo $query;
157 $res = mysqli_query($link, $query) or exit( mysqli_error( $link )); 157 $res = mysqli_query($link, $query) or exit( mysqli_error( $link ));
158 if ( mysqli_num_rows( $res ) > 0 ) 158 if ( mysqli_num_rows( $res ) > 0 )
159 { 159 {