Two questions actually
I have the following code which works great.
@mysql_pconnect ("localhost", "apdigisupport", "apdigital")
or die ("Can't connect");
mysql_select_db ("apdigitalsupport")
or die("Can't connect");
$result=mysql_query ("SELECT * FROM securelog , tblcontact WHERE securelog.id=tblcontact.id AND email='$email'")
or exit("Can't get Custname");
if ($row=mysql_fetch_array ($result)){
$custname =$row[custname];
$user =$row[user];
$email =$row[email];
$password =$row[password];
mail ("$email", "AP Digital", "Your username is $user. Your password is $password".);
}
else {
echo ("We do not have this e-mail address on file. If you need immediate assistance, please contact AP Digital Support at 1-877-836-9477");
}
...Problem??
How do I create text output after the mail function, letting the user know their
access info has been sent?? What is the syntax of adding another function if the result returns rows??
-2 How do I change the "FROM" field when someone receives an email via PHP.
I know this works off the APache Web server. Right now it shows the e-mail being sent from user nobody.
Thanks,
SJ