The simplest and easiest db class is
http://code.google.com/p/edb-php-class/
<?php $result = $db->q("select * from `users`limit 3"); foreach($result as $a){ $a = (object) $a; echo $a->id.' '.$a->name.' '.$a->url.' '.$a->img.'</br>'; } $result = $db->line("select * from `users` where id = '300' limit 1"); echo $result['name']; echo $result['surname']; $name = $db->one("select name from `ilike_pics` where id = '300' limit 1"); echo $name; ?>
Edmhs source share