Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.73K
1 Posted Topic
Here is the PHP and AJAX script for autosaving date_default_timezone_set('Asia/Kolkata'); //you can add your own timezone $host = 'localhost'; $user = 'your_db_username'; $pass = 'your_db_password'; $db = 'autosave'; $conn = new mysqli($host, $user, $pass, $db); function insertPost($title,$content, $conn){ $sql = "INSERT INTO post VALUES(null, ?, ?)"; $stmt = $conn->stmt_init(); if($stmt->prepare($sql)){ …
The End.