Jump to content

PDO function with aray problems.


Paul-D

Recommended Posts

Sorry this is in addition to a previouse post which is fixed.

Can someone help with transferring to PDO. I have added another field to the end of a table Bank_Data field called ‘B’ for Bold entry.

$Bold added into function UpdateRecord() at the end lines 229 to 254 in SecureFunctionsBankPDO.php

Parse error: syntax error, unexpected token "?", expecting end of file in  SecureFunctionsBankPDO.php on line 271

 

Thanks.

SecureFunctionsBankPDO.php.txt

Link to comment
Share on other sites

the attached code doesn't produce a php syntax error. there are only 270 lines. any chance you made a change and didn't save the file before trying to execute it?

btw - addslashes() should never have been used with database code.

  • Like 1
Link to comment
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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.