I am migrating my website from mysql_* methods to mysqli.
When I was using mysql a data like this:
$variable = <<<eot
"asdasd" hello 'name name'
//
\\
"end"
eot;
Was inserted in Database like follows:
"asdasd" hello 'name name'
//
\
"end"
And it was very OK.
Now it inserts the same data like following:
\"asdasd\" hello \'name name\'\r\n // \r\n \\\r\n \"end\"
Can anyone please tell me how to maintain old way of inserting things into db. I do not need \ and \r and \n and such things I guess. Thanks
I can see no difference.
Table definition:
PHP test source:
Every version produces the same entry in the table. So, either this is just a different output you have or your code does something different.