Link to home
Start Free TrialLog in
Avatar of TonyReba
TonyRebaFlag for United States of America

asked on

Inserted data gets a space between

I am using a plugin to authenticate my users , I am modifyig it but somehow it is adding a huge white space between first and last name,,,

I am not sure, as dont know much about php, but is it anything here that might be causing this issue?
// to authenticate, the username must exist in the       if ($credentials['password'] ==  substr ($row->$passwordfield,-4) )
			
        {
            if (!empty($firstnamefield)){
                $fullname = $row->$firstnamefield;
            }
		
            if (!empty($lastnamefield)){
                $fullname .= ' '.$row->$lastnamefield;
            }

	            $response->fullname = $fullname;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of OmniUnlimited
OmniUnlimited
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TonyReba

ASKER

thanks that worked
No problem.  Thank you for the points!