Quote:
Originally Posted by wige
Its the @ symbol in the following line:
$res =get_user($tofriendid,"username",$tofriendemail,"email");
I am assuming the bolded portion is actually "username@domain.com".
Two solutions. Either change the line to this:
$res =get_user($tofriendid,"username",$tofriendemail,'username@domain.com');
(note the quotes) or to this:
$res =get_user($tofriendid,"username",$tofriendemail,"username\@domain.com");
|
Yes. email is the
username@domain.com
$res =get_user($tofriendid,"username",$tofriendemail,
"username\@domain.com");
The email is the field in the table. Same goes with the username is the field in table. The $tofriendid will actually be in the form of username1,username2,username3 .... or just username1 added into a new table. So, if it is username1,username2,username3 then the email will be emailuser1,emailuser2,emailuser3 will be added into the new table.
As the username1,username2,username3 will be entered manually by my user to be included as friend in the new table, the emails have to be corresponding to the username1,username2,username3 etc from the default table and save into a new table.
Hope this explanation is not too confusing. So, I won't be able to define
username@domain.com since I will not know what username will be key in.