Welcome Guest, Not a member yet? Register   Sign In
MySQL Queries using Doctrine & CodeIgniter
#1

[eluser]01010011[/eluser]
Hi,

How do I write plane SQL queries using Doctrine connection object and display the results? For example, how do I perform:
Code:
SELECT * FROM table_name WHERE column_name LIKE '%anything_similar_to_this%';

using Doctrine something like this (this example does not work)
Code:
$search_key = array('search_for_this');
        
     $conn = Doctrine_Manager::connection();
      
     $conn->execute('SELECT * FROM table_name WHERE column_name LIKE ?',  $search_key);
        
     echo $conn;


Messages In This Thread
MySQL Queries using Doctrine & CodeIgniter - by El Forum - 04-24-2010, 07:31 AM
MySQL Queries using Doctrine & CodeIgniter - by El Forum - 04-24-2010, 06:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB