Oldalak

Wednesday, October 19, 2016

How to create DB in MySQL with PhP







 <?php

$db_username="root"; /*Username in localhost is ROOT*/
$db_password="";  /*DataBasa Password*/
$db_hoster="localhost"; /*Just in the LocalHost */



   $conn = mysql_connect($db_hoster, $db_username, $db_password);
   if(! $conn )
   {
     die('DataBasa error: ' . mysql_error());
   }
 
 
 
   // Create database
   $databasa_name="MyFirstDB";
 
    $sql = "CREATE DATABASE $databasa_name";
    if (mysql_query($sql, $conn)) {
    echo "Database created successfully";
    } else {
    echo "Error creating database: " . mysqli_error($conn);
    }

 
 
    mysql_close($conn);


?>




How To Connect MySQL DataBasa









<?php

$db_username="root"; /*Username in localhost is ROOT*/
$db_password="";  /*DataBasa Password*/
$db_hoster="localhost"; /*Just in the LocalHost */



   $conn = mysql_connect($db_hoster, $db_username, $db_password);
   if(! $conn )
   {
     die('DataBasa error: ' . mysql_error());
   }
   echo 'DataBasa READY';
  
  
  
  
  
  
  
  
  
  
   mysql_close($conn);


?>





Tuesday, October 18, 2016

How to install Local Server


Search in Google WebBrowser
Write in XAMPP download.



Click to download button 



Click to Save File button



Open download container folder

  


 Click to Next button




Download Xammp localserver here
https://www.apachefriends.org/index.html

XAMPP cent would recommend what I use it.





 First and easiest when it comes to the Web server.
XAMPP cent would recommend what I use it. Totally simple to install.
Once this is done you can begin acquiring programming. What is a NOTEPAD write, but you can search on the net is a program that will help in programming such as Macromedia Dreamweaver or newer version of ADOBE what has been marketed.

XAMPP is installed, it automatically installs the necessary local server programs,
databasa mysql, php, java, css, etc.








Wednesday, October 12, 2016

WebMarket, Applications against expectations









Tuesday, October 11, 2016

Overflow scroll with css







<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Overflow scroll with css</title>
<style>
div {
    background-color:#6F0;
    width: 200px;
    height: 50px;
    border: 1px solid black;
    overflow: scroll;
}
</style>
</head>

<body>

<div>abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc.</div>

</body>
</html>




Friday, October 7, 2016

Overflow hidden with css




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Overflow hidden with css</title>
<style>
div {
    background-color:#6F0;
    width: 200px;
    height: 50px;
    border: 1px solid black;
    overflow: hidden;
}
</style>
</head>

<body>

<div>abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc.</div>

</body>
</html>




Thursday, October 6, 2016

Overflow visible with css



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Overflow visible with css</title>
<style>
div {
    background-color:#6F0;
    width: 200px;
    height: 50px;
    border: 1px solid black;
    overflow: visible;
}
</style>
</head>

<body>

<div>abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc abcddefghijklmno abcdd ghij klmno cddefghijklmn abc.</div>

</body>
</html>



Saturday, October 1, 2016

Buttons with css









<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Buttons with css</title>
</head>
<style>
.button {
    background-color: #FF0;
    border: none;
    color: #060;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.button1 {border-radius: 2px;}
.button1:hover{ color:#900; background-color:#FC0;}
.button2 {border-radius: 4px;}
.button2:hover{ color:#900; background-color:#FC0;}
.button3 {border-radius: 8px;}
.button3:hover{ color:#900; background-color:#FC0;}
.button4 {border-radius: 12px;}
.button4:hover{ color:#900; background-color:#FC0;}
.button5 {border-radius: 24px;}
.button5:hover{ color:#900; background-color:#FC0;}


.button6 {border-radius: 10%;}
.button6:hover{ color:#900; background-color:#FC0;}
.button7 {border-radius: 20%;}
.button7:hover{ color:#900; background-color:#FC0;}
.button8 {border-radius: 30%;}
.button8:hover{ color:#900; background-color:#FC0;}
.button9 {border-radius: 40%;}
.button9:hover{ color:#900; background-color:#FC0;}
.button10 {border-radius: 50%;}
.button10:hover{ color:#900; background-color:#FC0;}

</style>



</head>
<body>
<p>
<button class="button button1">2px</button>
<button class="button button2">4px</button>
<button class="button button3">8px</button>
<button class="button button4">12px</button>
<button class="button button5">24px</button>
</p>
<p>
<button class="button button6">2px</button>
<button class="button button7">4px</button>
<button class="button button8">8px</button>
<button class="button button9">12px</button>
<button class="button button10">24px</button>
</p>
</body>
</html>
<body>
</body>
</html>