got a slightly odd thing going on, not sure why. I have a PHP script which queries a MySQL DB for some user info.
Here is the offending code:
$activities = "SELECT sports FROM userActivityLocation WHERE user = '$userName'";
$result2 = mysql_query($activities);
$sports = mysql_result($result2,0);
When the POST goes through (http://www.websiteitshostedon.co.uk/API/getUserActivities.php?user=testtest123), the respons comes:
SELECT sports FROM userActivityLocation WHERE user = 'testtest123'Ultimate Volleyball
This is clearly not what I'm after, why is this happening?