Postingan

Menampilkan postingan dari Oktober, 2023

CRUD MongoDB-PHP

Gambar
 aplikasi CRUD dengan menggunakan PHP & MongoDB Skenario  • Membuat aplikasi CRUD dengan menggunakan PHP & MongoDB  • Database yang digunakan adalah Perpustakaan dengan koleksi Buku yang terdiri dari judul dan tahun  • Aplikasi bisa melakukan operasi tambah, edit dan hapus data yang terkoneksi langsung dengan MongoDB MenDownload Driver MongoDB MenDownload Driver MongoDB Untuk menginstal driver PHP MongoDB secara manual, ikuti langkah-langkah berikut:  1. Unduh driver PHP MongoDB yang sesuai dengan versi PHP Anda.  2. Pindahkan file php_mongodb.dll ke direktori ext dalam instalasi PHP di XAMPP (biasanya ada di C:\xampp\php\ext).  3. Edit file php.ini yang ada di C:\xampp\php\php.ini, tambahkan baris berikut di bagian ekstensi: extension=php_mongodb.dll Cek Instalasi 1. Setelah melakukan proses tersebut, restart Apache pada xampp control panel  2. Buka browser & ketikkan http://localhost/dashboard/phpinfo.php  3. Pastikan mongoDB su...

LIST FOR LOOPS

Gambar
 LIST FOR LOOPS 1- Lists Toward the end of the previous mission, we worked with this table: track_name price currency rating_count_tot user_rating 0 Facebook 0.0 USD 2974676 3.5 1 Instagram 0.0 USD 2161558 4.5 2 Clash of Clans 0.0 USD 2130805 4.5 3 Temple Run 0.0 USD 1724546 4.5 4 Pandora - Music & Radio 0.0 USD 1126879 4.0 Data source: Mobile App Store data set (Ramanathan Perumal) Each value in the table is a data point. For instance, the first row has five data points: Facebook 0.0 USD 2974676 3.5 A collection of data points make up a data set. We can understand our entire table above as a collection of data points, so we call the entire table a data set. We can see that our data set has five rows and five columns. Typed out a sequence of data points and separated each with a comma: 'Facebook', 0.0, 'USD', 2974676, 3.5 Surrounded the sequence with brackets: ['Facebook', 0.0, 'USD', 2974676, 3.5] After we created the list, we stored it in the compu...