Mercurial > hg > ywww
comparison php/read/getLinkedBooks.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 | 077b0a0a3e6d |
| children |
comparison
equal
deleted
inserted
replaced
| 14:1477b5e6dd16 | 15:385ddd7c4b55 |
|---|---|
| 23 $loc = 1; //default location is 1 | 23 $loc = 1; //default location is 1 |
| 24 } | 24 } |
| 25 | 25 |
| 26 if(isset($ret)) | 26 if(isset($ret)) |
| 27 { | 27 { |
| 28 include "../../private/db.php"; | 28 include "../../../private/db_test.php"; |
| 29 $loc = $countryCode; //passed from index.php when googlebot is crawling | 29 $loc = $countryCode; //passed from index.php when googlebot is crawling |
| 30 } | 30 } |
| 31 else | 31 else |
| 32 { | 32 { |
| 33 include "../../../private/db.php"; | 33 include "../../../../private/db_test.php"; |
| 34 $ret = 0; | 34 $ret = 0; |
| 35 } | 35 } |
| 36 | 36 |
| 37 $query = "CALL b_getLinksForISBN('$isbn',$loc)"; | 37 $query = "CALL b_getLinksForISBN('$isbn',$loc)"; |
| 38 //echo $query; | 38 //echo $query; |
