Greywacke Posted February 5, 2019 Share Posted February 5, 2019 (edited) 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 February 5, 2019 by Greywacke Expanded clarity Link to comment Share on other sites More sharing options...
justsomeguy Posted February 5, 2019 Share Posted February 5, 2019 The escape character is \, not /. 1 Link to comment Share on other sites More sharing options...
Greywacke Posted February 5, 2019 Author Share Posted February 5, 2019 (edited) beginning to think I reversed the escaping brackets (imean slashes *facepalms* lol overtirednes DOES tend to lead to stupid mistakes lol XD Edited February 5, 2019 by Greywacke Expanding on clarity Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now