Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $servername = "localhost";
- $username = "";
- $password = "";
- $dbname = "onlynews";
- $tableName = "news";
- $conn = new mysqli($servername, $username, $password, $dbname);
- $sql = "INSERT INTO news (id, title, photo, url, source, at)
- VALUES ('$x', '$thetitle', '$urlToImage', '$theurl', '$thesource', '$thetime')";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement