+ Reply to Thread
Results 1 to 2 of 2

Thread: dibi

  1. #1

    dibi

    Zdravim, nema tu niekto skusenost s dibi? Potreboval by som nieco taketo.

    Code:
    $sql = "SELECT value FROM table";
    $query = mysql_query($sql);
    $result = mysql_result($query,0);
    Alebo nieco taketo.

    Code:
    $sql = "SELECT value FROM table";
    $query = mysql_query($sql);
    $array = mysql_fetch_array($query);
    Zatial som sa zmohol len na toto.

    Code:
    dibi::query('SELECT value FROM [table]');
    Skratka potrebujem dostat danu value a dat ju do variable aby som mohol spravit nieco ako echo $array[0].


    Dakujem
    Všetko o hrách a novinkách s herného sveta nájdete na http://the-guild.cz/.

  2. #2
    Uz som si to vyriesil

    Code:
    $result = dibi::query('SELECT * FROM table');
    
    foreach ($result as $n => $row) {
        print $row[0];
    }
    
    unset($result);
    Všetko o hrách a novinkách s herného sveta nájdete na http://the-guild.cz/.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts