Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 04:58 am EST
Geeklog Forums
PHP function question
Status: offline
Al262
Forum User
Junior
Registered: 10/19/10
Posts: 16
So this is really not a geeklog question, but rather a PHP coding question related to my geeklog site. I have a table build function that I want to mask or format some of the data. Line one builds the function that will format my data, line two needs to be executed. Any guidance on getting the $data_tmp function to execute - I consistently get convertkg(4.08233) as the data_val, it should be converted to 9 lbs.
if ($head_arr[$j]['mask'] != '') {
$data_tmp = str_replace($data_nam,$data_val,$head_arr[$j]['mask']);
$data_val = "{$data_tmp}";
}
$retval .= "<td>" . $data_val . "</td>\n";
Thanks in advance.
Text Formatted Code
if ($head_arr[$j]['mask'] != '') {
$data_tmp = str_replace($data_nam,$data_val,$head_arr[$j]['mask']);
$data_val = "{$data_tmp}";
}
$retval .= "<td>" . $data_val . "</td>\n";
Thanks in advance.
10
9
Quote
All times are EST. The time is now 04:58 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content