- Home /
MySQL and PHP Question
I want to retriev the data of a player but i got strange array:
Scripts:
function Retriev() {
var form = new WWWForm();
form.AddField("user" , username);
var w = new WWW("localhost/Accounts/postdata.php", form);
yield w;
Weapons = w.text.Split(";"[0]);
}
PHP:
Comment
Answer by musaranya · May 15, 2014 at 03:54 PM
Check what do you have in w.text before splitting it and store it in the Weapons array
This:
$$anonymous$$a41;$$anonymous$$nife<!-- www.serversfree.com Analytics Code -->
<script src="http://www.serversfree.com"></script><noscript><a title="Free hosting servers" href="http://www.serversfree.com">Free servers</a><a title="Free websites hosting server" href="http://www.serversfree.com">Free websites hosting server</a><a title="Free hosting server features" href="http://www.serversfree.com/server-features/">Free server features</a><a title="Free hosting" href="http://www.bugs3.com">Free hosting</a><a title="Page rank" href="http://www.1pagerank.com">Page rank</a></noscript>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24425628-3']);
_gaq.push(['_setDomainName', window.location.host]);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript" src="http://www.bugs3.com/ganalytics.js"></script>
<!-- End Of Analytics Code -->
Your answer
![](https://koobas.hobune.stream/wayback/20220613145111im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Load entire table from MySQL 1 Answer
Retrieving data from a WWW php call? 1 Answer
Android build, wwwform gives ssl.SSLHandshakeException 1 Answer
My code to php -> sql in PC good, in Android not work. plese fast 1 Answer
Is it possible to send a table name through a wwwform and use it in a php query? 0 Answers