PDO Statement bindValue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mister Joe

    #1

    PDO Statement bindValue

    Is there a way to bind a value that contains colons? I tried today
    and it seems to think that each colon represents a different field

    for example:
    If I am storing serialized arrays in a mysql table and want to search
    for a certain serialized array say:
    array(0=>1) which when serialized becomes a:1:{i:0;s:1:"1 ";}.

    Using the query string "select * from table where response = ?" causes
    an exception to be thrown.

    Is there a way to achieve what I'm looking for or am I sol?

    Thanks

Working...