Mercurial > hg > ywww
comparison uk/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 | d606320ec331 |
| 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 = 1; | 125 $countryCode = 1; |
| 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); | 130 $res = mysqli_query($link, $query); |
| 131 if (!$res) { | 131 if (!$res) { |
| 132 $err=mysqli_error( $link ); | 132 $err=mysqli_error( $link ); |
| 173 | 173 |
| 174 $recommended = ""; | 174 $recommended = ""; |
| 175 $linkedRecommended = ""; | 175 $linkedRecommended = ""; |
| 176 for($i=0;$i<sizeof($xml->isbn);$i++){ | 176 for($i=0;$i<sizeof($xml->isbn);$i++){ |
| 177 $linkedISBN = $xml->isbn[$i]; | 177 $linkedISBN = $xml->isbn[$i]; |
| 178 include "../../private/db.php"; | 178 include "db.php"; |
| 179 $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)"; | 179 $query = "CALL b_getBookInfo('$linkedISBN', $countryCode)"; |
| 180 //echo $query; | 180 //echo $query; |
| 181 $res = mysqli_query($link, $query) or exit( mysqli_error( $link )); | 181 $res = mysqli_query($link, $query) or exit( mysqli_error( $link )); |
| 182 if ( mysqli_num_rows( $res ) > 0 ) | 182 if ( mysqli_num_rows( $res ) > 0 ) |
| 183 { | 183 { |
