I'm trying to get users details based on what the name of the directory is, I'm using $dir as the variable. I've been trying to do this for ages (about an hour or two) and haven't gotten anywhere.
I have no idea how to do the select query from the database to choose the right member, based on the directory ($dir).
The table is named members and I'm wanting to get the username, bio and country from the database. I've tried everyway I can think of, but I get no results or errors.
I know this might be confusing, thanks if you can help.