Hello, I've managed to make the Get with ajax to work, now i'm trying to Post some data and I'm getting errors.
header("Access-Control-Allow-Origin: *");
$user = "root";
$pass = "";
$dbh = new PDO('mysql:host=localhost;dbname=dbname', $user, $pass);
$Login = $_POST['L'];
$PW = $_POST['S'];
$datum = '{"c2array":true,"size":[3,10,1],"data":[[[0],[0],[0],[0],[0],[0],[0],[0],[0],[0]],[["Fatso"],[1000],[100],[900],[10],[10],[39],[10],[10],[0]],[[0],[0],[0],[0],[0],[0],[0],[0],[0],[0]]]}';
$sql = $dbh->query("UPDATE registration SET data = '$datum' WHERE uemail = '$Login' AND upassword = '$PW'");[/code:dpqxiom2]
Here is my construct 2 post request:
[img="http://s33.postimg.org/7txzoq9gv/image.png"]
At the debugger i'm getting:
[code:dpqxiom2]Undefined index: L[/code:dpqxiom2]