Mercurial > hg > ywww
diff php/read/updateTierLink.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 |
line wrap: on
line diff
--- a/php/read/updateTierLink.php Sun Feb 19 16:17:25 2017 +0000 +++ b/php/read/updateTierLink.php Sun Feb 19 16:17:53 2017 +0000 @@ -12,14 +12,14 @@ $loc = strval($_GET['loc']); echo $loc; -include "../../../private/db.php"; +include "../../../../private/db_test.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 "../../../../private/db_test.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 "../../../../private/db_test.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 "../../../../private/db_test.php"; while($line = mysqli_fetch_assoc($data)) {