Would Like to Create an email Event for a specific Field |
1/5/2007 7:33:37 AM |
PHPRunner General questions | |
N
Norian author
Hello, function BeforeAdd(&$values)
|
|
T
|
thesofa 1/5/2007 |
Hello, //** Custom code **** // put your custom code here if $values["Urgent Call Back"] = "yes" { But I am just getting errors when I try and go to the page from the menu Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /var/www/dev/php/include/_Phone_Log_events.php on line 13 Any help would be greatly appreciated and many thanks in advance
expecting '(' part of the message, it is looking for a pair of parentheses in the 'if' clause if ($values["Urgent Call Back"]= "yes") {
if($values["Urgent Call Back"]== "yes") {
|
N
|
Norian author 1/5/2007 |
the clue is in the part of the message, it is looking for a pair of parentheses in the 'if' clause you may want to change this part to read as follows //** Custom code **** // put your custom code here I think you need the parentheses around the condition for the if clause. Also, a=b makes a have the same value as b a==b checks if a has the same value as b so the line should be as follows //** Custom code **** // put your custom code here If you are new to php, this site may be really useful for you to bookmark. HTH
|
N
|
Norian author 1/5/2007 |
I figured it out... many thanks for the initial help <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=14294&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' /> if ($values['Urgent Call Back'] =="Yes") { |