A
|
ann 7/26/2010 |
Paul, global $conn,$strTableName; |
S
|
swanside author 7/26/2010 |
Thanks Ann. // Place event code here. // Use "Add Action" button to add code snippets. global $conn,$strTableName; $strTableName="query"; $email=$values["Note_For"]; $message=""; $subject="Sample subject"; $rs = db_query("select Query_Date, Customer_Name, Telephone_Number, Query_Content from " . $strTableName ." where ". $where,$conn); if($data=db_fetch_array($rs)) { foreach($data as $field=>$value) $message.= $field." : ".$value."\r\n"; runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $message)); } |
A
|
ann 7/26/2010 |
Paul, ...
|
S
|
swanside author 7/26/2010 |
Paul, modify the code in the following way: ...
// Place event code here. // Use "Add Action" button to add code snippets. global $conn,$strTableName; $strTableName="query"; $email=$values["Note_For"]; $message=""; $subject="Sample subject"; $rs = CustomQuery("select Query_Date, Customer_Name, Telephone_Number, Query_Content from " . $strTableName ." where Id=". keys["QueryId"]); if($data=db_fetch_array($rs)) { foreach($data as $field=>$value) $message.= $field." : ".$value."\r\n"; runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $message)); } |
A
|
ann 7/26/2010 |
Paul, $rs = CustomQuery("select Query_Date, Customer_Name, Telephone_Number, Query_Content from " . $strTableName ." where QueryId=". $keys["QueryId"]); |
S
|
swanside author 7/26/2010 |
Paul, you've not changed all key field names to the actual one. Try this code: $rs = CustomQuery("select Query_Date, Customer_Name, Telephone_Number, Query_Content from " . $strTableName ." where QueryId=". keys["QueryId"]);
// Place event code here. // Use "Add Action" button to add code snippets. global $conn,$strTableName; $strTableName="query"; $email=$values["Note_For"]; $message=""; $subject="Sample subject"; $rs = CustomQuery("select Query_Date, Customer_Name, Telephone_Number, Query_Content from " . $strTableName ." where QueryId=". keys["QueryId"]); if($data=db_fetch_array($rs)) { foreach($data as $field=>$value) $message.= $field." : ".$value."\r\n"; runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $message)); } |
A
|
ann 7/26/2010 |
Paul, $rs = CustomQuery("select Query_Date, Customer_Name, Telephone_Number, Query_Content from " . $strTableName ." where QueryId=". $keys["QueryId"]);
|