File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 8383 </div>
8484 </nav>
8585 <!-- <div class="w-75 p-2" style="background-color: #eee;margin: auto;"> -->
86- <main>
86+ <main class="table-responsive" >
8787 <?php
8888 if (isset ($ _SESSION ["error " ])) {
8989 echo ('<p class="text-danger"> ' . htmlentities ($ _SESSION ["error " ]) . "</p> " );
9797 if (isset ($ _SESSION ['user_id ' ])) {
9898 echo 'User ID ' . $ _SESSION ['user_id ' ];
9999 echo '
100- <table class="table table-light table-hover">
100+ <table class="table table-light table-bordered table- hover">
101101 <thead class="thead-dark">
102102 <tr>
103103 <th scope="col" style="background-color: #eee;">#</th>
149149 $ diff = "<p class=' text-success'>Online</p> " ;
150150 }
151151 }
152- echo "<tr><th scope='row'> " ;
152+ echo ($ _SESSION ['user_id ' ] == $ account ['user_id ' ]) ? "<tr class='table-success'> " : "<tr> " ;
153+ echo "<th scope='row'> " ;
153154 echo ($ account ['user_id ' ]);
154155 echo $ pfp ;
155156 echo ("</th><td> " );
Original file line number Diff line number Diff line change 22session_start ();
33ob_start ();
44ini_set ('display_errors ' , 0 );
5-
5+ /*
66$HOST = 'sql12.freemysqlhosting.net';
77$PORT = 3306;
88$DB_NAME = 'sql12561191';
1414 $DB_PASSWORD
1515);
1616$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
17+ */
1718
18- /*
1919$ HOST = 'localhost ' ;
2020$ PORT = 3306 ;
2121$ DB_NAME = 'g4o2-chat ' ;
2727 $ DB_PASSWORD
2828);
2929$ pdo ->setAttribute (PDO ::ATTR_ERRMODE , PDO ::ERRMODE_EXCEPTION );
30- */
You can’t perform that action at this time.
0 commit comments