Skip to main content

Posts

Show date and time by JavaScript

Show date and time help of JavaScript. Output : Show date and time help of JavaScript. Date : dd/mm/yyyy Time : hh:mm:ss Long Process : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Show date and time help of JavaScript</title> </head> <body> <h1 align="center">Show date and time help of JavaScript.</h1> <script> var date = new Date(); document.write("Date : ") document.write(date.getDate()) document.write("/") document.write(date.getMonth()) document.write("/") document.write(date.getFullYear()) document.write("<br>") document.write("Time : ") document.write(date.getHours()) document.write(":") document.write(date.getMinutes()) document.write(":") document.write(date.getSeconds()) </script> </body> </html> Light Process : ...

How to make connect mysql database with PHP

PHP MYSQLI How to make connection MySQL database for access database. mysql_connect helps to make connection to MySQL Server Connect with  MySQLi Procedural <?php $servername = "localhost"; $username = "root"; $password = ""; $database = "databasename"; $conn = mysqli_connect($servername, $username, $password,$database); if (!$conn) {     die("Connection failed: " . mysqli_connect_error()); } echo "Connected successfully"; ?> Connect with   MySQLi Object-Oriented : <?php $servername = "localhost"; $username = "username"; $password = "password"; $conn = new mysqli($servername, $username, $password); if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); } echo "Connected successfully working"; ?> Connect with   PDO (PHP Data Objects) : <?php $servername = ...

How to use marquee tag in website

Marquee <marquee> use for scrolling object in web browser In The HTML  element is <marquee>  used to scrolling area of text, Images, and others. You can control scrolling behavior or direction also in a simple way just added some attributes. This is Default Marquee Scroll Marquee Attributes : Behavior :  mentioned how the objects is scrolling with the help of marquee tag. in this attribute you can use this mentioned value =" ( scroll, slide and alternate ) ". If no value  mentioned is  specified, the default value is scroll. Marquee Behavior Scroll Marquee Behavior Slide Marquee Behavior Alternate bgcolor: You can  s ets the marquee tag area background color with the help of color name or hexadecimal value or RGB format. Marquee bgcolor pink with default behavior scroll <marquee bgcolor="pink">Marquee bgcolor pink with default behavior scroll</marquee...

Start using PHP

PHP PHP (stand for PHP: Hypertext Preprocessor) is a broadly utilized open source universally useful scripting dialect that is particularly suited for web improvement and can be embedded into HTML. PHP is a server scripting Language and it also easy and user-friendly for making dynamic and Smarter Web pages. PHP is a broadly utilized, free, and effective other option to contenders, for example, Microsoft's ASP. Basicstructure of PHP <!DOCTYPE html> <html> <body> <?php echo "I Love PHP script!"; ?> </body> </html> if you want to PHP Developer then you need to install xampp, wamp, lamp or mamp these are third party application it helps you to create a server environment on a client computer. 

Basic Structure of HMTL5

Basic Structure of HMTL5 <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> </body> </html> Saving Process of HTML file : CTRL+S or go to file menu and click to save and put a file name and with the file name you must type .html and click the save

How to show date in PHP

Show date in PHP PHP date() function : PHP output : Current Date: 11/04/17 <?php             $date = date("d/m/y");             echo "Current Date: $date"; ?> PHP output : Current Date: Tue/04/2017 <?php             $date = date("D/m/y");             echo "Current Date: $date"; ?> PHP output : Current Date: Tue/Apr/17 <?php             $date = date("D/M/y");             echo "Current Date: $date"; ?> PHP output : Current Date: Tue/Apr/2017 <?php           $date = date("D/M/Y");           echo "Current Date: $date"; ?> By Table Code : Output : <?php              $date = date("d/m/y");  ...

Data units and bits and bytes

Data units and bits and bytes A bit is smallest unit in data, 1 bit = one binary digit 0 or 1 For Processing or virtual 1 bit = One binary digit (0 or 1) 1 nibble = 4 bit 1 byte = 8 bit 1024  bytes = 1 KB (Kilobyte) 1024 KB = 1 MB (Megabyte) 1024 MB = 1 GB (Gigabyte) 1024 GB = 1 TB (Terabyte) 1024 TB = 1 PB (Petabyte) 1024 PB = 1 EB (Exabyte) 1024 EB = 1 ZB (Zettabyte) 1024 ZB = 1 YB (Yottabyte) 1024 YB = 1 BB (Brontobyte) 1024 BB = 1 GB (Geopbyte) For Storage 1 bit = One binary digit (0 or 1) 1 nibble = 4 bit 1 byte = 8 bit 1000 bytes = 1 KB (Kilobyte) 1000 KB = 1 MB (Megabyte) 1000 MB = 1 GB (Gigabyte) ...