RE: [PHP-WIN] addslashes() and binary data

2001-02-11 Thread Ignatius Teo
dHJ5IGJhc2U2NF9lbmNvZGUoJGJpbmFyeV9kYXRhKS4uLg0KDQpJZ25hdGl1cw0KDQo+IC0tLS0t T3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFJhbmRhbGwgQmFyYmVyIFttYWlsdG86cmRi NTVAZW1haWwuYnl1LmVkdV0NCj4gU2VudDogU2F0dXJkYXksIDEwIEZlYnJ1YXJ5IDIwMDEgMTI6 MjMNCj4gVG86IHBocC13aW5kb3dzQGxpc3RzLnBocC5uZXQNCj4gU3ViamVjdDogW1B

[PHP-WIN] addslashes() and binary data

2001-02-09 Thread Randall Barber
A curious man is me. I have some binary data that I wish to insert into a database, and all examples I have seen have used: $to_save = addslashes($binary_data); This is supposed to escape all the characters that databases don't like. This function does not always work. Some times it is fin