phppaper Posted April 2, 2011 Share Posted April 2, 2011 Hello all I am getting an error Parse error: syntax error, unexpected T_VARIABLE with this line: $isql = oci_parse($conn, 'INSERT INTO "useridA" VALUES ('$userid')'); Any through? Thanks! Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted April 2, 2011 Share Posted April 2, 2011 Some syntax highlighting should make it obvious enough $isql = oci_parse($conn, 'INSERT INTO "useridA" VALUES ('$userid')'); You're forgetting the dots before and after $userid Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted April 2, 2011 Share Posted April 2, 2011 You have an unexpected variable. Check the quotes you used to start the string and the quotes around your variable $userid. Quote Link to comment Share on other sites More sharing options...
phppaper Posted April 2, 2011 Author Share Posted April 2, 2011 still the same error, any through? Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted April 2, 2011 Share Posted April 2, 2011 What have you tried which still causes a problem? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 2, 2011 Share Posted April 2, 2011 You can try reversing the single and double quotes: <?php $isql = oci_parse($conn, "INSERT INTO 'useridA' VALUES ('$userid')"); ?> Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.