diff 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
line wrap: on
line diff
--- a/php/read/updateLink.php	Sun Jan 06 12:46:24 2019 -0500
+++ b/php/read/updateLink.php	Wed Jan 16 13:42:15 2019 -0500
@@ -12,7 +12,7 @@
   }
 echo $userID;
 
-include "../../../private/db.php";  
+include "db.php";  
 
 $pos = 0;
 $neg = 0;
@@ -68,7 +68,7 @@
 	echo $stateQuery;
 	
 	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"; 
 	$stateFinal = mysqli_query($link, $stateQuery) or exit( mysqli_error( $link ));
 }