This is my simple "give-android-my-data-script":
$email = $_POST["email"];
$column = $_POST["column"];
$data = $_POST["data"];
mysql_query( "UPDATE members SET '$column' = '$data' WHERE email = '$email'") or die( "database query failed!" );
echo "data retrieved" . $email . $column . $data;
Everything is working fine IF but if I change '$column'
for example into active
(which is a row)
Echo tells me all 3 variables are there, but "database query failed!", too
So I'm sitting here - without a clue - 02:22am in germany...
Maybe someone can help me find the mistake. Thanks.