So i'm working on an Android project using web services. I've got some problems like while inserting some data in my db, my php doesn't recognize the variable or something like that and it does insert value "0" for numbers and a blank space for Strings after testing with postman or even the app itself.
Here's my PHP file content :
<?php $con = mysqli_connect("...","...","...","..."); $card_number = $_POST["card_number"]; $query = "INSERT INTO card (card_number,card_solde,date_exp) VALUES ('$card_number',0,2024)"; mysqli_query($con,$query) or die(mysqli_error($con)); $response = array(); $response["success"] = true; echo json_encode($response); mysqli_close($con); ?>
Here's an image for the table schema and the result of the insertion. https://imgur.com/aJvdbxF
Thank youuu :))