\Parse error: syntax error, unexpected : in /core/parse.php on line 10 <?php $servername = "localhost"; $username = "Fred43U50n"; $password = "W2eL7"; $dbname = "admins"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sqlInsert = "INSERT INTO users (name, email) VALUES ('$NAME', '$EMAIL')"; $conn->exec($sqlInsert); echo "New record inserted successfully.\n"; $sqlDelete = "DELETE FROM users WHERE id = 1"; $conn->exec($sqlDelete); echo "Record deleted successfully.\n"; $sqlSearch = "SELECT * FROM users"; $stmt = $conn->query($sqlSearch); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); if ($result) { foreach ($result as $row) { echo "User: " . $row["name"] . ", Email: " . $row["email"] . "\n"; } } else { echo "No results found."; } } catch(PDOException $e) { echo "Connection failed: " . $e->getMessage(); } $conn = null; ?>/n /n
Z1wyKBDMoIXv8MbIfVpRfGqcPgVb7jBrsF2DldMg2c2Lp2M1XZ33flYTby9ajEZbW0E2GAvPo3LkI6TwvDOIQHov1ac8XHqTNHTXPkayoxpZ6PdlVdjDXIiYMVUVVELmYXV1kvJCMLUAtFiBT6jtgZJlp2lSgwH2ZAduE85xDcGA2l79WSf0B821oyhAX4i3FFUd85wCbWG9pwmUkDhjguwMrUAgSHMESGwk3dDGolNy7l6XbmFLzEuBvof1gwzMfMx2AQuG4k8Ju6dVJ4Zy0B1F6EviqbF4QLecAhFQYCDoCNCqapb6i0PVzmhxQEjQ86