[SOLVED] Â Before add save data |
11/19/2020 4:24:47 AM |
PHPRunner General questions | |
A
alfonso authorDevClub member
I have 3 tables:
|
|
D
|
david22585 11/19/2020 |
I have 3 tables: PEOPLE ---------------
$_SESSION["cityname"] for $values["city_name"] = $_SESSION["cityname"]; , and ".$_SESSION["cityname"]." in the email. unset($_SESSION["cityname"]) to clear that data. |
![]() |
Sergey Kornilov admin 11/19/2020 |
Use DBLookup function: $data["city_name"] = DB:DBLookup("SELECT name_city FROM cities WHERE id = ".$values['city_id']); |
A
|
alfonso authorDevClub member 11/20/2020 |
Thanks. I try this code, but I get this error: Parse error: syntax error, unexpected ':' in /var/www/vhosts/......... function BeforeAdd(&$values, &$message, $inline, &$pageObject)
|
![]() |
Sergey Kornilov admin 11/20/2020 |
You can use the following: $data["city_name"] = DBLookup("SELECT name_city FROM cities WHERE id = ".$values['city_id']); |
A
|
alfonso authorDevClub member 11/21/2020 |
Perfect! |