Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include_once 'confff.php';
  4. $text = "hello";
  5.  
  6. $chat = "<div class='msgln'>(".date("g:i A").") <b>".$_SESSION['name']."</b>: ".stripslashes(htmlspecialchars($text))."<br></div>";
  7. mysql_query("INSERT INTO world_chat (chat_text) VALUES ('$chat')") or die(mysql_error());
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement