M
|
macalister 2/13/2014 |
Hi.
|
A
|
Abul author 2/19/2014 |
Hi. You can send an email with your order_no to the costumer in after record added event order. I supposed that order and user are related
Error type 2
|
A
|
Anapolis 2/20/2014 |
This line in the given example looks slightly wrong to me -- |
A
|
Abul author 2/20/2014 |
This line in the given example looks slightly wrong to me -- as an example I have a working Email script in "After Record Added" events that uses a current form variable in a where statement like this -- [size="3"][font="Tahoma"]$strSQLInsert2 = "UPDATE hb_vb SET created = NOW() where sched_id = '".$values["sched_id"]."';[/size]according to my own working script example then this line should read: [size="4"]."'; It is impossible in the browser spacing to see it clearly but on the left side you have a single apostrophe sign ' followed by a double apostrophe or quote mark " and on the right side that is a double apostrophe or quote " followed by a single apostrophe ' the double apostrophe or quote marks are Wrapped by single apostrophe marks.[/size] [size="4"]HOWEVER, keep in mind that Macalister gave you a generic example when it comes to the names for the Actual fields themselves. You have to modify this script to match your own Field names to make it work. And in his example he has a small "error" where he references $values["userIdorder"]. If the field of the new order is also in the "user" table then it must be written $values["user.Idorder"]." ... put a period between the table name . field name, as he did in "user.userId". Make the example MacAlister gave you match your own table and field names.[/size]
$_SESSION["Email"]=$data["email"];
$email=$_SESSION["Email"];
$email="admin@mycompany.com";
|
A
|
Anapolis 2/20/2014 |
Finally I solved. What I did:
$_SESSION["Email"]=$data["email"];
$email=$_SESSION["Email"];
$email="admin@mycompany.com";
|