Jump to content
Greywacke

HTTP 500 - Translating to unexpected '"' in line 32.

Recommended Posts

Hi, the error log says that the executing document has an unexpected quotation mark in line 32, however - the lines following the http 500 error from the php error_log - come from  crypto_methods.php and are printed below...  (all sensitive information has been replaced with *****)

[05-Feb-2019 19:20:58 UTC] PHP Parse error:  syntax error, unexpected '"' in /home/*****/public_html/crypto_methods.php on line 32
31. foreach ($ciphers as $key => $value) {
32.     $sql = "INSERT INTO crypto (crypto_no, crypto_descr) VALUES (" . $key . ", /"" . $value . "/");";
33.     $result = $conn->query($sql);
34. }
Edited by Greywacke
Expanded clarity

Share this post


Link to post
Share on other sites

beginning to think I reversed the escaping brackets (imean slashes *facepalms* lol overtirednes DOES tend to lead to stupid mistakes lol XD

Edited by Greywacke
Expanding on clarity

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×