Topics

User Functions

Events

There are no upcoming events

What's New

Stories

1 new Stories in the last 2 weeks

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Friday, May 24 2013 @ 01:34 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 PHP function question
   
Al262
 11/07/10 01:54PM (Read 326 times)  
++---
Junior

Status: offline


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.

PHP 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.

 
Profile Email Website
 Quote
Content generated in: 0.76 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content