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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...