[SOLVED] get values for all the rows in a table |
7/21/2014 08:02:58 | |
| PHPRunner General questions | ||
|
C
cristi author
I have a table in which one column has ip addressees. global $conn;
|
||
|
|
Sergey Kornilov admin 7/21/2014 |
|
I think you can just use 'View as' type Custom and put your PHP code there. $value = getCountryFromIP($data["IP"]); |
|
|
C
|
cristi author 7/21/2014 |
|
I think you can just use 'View as' type Custom and put your PHP code there. Something like this will work: $value = getCountryFromIP($data["IP"]);
$arr = explode(",",$value);//define array of strings
|
|
|
|
Sergey Kornilov admin 7/21/2014 |
|
Add a calculated fields to your SQL query and setup this field as 'View as' Custom i.e. select ID, IP, '' as Country |
|
|
C
|
cristi author 7/22/2014 |
|
Add a calculated fields to your SQL query and setup this field as 'View as' Custom i.e. select ID, IP, '' as Country
|
|