1
I have added the following to userinfo.php:
le="color: #000000"><?php if(isset($HTTP_GET_VARS['usr'])){ //get UID from database $uid_get_query = 'SELECT uid FROM '.$xoopsDB->prefix('users').' WHERE uname='.$HTTP_GET_VARS['usr']; $uid_get_result = $xoopsDB->query($uid_get_query); while($uid_get = $xoopsDB->fetchArray($uid_get_result)) { $uid = $uid_get[0]; } }
It should be possible to goto
http://www.yoursite.tld/userinfo.php?usr=unameto get the profile...
But $uid stays empty (also when the user exists)
What is wrong with this query or what is wrong with the code??
I can't seem to find out why this doesn't work...