I am trying to add an username and password into a database using JSON. I cannot get it to work, any ideas? Thank you.
<?php
mysql_connect("localhost","sdr001","************");
mysql_select_db("tristate");
$userID = $_POST['userID'];
$password = $_POST['password'];
$q=mysql_query("INSERT INTO users VALUES(>'".$_REQUEST['userID']."'");
while($e=mysql_fetch_assoc($q))
$output[]=$e;
print(json_encode($output));
mysql_close();
?>