LBRY Block Explorer

LBRY Claims • php-mysql-count,-sum,-while-untuk

898726ee6f2ee6366b012637adfc85f1582c3f48

Published By
Created On
4 Feb 2023 01:32:21 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
PHP mySqL count, Sum, while untuk penjumlahan, cek deskripsi #pemrogramman
Berhitung dengan menggunakan PHP dan database mySQL,
ada tiga cara dalam video ini
1. yang pertama adalah count
$hitung_jumlah = mysqli_fetch_array(mysqli_query($konek,"select count(1) FROM tabel1 WHERE kode='kd1' "))[0];

2. dengan menggunakan while
$jumlah1 =0;
$jumlah_1 = mysqli_query($konek,"SELECT * FROM tabel1 WHERE kode='kd1' ");
while ($tabelA = mysqli_fetch_array ($jumlah_1)) {
$dataA =$tabelA ['nominal'];
{

$jumlah1=$jumlah1+$dataA ;
}}

3. dengan menggunakn SUM
$jumlah2 =mysqli_fetch_assoc(mysqli_query($konek,"SELECT SUM(nominal) AS total FROM tabel1 WHERE kode='kd1' "))["total"];



#informatika
#pemrogramman
#php
#html
#mysql
#zalfaz
https://zalfaz.com/
...
https://www.youtube.com/watch?v=rr7q3W36rCE
Author
Content Type
Unspecified
video/mp4
Language
Open in LBRY

More from the publisher

Controlling
VIDEO
PERBA
Controlling
VIDEO
HABIB
Controlling
VIDEO
RUMAH
Controlling
VIDEO
GUS B
Controlling
VIDEO
AREA
Controlling
VIDEO
MAKAM
Controlling
VIDEO
SYARA
Controlling
VIDEO
MELUN
Controlling
VIDEO
PARA