Julian Davchev wrote:
> 
> I am just trying to form any query that I want to pass '?' mark to
> database.
> So question is how I appropriately escape this '?' so that ZF doesn't 
> look at it as placeholder.
> 

You don't have to escape the question mark if it is in quotes.  I just
tested this:

  $stmt = $db->prepare("INSERT INTO words (word) VALUES (';?>')");
  $stmt->execute();

  mysql> SELECT * FROM words;
  +-------------+
  | word        |
  +-------------+
  | ;?>         |
  +-------------+

Regards,
Bill Karwin
-- 
View this message in context: 
http://www.nabble.com/Quesion-mark-breaks-queries-as-it-expects-to-bound-them-tp15586615s16154p15618689.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to