Sonu2007 Posted February 20, 2012 Share Posted February 20, 2012 How i relate custom filed value to user server details. suppose we assigned server to client ip 127.0.0.1 and we have custom field "Rack Id" (for admin only) it contain value "324" how i get "rack id" from clients assigned ip using mysql? Thanks 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 20, 2012 Share Posted February 20, 2012 Something like this should work. SELECT cfv.value AS rackid FROM tblhosting h, tblcustomfields cf, tblcustomfieldsvalues cfv WHERE h.id = cfv.relid AND cf.id = cfv.fieldid AND cf.fieldname = 'Rack ID' AND h.assignedips = '127.0.0.1'; 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.