I'm using php 5.2 with oracle 11.1.
This code:
$query = oci_parse($conn, "SELECT * FROM COMMENTS WHERE PINID=$pinID and COMMENTID=$commentID");
results in this error:
<b>Warning</b>: oci_execute() [<a href='function.oci-execute'>function.oci-execute</a>]: ORA-00904: "COMMENTS": invalid identifier in <b>C:\IODwww\hello.php</b> on line <b>159</b><br />
^
But running this works fine:
$query = oci_parse($conn, "SELECT * FROM COMMENTS WHERE PINID=$pinID and COMMENTID=1");
If this a result of me injecting multiple variables into the query string, or am I making some other mistake?