This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import mailbox | |
| import email | |
| import quopri | |
| import json | |
| import time | |
| from BeautifulSoup import BeautifulSoup | |
| from dateutil.parser import parse | |
| MBOX = 'mtsw-test-messages.mbox' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $host="localhost"; //replace with your hostname | |
| $username="database_example"; //replace with your username | |
| $password="Password"; //replace with your password | |
| $db_name="MyMovies"; //replace with your database | |
| $con=mysql_connect("$host", "$username", "$password")or die("cannot connect"); | |
| mysql_select_db("$db_name") or die ("cannot select DB"); | |
| $sql = "select * from BestMovies"; //replace with your table name | |
| $result = mysql_query($sql); | |
| $json = array(); |