I am working in a project which is perfectly fine while using mysql but i need to do it using oci. This is a short code where i am having problem. The problem is $stmt->execute(['code'=>$_GET['code'], 'id'=>$_GET['user']]);. What must be written instead of this in oci?
in my sql:
$conn = $pdo->open();
$stmt = $conn->prepare("SELECT *, COUNT(*) AS numrows FROM users WHERE activate_code=:code AND id=:id");
$stmt->execute(['code'=>$_GET['code'], 'id'=>$_GET['user']]);
$row = $stmt->fetch();
I used this in oci:
$sql = "SELECT *, COUNT(*) AS numrows FROM users WHERE user_name=$user_name";
$stmt = oci_parse($conn, $sql);
$row = oci_execute($stmt);