Skip to main content

Posts

Showing posts from March, 2016

Java Mysql Database Connectivity without download mysql connector file [use netbeans] - krButani

package javaconnectivity;

import java.sql.*;

public class Javaconnectivity {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {

        Driver dr = new com.mysql.jdbc.Driver();

        DriverManager.registerDriver(dr);

        Connection cn = DriverManager.getConnection("jdbc:mysql://localhost:3306/testDemo?zeroDateTimeBehavior=convertToNull","root","mysql");

        Statement st = cn.createStatement();
        String str = "Create table tbldemo(fname varchar(20))";
        st.executeUpdate(str);
        str = "INSERT INTO tbldemo VALUES('krButani'),('Raj')";
        st.executeUpdate(str);
        cn.close();

    }

}

Login Form Design 1

The Code is :

<!DOCTYPE html><html><head>
<meta charset="UTF-8">
<title>krButani
<style type="text/css">
        html,
        body {
            min-height: 100%;
        }
        body {

            background: url("../img/1.jpg") left top;
            background-size: cover;
            background-repeat: no-repeat;
        }
        .login-design {
            margin: 20% 33%;
            width: 380px;
            border: 2px solid #000;
            font-size: 120%;
            border-radius: 4px;

            box-shadow: 0px 0px 5px #222;
        }
        .login-title {
            margin: 10px ;
            padding: 10px;
            font-size: 120%;
            font-family: "Lucida Handwriting",Lucida Handwriting;
            background: rgba(0,0,0,0.8);
            color:#f4f4f4;
        }
        .login-controll-con {
            margin: 0 10%;
        }
        .login-controll-con > input {
            margin: 10px;
            wi…