I was thinking... is there a way for it to check how many results are found?
Like if there is 1 result, have it do a redirect to a page, an if there are more then 1 result, then to kick out the results?

Also, where do i put the data for $databaseuser etc? Where do i define those, in a connection.php file?

I made a sameple a while back where i used another file, and then included that into my sheet taht was doing the querying.

thanks for all your help.