• 10-12-2020, 08:58:51
    #1
    Merhabalar ,
    spr_transaction tablosuna gelen verileri bir yere çekmek istiyourum bankaya geçenleri kontrole etmek için ben aşağıda örnek koda göre yaptım ançak bunu forech veya for şeklide nasıl yapabilirim

    teşekkür ederim
    public function add_logo_order2()
    {
    $payments = $this->db->query("SELECT * FROM oc_spr_transaction");

    foreach($payments as $value) {
    $value['cc_name'];
    }

    }
  • 10-12-2020, 09:51:31
    #2
    $sql = 'SELECT name, colour, calories FROM fruit ORDER BY name';
    foreach ($conn->query($sql) as $row) {
    print $row['NAME'] . "t";
    print $row['COLOUR'] . "t";
    print $row['CALORIES'] . "n";
    }