Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. I got this code
  2.  
  3. if ($row['Sender'] == Admin ) {
  4. echo '<div class="mesgs"> </div>';
  5. echo '<div class="msg_history"> </div>';
  6.  
  7. echo '<div class="incoming_msg"> </div>';
  8. echo '<div class="incoming_msg_img"><img src="https://ptetutorials.com/images/user-profile.png" alt="sunil"> </div>';
  9. echo '<div class="received_msg"> </div>';
  10. echo '<div class="received_withd_msg"> </div>';
  11. echo "<p>" . $row["message"] . "</p>";
  12. echo "<span class='time_date'>" . $row["dating"] . "</span>";
  13. } else {
  14. echo '<div class="mesgs"> </div>';
  15. echo '<div class="msg_history"> </div>';
  16. echo '<div class="outgoing_msg"> </div>';
  17. echo '<div class="sent_msg"> </div>';
  18. echo "<p>" . $row["message"] . "</p>";
  19. echo "<span class='time_date'>" . $row["dating"] . "</span>";
  20.  
  21. It works fine , i'm supposed to get this https://i.stack.imgur.com/Zs3a3.png
  22.  
  23. But i get this, [ what i get][1]
  24. Like it's not in the chat , it gets out of the page , but i want a scroll down to check all the chat in the same size
  25.  
  26. the original code
  27.  
  28. <div class="mesgs">
  29. <div class="msg_history">
  30. <div class="incoming_msg">
  31. <div class="incoming_msg_img"> <img src="https://ptetutorials.com/images/user-profile.png" alt="sunil"> </div>
  32. <div class="received_msg">
  33. <div class="received_withd_msg">
  34. <p>Test which is a new approach to have all
  35. solutions</p>
  36. <span class="time_date"> 11:01 AM | June 9</span></div>
  37. </div>
  38. </div>
  39. <div class="outgoing_msg">
  40. <div class="sent_msg">
  41. <p>Test which is a new approach to have all
  42. solutions</p>
  43. <span class="time_date"> 11:01 AM | June 9</span> </div>
  44. </div>
  45. <div class="incoming_msg">
  46. <div class="incoming_msg_img"> <img src="https://ptetutorials.com/images/user-profile.png" alt="sunil"> </div>
  47. <div class="received_msg">
  48. <div class="received_withd_msg">
  49. <p>Test, which is a new approach to have</p>
  50. <span class="time_date"> 11:01 AM | Yesterday</span></div>
  51. </div>
  52. </div>
  53. <div class="outgoing_msg">
  54. <div class="sent_msg">
  55. <p>Apollo University, Delhi, India Test</p>
  56. <span class="time_date"> 11:01 AM | Today</span> </div>
  57. </div>
  58. <div class="incoming_msg">
  59. <div class="incoming_msg_img"> <img src="https://ptetutorials.com/images/user-profile.png" alt="sunil"> </div>
  60. <div class="received_msg">
  61. <div class="received_withd_msg">
  62. <p>We work directly with our designers and suppliers,
  63. and sell direct to you, which means quality, exclusive
  64. products, at a price anyone can afford.</p>
  65. <span class="time_date"> 11:01 AM | Today</span></div>
  66. </div>
  67. </div>
  68. </div>
  69.  
  70. [1]: https://i.stack.imgur.com/oeINm.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement