Guest User

Untitled

a guest
Sep 14th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $servername = "localhost";
  2. $username = "root";
  3. $password = "";
  4. $dbname = "dbname";
  5. $conn = new mysqli($servername, $username, $password, $dbname);
  6. if ($conn->connect_error) {
  7. die("Connection failed: " . $conn->connect_error);
  8. }
  9. $sql = "SELECT * FROM stories";
  10. $result = $conn->query($sql);
  11. if ($result->num_rows > 0){ while($row = $result->fetch_assoc()){
  12. $newsBody = unserialize($row["newsBody"]);
  13. echo $row['titleLng'];
  14. **Gives me Result which displays all Hindi Characters**
  15. }
Add Comment
Please, Sign In to add comment