Hello, so I'm trying to update a column (carID) in a table called users
but I'm getting the following error:
"syntax error, unexpected double-quote mark, expecting "-" or identifier or variable or number"
Can you help me figure out what's the problem in the code?
Thanks A Lot!
but I'm getting the following error:
"syntax error, unexpected double-quote mark, expecting "-" or identifier or variable or number"
Can you help me figure out what's the problem in the code?
Code:
if($_SERVER["REQUEST_METHOD"] == "POST"){
$ID=mysqli_real_escape_string($con, $_GET['ID']);
if(isset($_POST["rentit"])){
$sql="UPDATE users SET carID = '$ID' WHERE username = $_SESSION["username"] ";
}}
Comment