hi friends,
Can you please tell me what is the key name of full name for example:-
for nick name we use = $p_arr['NickName']
what is the key for full name,
I can search it in database but i am lazy you know
Thanks........
hi friends, Can you please tell me what is the key name of full name for example:- for nick name we use = $p_arr['NickName'] what is the key for full name, I can search it in database but i am lazy you know Thanks........ so much to do.... |
There is no single variable for this. The "First Name" and "Last Name" fields are stored seperately. To ascertain a member's full name, assuming they are logged in (and that they have filled out these two fields if you've made them non-mandatory) would be as follows: Here are a few examples, For the following, assume the first name is John, and the last is Doe.
$mbrFullName = $p_arr['FirstName'] . " " . $p_arr['LastName']; // Would set $mbrFullName to "John Doe" $mbrFullName = $p_arr['LastName'] . ", " . $p_arr['FirstName']; // Would set $mbrFullName to "Doe, John"
should be fairly simple what to do from here. |
Thanks for your reply. Problem solved :) so much to do.... |