Showing posts with label WEB DEVELOPEMENT. Show all posts
Showing posts with label WEB DEVELOPEMENT. Show all posts
Javascript Code to take input and send input to other input field using getElementbyid

 Code to insert one value from one input to another

<script>
 function send_data(){                
 var data = document.getElementById('service_option').value;
 console.log(data);
document. getElementById('service_input'). value = data;
}
</script>

Best tool for web developer (insert whole data in single click in database)

INSERTING DATA IN DATABASE TABLE BECOMES TOO DIFFICULT WHEN WE HAVE LARGE AMOUNT OF DATA . TO KEEP AWAY THIS PROBLEM THERE IS VERY GOOD SOLUTION

GO TO THIS LINKCLICK HERE TO VISIT

GO TO THIS WEBSITE SIMPLY IMPORT WHOLE EXCEL DATA SHEET AND COPY ALL THE QUERIES AND PASTE IT TO CMD MYSQL CONSOLE OR DIRECT PHP MYADMIN QUERY BOX YOU TABLE WILL BE CREATED SIMPLY RENAME IT ACCORDING TO YOUR NEED.

SQL: A Realtional Database Language

 Sql is the query langugae used with relational databases.Sql is not a DBMS itselflkbut ut us a medum of communication with DBMS.SQL is muvh easiet to understand and lwatn as compared to other language.SQL was initially called SEQUEL was later names as SQL during 1970's. Sql is a set based , declarative set based declarative query language and not imperative language such as c or BASIC. Declarative means that user only need to state" what " needs to be done and not how to be done.DBMS determines tand performs internally the steps needed to accomplis the job. It is also known to be non-procedural language

Features of Sql

  sql statements are not case senstive(but data is case sensitive) 

⦁ sql can be written one or more lines

 ⦁ clauses are usually placed on separate lines

 ⦁ Keywords cannot be split across lines

 ⦁ Tabs and spaces are allowed to enhance readability

 ⦁ Each SQL statement (not line) wnds with a semicolon(;)

 ⦁ sql is declarative and non-procedural language.

 ⦁ Sql statement start with verbs(actions) .Example create command.

 ⦁ Identifier always start with alphabet ⦁ single line comment are prefixed by - symbol and multiline comments are enclosed between /* and */

MOST USED PHP FUNCTIONS FOR DEVELOPEMENT

USING STRTOTIME() AND DATE() FUNCTION IN PHP

FETCHING DATE YEAR AND TIME SEPARATELY FROM USER INPUT

if (isset$_POST'submit' ] ) ) {
    
    $date = $_POST['date_current'];
    $time = strtotime($date);
    $month = date("m",$time);
    $year = date("Y",$time);
    if($month>=1 && $month<=3){
        $year = $year-1;
    }
 
HERE FIRST WE HAVE TO UNDERSTAND THIS IS SIMPLE LOGIC TO RECEIVE SEPARATE DATE , MONTH , YEAR,  AND TIME ALSO.

SUPPOSE WE HAVE TO GET DATA AS MONTH YEAR AND TIME AS SEPARATELY FOR SOME CALCULATION OR TO STORE IN SOME VARIABLES .  IN SIMPLE YOU HAVE TO GET YEAR FROM USER ENTERED INPUT TAG BECAUSE IF YOU SELECT INPUT TYPE AS DATE THEN YOU WILL GET DATA MONTH AND DAY TOGETHER BUT FOR SOME REASON YOU NEED MONTH AND YEAR ONLY TO PERFORM CALCULATION 
 
IN THIS LOGIC WE ARE RECEIVING DATE FROM FORM WHERE WE HAVE CREATED A INPUT TAG OF DATE TYPE FOR USER TO ENTER THE DATE, WHEN THE SUBMIT BUTTON IS PRESSED THEN
  • WE HAVE STORED DATE IN A VARIABLE NAME $date FROM INPUT BY POST METHOD
  • IN SECOND LINE $time IS USED TO STORED CONVERTED DATA WHICH IS CONVERTED INTO STRING BY USING strtotime() FUNCTION THIS FUNCTION CONVERTS DAY, MONTH, YEAR IN TO STRING AND THEN FROM STRING WE CAN FETCH DAY MONTH AND YEAR SEPARATELY 
  • HERE AN ANOTHER FUNCTION IS USED WHICH IS DATE("SPECIFIER","VARIABLE") IT EXTRACT DATE MONTHS AND YEAR SEPARATELY
  • THEN WE STORE MONTH AND YEAR BY USING DATA FUNCTION , HERE 'M' 'Y' DENOTES SHORT FORM OF MONTHS AND YEAR
  • STORE THE DATA IN VARIABLE AND THEN PERFORM THE DESIRED OPERATIONS  
 

 

WHAT IS CLOUD COMPUTING

Cloud computing is a web based service where we are interact with internet to get online data. now days servers online storage, hosting, google photos all the things are part of cloud computing . cloud computing is a type of medium by which we can get our data online by which other people get information about our product. In simple words now days we are hearing about servers because servers provide us online facility about connectivity with other and with our data also so cloud computing is an interaction with internet, it may be your online storage like google photos or Gdrive.

EXAMPLE: The data inside out smartphone and hard disk it is not accessible online you can access it offline only but do you think how can you give the data inside your Hard disk and smartphone to a friend who lives so far away, To solve this problem you will go for online storage , first you will upload your file then you friend can access the file by your given link. So this is possible because you have a centralized storage with online feature which can be accessed by any one so this is possible because of cloud computing.

list of css properties

STEPS TO REMOVE OLD WINDOWS FILES


 CSS PROPERTIES LIST TO USE AND LEARN

html {
    box-sizingborder-box;
    font-size18px;
}

:root {
    --dark-bluehsl(23326%24%);
    --lime-greenhsl(13665%51%);
    --bright-cyanhsl(19270%51%);
    --grayish-bluehsl(2338%62%);
    --light-grayish-bluehsl(22016%96%);
    --light-grayhsl(00%98%);
    --whitehsl(00%100%);
}

bodyh1h2h3h4h5h6polul {
    margin0;
    padding0;
    font-weightnormal;
    font-family'Public Sans'sans-serif;
    -webkit-font-smoothingantialiased;
}

p {
    line-height1.4;
}

.root {
    overflow-xhidden;
}

img {
    max-width100%;
    heightauto;
}

nav {
    displayflex;
    justify-contentspace-between;
    align-itemscenter;
    /* padding: 20px 0; */
    height60px;
}

nav ul {
    displayflex;
    list-style-typenone;
    align-itemscenter;
}

nav ul li a {
    text-decorationnone;
    colorvar(--grayish-blue);
    transitionall .3s ease-in-out;
}

nav ul li a:hover {
    colorvar(--dark-blue);
}

nav ul li {
    margin-left20px;
}

.container {
    width1120px;
    margin0 auto;
    max-width90%;
}

.btn {
  bordernone;
  backgroundlinear-gradient(to rightvar(--lime-green), var(--bright-cyan));
  padding10px 20px;
  border-radius50px;
  colorvar(--white);
  cursorpointer;
  transitionall .3s ease-in-out;
}

.btn:hover {
    backgroundlinear-gradient(to rightvar(--bright-cyan), var(--lime-green));
}

.header-wrap {
    displayflex;
    align-itemscenter;
    positionrelative;
    padding-bottom40px;
}

.header-section {
    backgroundvar(--light-gray);
}

.header-text {
    flex1 0 40%;
}

.header-images {
    flex1 0 60%;
    positionrelative;
}

.header-images img:first-child {
    positionrelative;
    top-50px;
    transformscale(1.6);
    bottom0;
    right-200px;
}

.header-images img:last-child {
    positionabsolute;
    top-160px;
    right-190px;
    transformscale(1.1);
}

.nav-section {
    positionrelative;
    z-index1;
    backgroundvar(--white);
}

.header-text h1 {
    font-size48px;
    font-weight300;
    line-height1.1;
    margin-bottom30px;
}

.header-text p {
    margin-bottom30px;
    colorvar(--grayish-blue);
}

section.pros-section {
    backgroundvar(--light-grayish-blue);
    padding100px 0;
}

section.pros-section h1 {
    margin-bottom20px;
}

section.pros-section p.section-text {
    margin-bottom60px;
    colorvar(--grayish-blue);
}

section.pros-section .card-wrapper {
    displayflex;
    /* gap: 100px; */
}

section.pros-section .card-wrapper > * + *{
    margin-left30px;
}

.card-wrapper .card img {
    margin-bottom30px;
}

.card-wrapper .card h2 {
    font-size22px;
    margin-bottom20px;
}

.card-wrapper .card p {
    font-size16px;
}

section.articles-section {
    padding100px 0;
    backgroundvar(--light-gray);
}

section.articles-section h1 {
    margin-bottom30px;
}

.article-wrapper {
    displayflex;
}

.article-wrapper > * + * {
    margin-left30px;
}

.article-wrapper  img {
    width100%;
    height200px;
    object-fitcover;
}

.article-card {
    backgroundvar(--white);
}
.article-wrapper .content {
    backgroundvar(--white);
    padding20px;
}

.article-wrapper .content a {
    padding10px 0;
    displayinline-block;
    colorvar(--dark-blue);
    text-decorationnone;
    transitionall .3s ease-in-out;
}

.article-wrapper .content a:hover {
    colorvar(--lime-green);
}

.article-wrapper .content p {
    font-size16px;
    colorvar(--grayish-blue);
}

footer ul {
    list-style-typenone;
}

footer {
    backgroundvar(--dark-blue);
    padding30px;
}

footer ul.socials {
    displayflex;
    margin-top60px;
}

footer ul.socials > * + * {
    margin-left14px;
}

footer .content {
    displayflex;
    justify-contentspace-between;
}

footer .content a {
    colorvar(--light-gray);
    text-decorationnone;
    transitionall .3s ease-in-out;
}

footer .content a:hover {
    colorvar(--grayish-blue);
}

footer .content li {
    margin-bottom10px;
}

footer .footer-cta {
    text-alignright;
}

footer .copyright {
    colorvar(--grayish-blue);
    font-size16px;
    margin-top30px;
}

/* Responsive */
.hamburger-btn {
    displaynone;
}
@media(max-width1198px) {
    .card-wrapper.article-wrapper {
        flex-wrapwrap;
    }
    .card-wrapper .card {
        flex1 0 40%;
        margin-bottom30px;
    }
    .card-wrapper .card:nth-child(odd) {
        margin-left0;
    }
    .article-wrapper .article-card {
        flex1 0 40%;
        margin-bottom30px;
    }
    .article-wrapper .article-card:nth-child(odd) {
        margin-left0;
    }
}

@media(max-width998px) {
    footer .content {
        flex-wrapwrap;
    }
    footer .content > * {
        flex1 0 30%;
        margin-bottom30px;
        text-alignleft;
    }
    footer ul.socials {
        margin-top30px;
    }
    footer .footer-cta {
        margin-bottom0;
    }
}

@media(max-width870px) {
    .hamburger-btn {
        displayblock;
    }
    .nav-links {
        positionfixed;
        top80px;
        left-500px;
        /* left: 50%; */
        transformtranslateX(-50%);
        backgroundvar(--white);
        displayflex;
        flex-directioncolumn;
        width90%;
        border-radius20px;
        padding20px 0;
        box-shadow0px 30px 50px 5px #A0A0A0;
        transitionall .3s ease-in-out;
    }
    .nav-links.open {
        left50%;
    }
    .navbar-cta {
        displaynone;
    }
    .hamburger-btn {
      bordernone;
      backgroundnone;
      outlinenone;
    }
    .nav-links a {
        colorvar(--dark-blue);
    }
    .nav-links li{
        padding-bottom10px;
    }
    .nav-links li:last-child {
        padding-bottom0;
    }
    .header-text {
        flex1 0 70%;
    }
    .header-images {
        flex1 0 30%;
    }
    .header-wrap {
        padding-top30px;
    }
    .header-images img:first-child {
        right-50px;
    }
    .header-images img:last-child {
        top-135px;
        right-72px;
    }
    .header-text h1 {
        font-size30px;
    }
    .header-text p {
        font-size16px;
    }
    section.pros-sectionsection.articles-section{
        padding30px 0;
    }
    section.pros-section h1 {
        font-size24px;
    }
    section.pros-section p.section-text {
        font-size16px;
    }
}
@media (max-width768px) {
    footer .content > * {
        flex1 0 100%;
        text-aligncenter;
    }
    footer .socials {
      justify-contentcenter;
    }
}

@media(max-width580px) {
    .card-wrapper .card {
        flex1 0 100%;
        margin-left0!important;
    }

    .article-wrapper .article-card {
        flex1 0 100%;
        margin-left0;
    }
    .article-wrapper .article-card:last-child {
        margin-bottom0;
    }

}

 

CREATING BEAUTIFUL WEBSITE USING HTML AND CSS

source code of this web page is given below here.
web page out put screen of given below 
source code, This is output screen.

<!
DOCTYPE html>





<html>
<head>
 <title> second web page</title>

   
  
 <style>
       div.para{
            background-colorrgb(4920962);
            colorrgb(42531);
            height17cm;
            width15cm;
            margin-left:320px;
            margin-top0px;
            margin-right:2px;
            font-size20px;
            padding5%;
            borderrgb(7101129solid;
            border-radius20px;
            opacity0.8;
           
            }
    
     
    </style>
       


      
            
        

        



        
           
   <style>
// comment
        body{
            margin0;
            padding0;
            
        }
        </body>
    </style>

    <style>
       .nav ul{
           list-stylenone;
           backgroundrgb(313146);
           text-aligncenter;
           padding0;
           margin0;
           transition-propertyall;
           opacity0.9;
           
            }
    

        
   
         .nav li{
            
            display:inline-block;
             }
            
            
       
         .nav a{
            text-decorationnone;
            font-family:Helveticasans-serif;
            colorrgb(0140);
            width100px;
            padding25px;
            displayblock;
            font-size25px;
            
         }    

         .nav a:hover{

             backgroundrgb(18718568);
             transition0.5s;
         }

         </style>


         <style>
         
        .h1{}      



         .block ul{
                    
                    height18cm;
                    width4.7cm;
                    border10px;
                    border-radius25px;
                    border-styledouble;
                    border-colorrgb(2261149);
                   text-aligncenter;
                   margin:10px;
                   padding-right10px;
                   padding-top40px;
                   margin-top88px;
                    
                    background-colorrgb(17206196);
                    floatleft;
                    opacity0.6;
                    




                }   
                
                .block li{
                  
                    list-stylenone;
                    font-size30px;
                    text-alignleft;
                  padding15px;
                  font-familyVerdana, Geneva, Tahomasans-serif;
                 
                    
                }


                .block a{
                    displayblock;
                    colorrgb(200) ;
                    block-sizeauto;
                    border30px;
                    border-colordeepskyblue;
                    border-radius15px;

                }
                .block a:hover{
                    background-colorrgb(226175109);
                   transition1s;

                }



         </style>



 


</head>

<body background="hd1.jpg">
    

<h1 style=" padding-right: 100px; color: rgb(248, 8, 236);  font-size: 50px;">
 w3school.com<
/h1>
        
        

    <div class="nav">

            
            <ul>
                <li><a href="html">HTML</a></li>
                <li><a href="css">CSS</a></li>
                <li><a href="java">JAVA</a></li>
                <li><a href="swift">SWIFT</a></li>
                <li><a href="python">PYTHON</a></li>
                <li><a href="ruby">RUBY</a></li>
                

            </ul>
            

         </div>



         <div class="block">

            
            <ul>
                <li><a href="html">LEARN HTML</a></li>
                <li><a href="css">LEARN CSS</a></li>
                <li><a href="java">LEARN JAVA</a></li>
                <li><a href="swift">LEARN SWIFT</a></li>
                <li><a href="python">LEARN PYTHON</a></li>
                <li><a href="ruby">LEARN RUBY</a></li>
                

            </ul>
            

         </div>




         
 <h2 style="text-align: right;  font-size: 30px; float: inline-start;" >
     world largest devloper site</h2>   
    
      
            
     <div class="para">
       
        <p>   
        
        This year, only three languages dipped below 2019 levels, which are C++,
 Perl and PHP. The strength of the other languages indicate the programming industry 
and demand for developers are holding strong."

        Some of the older languages such as SQL, Java and C++ are still on 
the list because a lot of older applications are built by those languages 
and legacy systems are hard to change to a different language.
 But Wang's recommendation? "I think the language right now that's really 
important to learn is Python." 
        
        Here are the top 10 programming languages that employers are seeking in
 job postings in 2021, according to Coding Dojo:
        <ul>
        <li>Python (70,497 worldwide job postings)</li> 
        <li>SQL (69,033)</li> 
        <li>Java (59,369)</li> 
        <li>R (55,978)</li> 
        <li>Visual Basic (54,253)</li>
        <li>JavaScript (49,724)</li> 
        <li>C++ (35,034)</li> 
        <li>C# (27,525)</li> 
        <li>C (25,082)</li> 
        <li>Ruby (13,279)</li> 
         </ul>   
        
            
         
            </div>  
        </p>    



       




</body>


</html>

Topics