I try to enter the data, but it’s always wrong, where am I going wrong?
// Prepared statement to protect against SQL injections $stmt = $conn->prepare("INSERT INTO $tablename ('address', 'sponsor', 'gold', 'nonce') VALUES (?,?,?,?)"); $stmt->bindParam(1, $address); $stmt->bindParam(2, 1000000); $stmt->bindParam(3, $ref); $stmt->bindParam(4, $nonce);
// Prepared statement to protect against SQL injections $stmt = $conn->prepare("INSERT INTO $tablename ('address', 'sponsor', 'gold', 'nonce') VALUES (?,?,?,?)"); $stmt->bindParam(1, $address); $stmt->bindParam(2, 1000000); $stmt->bindParam(3, $ref); $stmt->bindParam(4, $nonce);
I try to enter the data, but it’s always wrong, where am I going wrong?
Limminha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.