Yes, but how can I do in my case?



Jurian Sluiman wrote:
> 
> Op Wednesday 27 May 2009 13:08:16 schreef robyd:
>> Hi,
>> i start to study zend framework and i read any tutorials.
>>
>> I'don't understand how do a query in mysql db.
>>
>> i configure the application.ini with the params db:
>>
>> resources.db.adapter = PDO_MYSQL
>> resources.db.params.host = localhost
>> resources.db.params.username = root
>> resources.db.params.password = root
>> resources.db.params.dbname = news
>>
>>
>> My db:
>>
>> table news
>>
>>  id  title description date author
>>
>>
>> I would to do:
>>
>> in the home page i show the news list.
>>
>> In the model folder i create a News.php file with the function:
>>
>> public function getAllNews()
>>      {
>>
>>              $sql = 'SELECT * FROM news ORDER BY data DESC';
>>          }
>>
>> but can i connect to my db for the query?
>>
>>
>> thanks.
> 
> Hi,
> A good start point is the quickstart of the Zend Framework: 
> http://framework.zend.com/docs/quickstart/
> 
> Regards, Jurian
> --
> Jurian Sluiman
> Soflomo.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/applicationi.ini-and-connect-to-db-tp23740320p23740753.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to