Mercurial > hg > ywww
diff php/read/updateTierLink.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 | 077b0a0a3e6d |
| children |
line wrap: on
line diff
--- a/php/read/updateTierLink.php Sun Jan 06 12:46:24 2019 -0500 +++ b/php/read/updateTierLink.php Wed Jan 16 13:42:15 2019 -0500 @@ -12,14 +12,14 @@ $loc = strval($_GET['loc']); echo $loc; -include "../../../private/db.php"; +include "db.php"; //$addState = 0; $query1 = "CALL b_getLinkID('$isbn1', '$isbn2', $loc)"; // "select LinkID from scoretable where BookID1 = '$isbn1' and BookID2 = '$isbn2' and LocID = $loc"; //echo $query1; $data1 = mysqli_query($link, $query1) or exit( mysqli_error( $link )); mysqli_close($link); //do not remove. reset is needed otherwise mysqli_fetch_array doesn't work after first loop -include "../../../private/db.php"; +include "db.php"; if ( mysqli_num_rows( $data1 ) < 1 ) //does the link exist { @@ -35,7 +35,7 @@ //reset connection mysqli_close($link); //do not remove. reset is needed otherwise mysqli_fetch_array doesn't work after first loop - include "../../../private/db.php"; + include "db.php"; //if(isset($userID)) @@ -53,7 +53,7 @@ //reset connection mysqli_close($link); //do not remove. reset is needed otherwise mysqli_fetch_array doesn't work after first loop - include "../../../private/db.php"; + include "db.php"; while($line = mysqli_fetch_assoc($data)) {
