Did some reformatting so array based queries work

There was a problem with mysqli_fetch_all() so I changed the array
getting method
Minor changes

Some minor changes, will be complete later tonight
Merge branch 'master' of https://github.com/tomrcroft/cmpe165

Conflicts:
	uploadImg.php