« first day (1427 days earlier)      last day (1231 days later) » 

6:02 PM
@Rajkumar If that is a common query you will have, you will probably want to store your tree in a different manner. Check out the Nested Set method described a little ways down here: mikehillyer.com/articles/managing-hierarchical-data-in-mysql
 
6:23 PM
0
Q: If column1 is user then insert there otherwise insert in column 2

user4244510I want to make it so that if $_SESSION["user"] exists in App.Person1 then set that to null otherwise set App.Person2 to null. Here is my current query to unassign: update App set App.Person1 = NULL where App.Person1 = '" . addslashes(strip_tags($_SESSION["user"])) . "' and App.ID = '" . addslas...

 

« first day (1427 days earlier)      last day (1231 days later) »