Time Zones are important if you’re creating a social app which will include chat, social network and others which is interacted with the society. There are many time zones and you have to choose one to set in your server. I would totally recommend using UTC instead of your time zone in server. Web Server and Database server are different and they each have their own configuration. This includes the time zone too.... [READ MORE]
Posts marked with "MySQL" in categories
Auto Login Without Form in phpMyAdmin
If you’re using **phpMyAdmin **(PMA), you know that every time you use the application, you have to log in and when the cookie expires, you have to log in again. It’s an annoying thing to log in every time for a developer who needs to do work fast. There is a way to stop this annoying thing. It’s by disabling the login form and auto login when you visit phpMyAdmin.... [READ MORE]
Create a Search Engine In PHP, MySQL | Part 3
This is the Part 3 of “How To Create A Search Engine In PHP”. In this part, We make additional adjustments and make the search engine more awesome and cool. DownloadDemo Bot Page Our crawler leaves a mark on every pages it visit. In other words a custom User Agent String goes with each requests to web pages. In the previous part, we set the user agent string as :... [READ MORE]
Create a Search Engine In PHP, MySQL | Part 2
This is the Part 2 of “How To Create A Search Engine In PHP”. In this part, We’ll add code to files that are being displayed to the users. We make the database and the table in this part. DownloadDemo index.php The main page of our Web Search is index.php. It has a simple design and is not very advanced as Yahoo or something else. <?include("inc/functions.php");?> <html> <head> <?head("", array("index"));?> </head> <body> <?... [READ MORE]
Create A Search Engine In PHP, MySQL | Part 1
When we all search on the web using Google, Yahoo or Bing, we are curious about how it works and how it gets all the information on the web. When us programmers started coding, we all wanted to create a search engine. I too attempted to create a search engine and I ultimately failed (3 years back). But now, I improved my coding skills, improved my knowledge and ideas. So, I decided to create a new search engine with automatic crawling, indexing and stuff.... [READ MORE]
MySQL NOW() in JavaScript (UTC & Local)
If you know MySQL, you will certainly know the NOW() function that outputs the current date and time with the timezone of the MySQL server. For easy use and compatibility, we use UTC time zone for storing time in database. If you are running a web app that comply with MySQL, then you need the date function as same as the NOW(). So, I will give you a small function that return the same value as MySQL’s NOW() function in both UTC and local time.... [READ MORE]
Group Chat In PHP With Users’ Typing Status
I wrote a post on creating Group Chat in PHP. A comment was posted by Ravi asking if it was possible to include user’s typing status. It was a fascinating and a good idea to add user’s typing status. So, I worked on the code and knew it was possible. I’m going to tell you how to implement the display of users’ typing status on the Group Chat I created earlier.... [READ MORE]
Create A Trending Box In PHP With MySQL & HTML
Trending boxes can be seen is social networks. Facebook, Twitter, Google + have it. Why not create one of your own. You can create your own using HTML and add styling by CSS. We will use PHP for updating most searched queries in MySQL database. Demo How the trending box looks like : Trending Box We need a table for storing the search queries. For this we are going to create a table named “trends”.... [READ MORE]
Add Pagination To MySQL Database Result In PHP
Pagination makes the results tidy and simple. When there are many results, pagination helps sorting them out and adding each results to specific pages. In PHP, it’s real simple. You can use this tutorial to add a pagination to your database results in PHP. Demo We will be using PDO for database connection and queries. The Database table named “users” is like this : id <td> First_Name </td> <td> Last_Name </td> 1 <td> Subin </td> <td> Siby </td> 2 <td> Peter </td> <td> Charles </td> 3 <td> Thomas </td> <td> Chacko </td> It contains more and more data.... [READ MORE]
Create Group Chat In PHP With MySQL, jQuery And AJAX
Chatting is one of the most implemented feature on websites. Group chat makes users to share their feelings and other news easily to their friends easily. AJAX makes this chatting more beautiful, elegant, simple and comfortable. Group chats may be vulnerable to SQL injections and XSS attacks. But in this post where we’re going to make a group chat that doesn’t have these vulnerabilities which makes it more awesome. You can see a demo, or you can download the files directly.... [READ MORE]