Mailinglisten-Archive |
Sebastian Bergmann wrote:
>
> Hi,
>
> für die nächste Version des phpOpenCounter habe ich mir gerade eine
> Funktion geschrieben, welche mir den Inhalt einer SQL Tabelle in ein
> Array packt:
>
> function usersOnline()
> {
> $i = 0;
> $result = $this->db->query( "select * from " . $this->userlog );
>
> // walk through the result set
> while( $this->db->next_record() )
> {
> $array[$i]["ip"] = $this->db->f( IP );
> $array[$i]["document"] = $this->db->f( DOCUMENT );
> $array[$i]["online_since"] = $this->db->f( ONLINE_SINCE );
$data = array();
while ($this->db->Next_Record() )
$data[] = $this->db->Result;
Ulf
php::bar PHP Wiki - Listenarchive