Mercurial > hg > ywww
comparison xml/getAmazonInfo.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 | da133c130c1d |
children | 5f772caee9a7 |
comparison
equal
deleted
inserted
replaced
48:da133c130c1d | 49:a67bf725e87b |
---|---|
1 <?php | 1 <?php |
2 include_once "ywww/dlog.php"; | 2 include_once "dlog.php"; |
3 include_once "doAmazonRequest.php"; | 3 include_once "doAmazonRequest.php"; |
4 | 4 |
5 function getAmazonDet($isbn,$go,$localeIn) | 5 function getAmazonDet($isbn,$go,$localeIn) |
6 { | 6 { |
7 $Adefault=array( | 7 $Adefault=array( |
249 //HST added | 249 //HST added |
250 break; | 250 break; |
251 } | 251 } |
252 $queryG = "CALL b_addBrowseNode($key,\"$value\")"; //add the name value pair for genre to new table | 252 $queryG = "CALL b_addBrowseNode($key,\"$value\")"; //add the name value pair for genre to new table |
253 //echo $queryG; | 253 //echo $queryG; |
254 include "private/db.php"; | 254 include "db.php"; |
255 $resG = my_query($queryG,'gai0'); | 255 $resG = my_query($queryG,'gai0'); |
256 mysqli_close($link); | 256 mysqli_close($link); |
257 | 257 |
258 switch ($loop) { | 258 switch ($loop) { |
259 case 1: | 259 case 1: |
273 if($salesRank == "") | 273 if($salesRank == "") |
274 $salesRank = "null"; | 274 $salesRank = "null"; |
275 | 275 |
276 if($title != "") | 276 if($title != "") |
277 { | 277 { |
278 include "private/db.php"; | 278 include "db.php"; |
279 if ($publisher->count()==0) { | 279 if ($publisher->count()==0) { |
280 $publisher="null"; | 280 $publisher="null"; |
281 } | 281 } |
282 else { | 282 else { |
283 $publisher=mysqli_real_escape_string($link,$publisher); | 283 $publisher=mysqli_real_escape_string($link,$publisher); |
328 $searchparameterdata, | 328 $searchparameterdata, |
329 $show_array,$show_url,$show_xml) | 329 $show_array,$show_url,$show_xml) |
330 { | 330 { |
331 global $output; | 331 global $output; |
332 //look up info from db | 332 //look up info from db |
333 include "private/db.php"; | 333 include "db.php"; |
334 $query = "CALL b_getBookInfo('$searchparameterdata', $loc)"; | 334 $query = "CALL b_getBookInfo('$searchparameterdata', $loc)"; |
335 //echo $query; | 335 //echo $query; |
336 $res = my_query($query,'gai3'); | 336 $res = my_query($query,'gai3'); |
337 | 337 |
338 $output = ""; | 338 $output = ""; |