Oliver Briggs Posted October 17, 2016 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
wolstech Posted October 17, 2016 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
Oliver Briggs Posted October 17, 2016 Author 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
wolstech Posted October 17, 2016 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
Byron Posted October 17, 2016 Posted October 17, 2016 Here's another good forum for coding help: http://www.codingforums.com/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now