Posts

MySqL Login & Import Dump .sql file

cmd: mysql -u root -p Enter password: Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); Query OK, 0 rows affected (0.06 sec) mysql> \q Bye Import Sql Dump File into your database mysql -u root -p database_name < chumaround_21_02_2020.sql

ONE PAGE WEBSITE

<HTML> <!DOCTYPE html> <html>   <head>     <title>WebDesign</title>     <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">     <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>     <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">   </head>   <body>     <div class="container">       <header>         <div class="main">           <div class="logo">             <img src="http://www.pngmart.com/files/10/PUBG-Logo-PNG-File.png">           </div>...

Bootstrap Table Design with JavaScript

Image
< div class = "fresh-table full-color-orange" > < div class = "toolbar" > < button id = "alertBtn" class = "btn btn-default" > Students Table </ button > </ div > < table id = "fresh-table" class = "table" > < thead > < th data-field = "name" > Student`s Name </ th > < th data-field = "father_name" > Father`s Name </ th > < th data-field = "class" > Class </ th > < th data-field = "section" > Section </ th > < th data-field = "address" > Address </ th > </ thead > < tbody > < % @ members.each do | member |%> < tr > < td > < %=member.name% > </ td > < td > < %=member.father_name% > </ td > < td ...

Build a CRUD App in React

Image
Create React App We'll start by installing the project with  create-react-app  (CRA) npx create-react-app react-hooks Then run  npm i . Now you're all set with the React. Initial Setup Let's start off by clearing out all the files from the boilerplate we don't need. Delete everything from the  /src  folder except  App.js ,  index.js , and  index.css . In  index.js , we'll simplify it by removing the references to Service Workers. index.js import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) And in  App.js , I'll make a simple, functional component for  App  instead of a class. App.js import React from 'react' const App = ( ) => { return ( < div className = " container " > < h1 > CRUD App ...