pero no me
Código PHP:
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "mantencion";
$equ=$_GET['tag'];
$rep=$_GET['CRep'];
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$stmt = $conn->prepare("INSERT INTO equipos_repuestos (TAG, Codigo) VALUES (?,?)");
$stmt->bind_param("sd", $equ, $rep);
$stmt->execute();
echo "<H1>Repuesto asociado correctamente</H1>";
$stmt->close();
$conn->close();
?>