Live Notification Using PHP MySQL and AJAX
index.php
select.php
SISTEM INFORMASI " . $ua['userAgent']; ?> "; echo " Access Denied! You do not have permission to perform the requested operation."; } ?>
Profil Logout
1 | 1 | 1 | 1 | |
---|---|---|---|---|
select.php
connect_error) { die("Connection failed: " . $conn->connect_error); } $sql1 = "SELECT * from messageTest where status = 'unread'"; $result = $conn->query($sql1); $row = $result->fetch_assoc(); $count = $result->num_rows; echo $count; $conn->close(); ?>remove.php
connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "UPDATE messageTest SET status = 'read' where status = 'unread'"; if ($conn->query($sql) === TRUE) { // echo "No Notification"; } else { // echo "Error updating record: " . $conn->error; } $sql1 = "SELECT * from messageTest where status = 'unread'"; $result1 = $conn->query($sql1); $row1 = $result1->fetch_assoc(); $count1 = $result1->num_rows; echo $count1; $conn->close(); ?>
0 Posting Komentar untuk "Live Notification Using PHP MySQL and AJAX"
1. Berkomentarlah dengan tata bahasa yang baik.
2. Silahkan tulis komentar Anda yang masih ada kaitanya dengan postingan.
3. Semua komentar kami baca, namun tidak semua bisa balas, harap maklum.
4. Beri tanda centang pada "Beri tahu saya", untuk pemberitahuan jika komentar telah kami balas.
5. Promosi produk/jasa tidak akan diterbitkan kecuali telah ada kerja sama.
Post a Comment