mirror of
https://github.com/php/presentations.git
synced 2026-03-24 15:42:33 +01:00
19 lines
547 B
XML
19 lines
547 B
XML
<slide title="Data Protection">
|
|
|
|
<blurb fontsize="4em">
|
|
What if the country data contains special characters like % ' \ %?
|
|
</blurb>
|
|
|
|
<blurb fontsize="3em">
|
|
For data protection SQLite has %sqlite_escape_string()% function that should be used
|
|
to escape data.
|
|
</blurb>
|
|
|
|
<example filename="database_pop2.php" />
|
|
|
|
<blurb fontsize="3em" title="Why not use addslashes() ?">
|
|
%sqlite_escape_string()% can properly encode handle binary data (such as images) to make
|
|
sure that it can be later retrieved without data loss and/or corruption.
|
|
</blurb>
|
|
|
|
</slide> |