Log in to to your cPanel hosting, find the “MySQL Databases” in the menu and create a new database. Create a user and add it to the database, checking all privileges. We’ll use this user to connect to the DB.
Open phpMyAdmin and you should see the new DB in the list. Select it and make a new table. In my example I’ll call it usertimes.
Set to auto increment (A_I) the primary key and make sure the name field is a unique value. We’ll store the current save date and the rest of the variables depends on your specifications. Save the settings when it’s done. My database is ready to receive input.
Copying a text from a website can be uncomfortable. Help your site visitors select the text with a single click of a mouse button with this simple trick.
Continue reading “Select Div Content With a Single Click”
Improve your website’s user experience with a very simple arrow which fades in when visitors start scrolling the page. The page smoothly scrolls back to top when the the button is clicked.
Continue reading “Scroll Back to Top Widget”
We are presenting a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook, Twitter, Google+, StumbleUpon, LinkedIn, Digg, Blogger, Reddit, Delicious and “email to friend”. You can add new sites tweaking the code a little.
Continue reading “Social Media Share Widget”
I know popups are considered to be annoying, pushy and people hate them but in this case we’re talking about visitors who have already decided to leave your site so you have nothing to lose by nagging them a little.
Continue reading “Show a PopUp to Abandoning Visitors”
If you just simply publish an email address on a website you can expect tons of spam in the inbox. Web spiders crawl the sites all the time looking to collect email addresses to send them spams, ads or viruses. This is why you have to make sure you never add your email to any website as plain text or link which is visible by robots.
Continue reading “Prevent web crawlers from stealing email addresses from your website”
I had to read through and test many mobile swipe detection scripts until I finally found this one.
It’s called TouchSwipe – a jQuery plugin for touch devices.
TouchSwipe is a jQuery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc. Continue reading “jQuery Swipe Detection”
Continue reading “JSFiddle.net vs Codepen.io”