![]() |
|
html içinde php kodu kullanmak while,for döngüsü[php sorusu] - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3) +--- Forum: Delphi ile Web Teknolojileri (https://www.delphican.com/forumdisplay.php?fid=118) +--- Konu Başlığı: html içinde php kodu kullanmak while,for döngüsü[php sorusu] (/showthread.php?tid=3797) |
html içinde php kodu kullanmak while,for döngüsü[php sorusu] - 41linea41 - 12-07-2019 Merhaba Delphi de yazdığımız aşağıdaki gibi bir kodu php de yazamadım.Yardımcı olur musunuz? Tablodaki satır sayısını bir while yada for döngüsü içine almak istiyorum. Yapmak istediğimin delphi karşılığı: var i:integer; i:=0; with qrUser do begin close; open; first; while not eof do begin grid.cells[0,i]:=qruserkullanici.value; ... .... ... i:=i+1; next; end; end; php tarafında şöyle yapıyorum. bu kodla bağlanıp veriyi cekiyorum. Kod: <?php<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link href="css/bootstrap.css" rel="stylesheet" /> <link href="css/bootstrap-theme.css" rel="stylesheet" /> <title></title> </head> <body> <script src="js/bootstrap.min.js"></script> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="#">Navbar</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> <li class="nav-item active"> <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#">Link</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="#">Action</a> <a class="dropdown-item" href="#">Another action</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="#">Something else here</a> </div> </li> <li class="nav-item"> <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a> </li> </ul> <form class="form-inline my-2 my-lg-0"> <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> </form> </div> </nav> <table class="table table-striped table-dark"> <thead> <tr> <th scope="col">#</th> <th scope="col">Users</th> <th scope="col">Access Type</th> <th scope="col">Monitor</th> <th scope="col">Edit</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td><?php echo $kullanicilar[1]; ?></td> <td><?php echo $erisim[1]; ?></td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td><?php echo $kullanicilar[1]; ?></td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th> <td><?php echo $kullanicilar[3]; ?></td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> <p>"gggggggg"</p> </body> </html>ekran[url= ]ekran[/url]
Cvp: html içinde php kodu kullanmak while,for döngüsü[php sorusu] - hi_selamlar - 12-07-2019 (12-07-2019, Saat: 12:02)41linea41 Adlı Kullanıcıdan Alıntı: Merhaba Merhabalar, Araştırarak bulabileceğiniz internette çok fazla örnek mevcut. https://stackoverflow.com/questions/17902483/show-values-from-a-mysql-database-table-inside-a-html-table-on-a-webpage https://stackoverflow.com/questions/26939303/displaying-the-content-of-mysql-in-bootstrap-table https://php.wekeepcoding.com/article/13826190/Bootstrap+Data+Tables+with+MySQL+content http://www.howtobuildsoftware.com/index.php/how-do/KLQ/php-mysql-ajax-twitter-bootstrap-bootstrap-modal-populating-bootstrap-modal-w-sql-from-table-row-click ... ... ... n Kolay gelsin. Cvp: html içinde php kodu kullanmak while,for döngüsü[php sorusu] - 41linea41 - 12-07-2019 (12-07-2019, Saat: 12:28)hi_selamlar Adlı Kullanıcıdan Alıntı:php bena zor geldi açıkcası 1 saat uğraştıktan sonra tırnak problemlerini de çözünce yapabildim.(12-07-2019, Saat: 12:02)41linea41 Adlı Kullanıcıdan Alıntı: Merhaba ilginiz için teşekkürler. PHP Kod: <?phpCvp: html içinde php kodu kullanmak while,for döngüsü[php sorusu] - hi_selamlar - 12-07-2019 (12-07-2019, Saat: 18:22)41linea41 Adlı Kullanıcıdan Alıntı:(12-07-2019, Saat: 12:28)hi_selamlar Adlı Kullanıcıdan Alıntı: Merhabalar,php bena zor geldi açıkcası 1 saat uğraştıktan sonra tırnak problemlerini de çözünce yapabildim. Merhabalar, Sorunu çözdüğünüze ve çözüm yolunu paylaştığınız için teşekkürler. Kolay gelsin. |