I am using oracle db and I want to output the count of v$session in my php code. But when I run it, php reads it as a variable because of "$". Can anyone help me? Thanks!
This is my code:
$sql = "select COUNT(*) SID from v$session";
$array = oci_parse($conn, $sql);
oci_execute($array);
$row = oci_fetch_array($array);
echo $row;
Error: Notice: Undefined variable: session in C:\xampp\htdocs\test\index.php on line 12