Oldalak

Thursday, January 5, 2017

How to embed video in your site, from FACEBOOK



Things communicated to the Facebook to share your site can be embedded in a public post or video. To embed a video containing entries posted with the video message will be displayed. If only the video embeds, will only appear in the video player.
Embed this video:

     Open the video you want to embed.
     the top-right of the entry, click the icon and choose Embed Video.
     Copy and paste the code displayed and add them to your website or your own website.

If beágyazol a video and its target audience is a change in the public setting, your website, a message will warn that the embedded video is no longer available.
Note: Facebook does not currently provide the possibility of downloading videos.





Wednesday, December 28, 2016

How to create new cursor for your website.



First . Create new picture with FIREWORK with out background.
Save in the kurzor.PNG format.

Secund copy code to your website.
<style>
 body{cursor: url(kurzor3.png),default;}
</style> 
 





Wednesday, December 14, 2016

Insert into mySQL databasa with php






Create 3 file.

1. File name input.html



<html>

<header></header>

 <body>

 <form action="insert.php" method="post">

Username: <input name="adnam" size="20" /><br />
Password: <input name="adpsw" size="20" /><br />
<input type="submit" value="SEND" />
</form>




</body>


</html>  

2. File name insert.php 


<?php

$username = $_POST["adnam"];
$password = $_POST["adpsw"];

 $conn = mysql_connect('localhost', 'root', '');

  if (!$conn)
  {
    die('Could not connect: ' . mysql_error());
  }
 
  mysql_select_db('users');
 
  $query="INSERT INTO user (username, password)
VALUES ('$username','$password')";

 mysql_query($query);

/*if ($conn->query($sql) === TRUE) {
    echo "New record created successfully";
} else {
    echo "Error: " . $sql . "<br>" . $conn->error;
}*/

header("location:ok.html");

 mysql_close($conn);
?>

3.File name ok.html   


<html>
 <head></head>
<body>

 User inserted to databasa OK . <a href="input.html">New User</a>

</body>
</html>


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);


?>