Posts

Showing posts from August, 2020

How to create a blog in PHP and MySQL database - DB design

Image
The Database This is the second part in a series on How To Create A Blog with PHP and MySQL. You can get the first part  here We will continue where we left off in the last tutorial. In this section we will be working on our database design and user authentication (registration and login). Create a database named  complete-blog-php . In this database, create 2 tables:  posts  and  users  with the following fields. You can create these tables using these commands. users : CREATE TABLE `users` ( `id` int(11) AUTO_INCREMENT PRIMARY KEY NOT NULL, `username` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `role` enum('Author','Admin') DEFAULT NULL, `password` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; posts : CREATE TABLE `posts` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `user_id` int(11) DEFAULT NULL, `title` varchar(255) NOT N

10 Best Free Templates for React Js in 2020

Image
Why would you need a React Template? React Templates are built using  ReactJS . React Templates helps companies just like yours to increase performance through efficiency that is why ReactJS is used by companies like Salesforce, Uber, CNN, Netflix, Whatsapp, and many others. 10 Best Free Templates for React Js in 2020 Building a great user interface (UI) for a site or theme can be challenging. A lot of things need to be considered to make a good-looking website template. Some best free templates for React Js come into play in 2020. Castro – React Construction Template Castro is a React-based construction template. It comes with a lot of features. Some of its features include 1000+ icon fonts, W3C validated code, speed optimized, Google Fonts, Font awesome, Free updates, Cross browser compatible, offline documentation, SEO friendly code, 100% responsive. Torres – React App Landing Page Template Torres is a multipurpose React landing page template. Torres comes with a lot of features. So