Oliver Briggs Posted October 17, 2016 Share Posted October 17, 2016 $servergenre = explode('<SERVERGENRE>',$content);$servergenre = explode('</SERVERGENRE>',$servergenre[1]);hi there have i done the php code right for it to show on the radio panel Quote Link to comment Share on other sites More sharing options...
wolstech Posted October 17, 2016 Share Posted October 17, 2016 I assume you want the value between the <servergenre> and </servergenre> tags. Explode breaks a string up into an array using the first argument as the delimiter, and is not the right function for this (though with some creativity and the trim() function, it could probably be made to work) Seeing that the format of the source data is likely XML, look up PHP SimpleXML. It makes it much easier to get any value you could possibly want with very little effort. This is the example page: http://php.net/manual/en/simplexml.examples-basic.php Quote Link to comment Share on other sites More sharing options...
Oliver Briggs Posted October 17, 2016 Author Share Posted October 17, 2016 oh i see ok and can you code it for me on both line number 106 107in notepad++ the genre php function and thanksnew.php Quote Link to comment Share on other sites More sharing options...
wolstech Posted October 17, 2016 Share Posted October 17, 2016 Unfortunately I cannot write your code for you (both because I don't know the environment and data being passed to this program, and because we generally do not provide coding assistance except for troubleshooting compatibility with our servers). If you have trouble developing it though, feel free to ask questions. This site on PHP's website should get you started on how to handle your data, assuming your data is XML: http://php.net/manual/en/book.simplexml.php Quote Link to comment Share on other sites More sharing options...
Byron Posted October 17, 2016 Share Posted October 17, 2016 Here's another good forum for coding help: http://www.codingforums.com/ 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.