php - escaping sybase query with hexadecimal of single qoute -


i working sybase database (not of creating) , php, , see single quotes in database stored hexadecimal representation of single quote "\x16". don't believe common because i'm finding information saying escape single quote single quote sybase. escaping single quote not working database replacing ' \x16 is. question if sufficient enough do:

str_replace( "'", "\x16", $search ); 

it works, safe replace incoming single quotes \x16?

will protect against injection?

should same insert, update etc. ?

in sybase, there other characters need worry about? (i see double quotes , slashes stored literals (i believe word is) )

what think storage of single quotes in general?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -