Advertisement
Guest User

Untitled

a guest
Oct 1st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $servername = "localhost";
  2. $username = "";
  3. $password = "";
  4. $dbname = "onlynews";
  5. $tableName = "news";
  6. $conn = new mysqli($servername, $username, $password, $dbname);
  7. $sql = "INSERT INTO news (id, title, photo, url, source, at)
  8. VALUES ('$x', '$thetitle', '$urlToImage', '$theurl', '$thesource', '$thetime')";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement