This is my problem, how could i pass the variables from the android to the PHP? Please help me.. This my problem.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a3701630/public_html/getDesc.php on line 9
This is my PHP code.
<?php
include 'config.php';
connect();
$userid= str_replace('_', ' ', mysql_escape_string($_POST['userid']));
$sql = "SELECT description FROM tbl_userdescription WHERE userid = ". $userid;
$result = mysql_query($sql);
while($row=mysql_fetch_assoc($result))
$output[]=$row;
print(json_encode($output));
?>