leorik leorik - 1 year ago 123
PHP Question

PDO Wrapper make select where data not like "string"

return $this->baseClass->db->SELECT("order", '*')->results();

The above code will return me all the data from the table, but i need pdoQuery that i can take ALL data from table where are NOT equal to 'someString'. Any ideas?

I'm using PHP PDO Class Wrapper Version 1.2 (Beta)

kaj kaj
Answer Source

You use wrong wrapper you must do like this

Example #1

$this->baseClass->db->pdoQuery('SELECT * FROM table WHERE col != ?', array('text'))->results();

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download