That throws an error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\phpdev\www\public\chatterspics\users\nighty\index.php on line 67
Line 67 is
echo "$data['username']";
Also, would this select the right member from the directory name?
example
www.chatterspics.com/users/testalias
testalias is the name of the user I want the details showing of.
To get the directory name, I'm using:
$url = explode("/",$PHP_SELF);
$filename = $url[sizeof($url)-1];
$dir = $url[sizeof($url)-2];
echo "$dir";
How can I use that in a select query to get the right users details?
I tried
select username,country, bio from members where $dis='username'
but that never gave a result either.