djshadowxm81 Posted May 18, 2012 Share Posted May 18, 2012 I really could use some help figuring out how to pull the data out of the dedicated ip field or alternately a custom field, either way im not sure how to pull data out of either for my custom module. function burstnet_AdminServicesTabFields($params) { $result = select_query("mod_customtable","",array("serviceid"=>$params['serviceid'])); $data = mysql_fetch_array($result); $var1 = $data['var1']; $fieldsarray = array( 'VPS Ip' => '<input type="text" name="modulefields[0]" size="30" value="'.$var1.'" />', ); return $fieldsarray; } function burstnet_AdminServicesTabFieldsSave($params) { update_query("mod_customtable",array( "var1"=>$_POST['modulefields'][0], ),array("serviceid"=>$params['serviceid'])); } if i do it that way, well then it just fails and doesnt store the values anywhere. I'm at a loss here and not sure what to do because I cant really find any detailed documentation on this specific field or how to use custom fields properly. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.