Comments (1)
Koneksi Mysqli Error : " .mysqli_connect_error()); mysqli_select_db($con, $database) or die("Pertemuan 14
Koneksi Kedatabase Error :
" . mysqli_error($con)); @$operasi = $_GET['operasi']; switch ($operasi) { case "view"; $query_tampil_biodata = mysqli_query($con,"SELECT * FROM isibiodata") or die (mysqli_error($con)); $data_array = array(); while($data = mysqli_fetch_assoc($query_tampil_biodata)) { $data_array[]=$data; } echo json_encode($data_array); break; case "insert"; @$nim = $_GET['nim']; @$nama = $_GET['nama']; @$alamat = $_GET['alamat']; $query_insert_data = mysqli_query($con, "INSERT INTO isibiodata (nim, nama, alamat) VALUES('$nim','$nama','$alamat')"); if ($query_insert_data) { echo "Data Berhasil Disimpan"; } else { echo "Maaf Insert Ke Dalam Database Error" . mysqli_error($con); } break; case "get_biodata_by_id"; @$id =(int)$_GET['id']; $query_tampil_biodata = mysqli_query($con, "SELECT * FROM isibiodata WHERE id='$id'") or die (mysqli_error($con)); $data_array = array(); $data_array = mysqli_fetch_assoc($query_tampil_biodata); echo "[" .json_encode ($data_array) . "]"; break; case "update"; @$nim = $_GET['nim']; @$nama = $_GET['nama']; @$alamat = $_GET['alamat']; @$id = $_GET['id']; $query_update_biodata = mysqli_query($con, "UPDATE isibiodata SET nim = '$nim', nama='$nama', alamat='$alamat' WHERE id='$id'"); If ($query_update_biodata) { echo " Update Data Berhasil "; } else { echo mysqli_error($con); } break; case "delete": @$id = $_GET['id']; $query_delete_biodata = mysqli_query($con, "DELETE FROM isibiodata WHERE id='$id'"); if ($query_delete_biodata) { echo "Data Berhasil Dihapus"; } else { echo mysqli_error($con); } break; default; break; } ?>from android.
Related Issues (20)
- Tws
- H
- programmer
- How did he do that HOT 1
- fanny
- Sata matka ts
- Sata matka k t
- 1
- runOnUIThread throwing error and crashing app
- FATAL EXCEPTION: main
- Ty
- Update the Codes
- out of date ??
- Licence HOT 1
- getResponse() Only return "OK"? HOT 1
- How to Play music in Google Play music or any media player app by pressing a button in activity of your app? HOT 2
- Android Studio error: "Method getText() must be called from the UI Thread, currently inferred thread is worker HOT 2
- Android架构视频学习众筹vx:jess_andoid
- I
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android.