File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
----- >>>> DONE #5.4 scrollTo down of chat
10
10
---->>>OBSOLETE <<!!NOT REALLY REQURED!!>> **#5.5 Clicking on img would open profile.
11
11
#5.6 Integrating it with notification system.
12
- #5.7 Changing time format to WhatsApp format.
12
+ ** #5.7 Changing time format to WhatsApp format.
13
13
14
14
----- >>>> DONE #6 I-card pop-up for view-profile section
15
15
---->>>OBSOLETE <<!!NOT REALLY REQURED!!>> #7 Scroll Cache problem to be resolved
Original file line number Diff line number Diff line change 10
10
if ($ notifications ->num_rows > 0 ) {
11
11
// output data of each row
12
12
$ i = 1 ;
13
- echo " <tr><th>Sr. No.</th><th>Message</th><th></th></tr> " ;
13
+ echo " <tr><th>Sr. No.</th><th>Message</th><th>Time</th><th> </th></tr> " ;
14
14
while ($ row = $ notifications ->fetch_assoc ()) {
15
15
$ ntf_id = $ row ['notif_id ' ];
16
- echo "<tr><td> " .$ i ."</td><td> " .$ row ['message ' ]."<span class='label label-success'> " .$ row ['notif_time ' ]."</span></td> " ;
17
- mysqli_query ($ conn , "UPDATE notificationData SET seen_status Success Label= 1 WHERE notif_id = $ ntf_id " );
16
+ $ date =date_create ($ row ['notif_time ' ]);
17
+ echo "<tr><td> " .$ i ."</td><td> " .$ row ['message ' ]."</td><td> " .date_format ($ date ,"d/m/y h:i a " )."</td> " ;
18
+ mysqli_query ($ conn , "UPDATE notificationData SET seen_status = 1 WHERE notif_id = $ ntf_id " );
18
19
$ i += 1 ;
19
20
if ($ row ['typeOf ' ] == "follow_request " ){echo "<td><a class='google' style='text-decoration: none' href='NewConnect.php'>Follow Back</a></td></tr> " ;}
20
21
elseif ($ row ['typeOf ' ] == "accepted_request " ){echo "<td><a class='google' style='text-decoration: none' href='NewConnect.php'>Chat Now</a></td></tr> " ;}
You can’t perform that action at this time.
0 commit comments