|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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");
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Quote:
$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. |
|
||||
|
Quote:
function get_id_by_username($user) $cond = "username='".trim($user)."' and active='1'"; $result = getField("register",$cond,"userid"); if($result != false && mysql_num_rows($result)>0) The above extract the username so how do I add the email to change $cond = "username='".trim($user)."', email and active='1'"; but still not showing email to add. Any advice how to change that? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML email versus PLAIN TEXT email - eCommerce Site | fulleffect | Graphics & Design Discussion Forum | 10 | 09-05-2008 10:21 PM |
| Email spam bots - display name vs. actual email address | apalmer123@msn.com | Web Programming Discussion Forum | 25 | 09-04-2007 02:13 PM |
| Email (not address, but email body) publishing | ADAM Web Design | Internet Industry | 1 | 08-23-2007 11:05 PM |
| Forged Email Headers and Email Load on Server | zephyrireland | Hosting Issues | 13 | 10-05-2006 07:28 PM |
| Table Align to table | sysop9999 | Graphics & Design Discussion Forum | 3 | 11-10-2005 11:00 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |