Mercurial > hg > ywww
comparison php/read/updateLink.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 | f024f2f08994 |
| children |
comparison
equal
deleted
inserted
replaced
| 48:da133c130c1d | 49:a67bf725e87b |
|---|---|
| 10 if (isset($_GET['userID'])) { | 10 if (isset($_GET['userID'])) { |
| 11 $userID = strval($_GET['userID']); | 11 $userID = strval($_GET['userID']); |
| 12 } | 12 } |
| 13 echo $userID; | 13 echo $userID; |
| 14 | 14 |
| 15 include "../../../private/db.php"; | 15 include "db.php"; |
| 16 | 16 |
| 17 $pos = 0; | 17 $pos = 0; |
| 18 $neg = 0; | 18 $neg = 0; |
| 19 | 19 |
| 20 if($change == "pos") | 20 if($change == "pos") |
| 66 $stateQuery = "CALL b_insertThumbState($userID,$linkID,$state)"; | 66 $stateQuery = "CALL b_insertThumbState($userID,$linkID,$state)"; |
| 67 } | 67 } |
| 68 echo $stateQuery; | 68 echo $stateQuery; |
| 69 | 69 |
| 70 mysqli_close($link); //do not remove. reset is needed otherwise mysqli_fetch_array doesn't work after first loop | 70 mysqli_close($link); //do not remove. reset is needed otherwise mysqli_fetch_array doesn't work after first loop |
| 71 include "../../../private/db.php"; | 71 include "db.php"; |
| 72 $stateFinal = mysqli_query($link, $stateQuery) or exit( mysqli_error( $link )); | 72 $stateFinal = mysqli_query($link, $stateQuery) or exit( mysqli_error( $link )); |
| 73 } | 73 } |
| 74 | 74 |
| 75 //if email not zero, select userid from user where email=email | 75 //if email not zero, select userid from user where email=email |
| 76 //insert into thumbstate null,userid,linkid,state (1,0,-1) | 76 //insert into thumbstate null,userid,linkid,state (1,0,-1) |
