PHP Classes

Array

Recommend this page to a friend!

      Little DB  >  All threads  >  Array  >  (Un) Subscribe thread alerts  
Subject:Array
Summary:fetch array
Messages:3
Author:Thimios Vrettos
Date:2012-05-06 11:32:56
Update:2012-05-06 21:05:12
 

  1. Array   Reply   Report abuse  
Picture of Thimios Vrettos Thimios Vrettos - 2012-05-06 11:32:56
I cannot understand how to fetch an array from the db.Can you give an example please?Thanks

  2. Re: Array   Reply   Report abuse  
Picture of Cody Roodaka Cody Roodaka - 2012-05-06 19:25:58 - In reply to message 1 from Thimios Vrettos
Hi, this is an example:

// set false the second boolean for non-return data
$query = $db->query('SELECT * FROM table WHERE id = 1', false);

// only works with a resourse (setting false the second value)
$rows = $db->fetchrow($query);

Sorry for my horrible English, im an argentinean :S

  3. Re: Array   Reply   Report abuse  
Picture of Thimios Vrettos Thimios Vrettos - 2012-05-06 21:05:12 - In reply to message 2 from Cody Roodaka
Thank you for your class and for your reply! Great work!