Code
$stid = oci_parse($conn, "SELECT c1 FROM t1 WHERE c2 = " . $_POST['username'] . " AND c3 = " . $_POST['password'] . "");
Problem
I get ORA-00904 and ORA-24374:
ORA-00904: string: invalid identifier
ORA-24374: define not done before fetch or execute and fetch
Replacing $_POST in the code with the fixed string that $_POST returns stops the error. It must be the $_POST or the way that I'm including it in the code.
For example, $_POST['username'] is Doe, using $_POST['username'] doesn't work but using Doe does.
 
     
    