Posts

Showing posts with the label web

How to Use For Each loop in JavaScript

Image
For Each Loop In JavaScript Hello Guys, Having trouble in understanding the concept of the for each loop in javascript. or having trouble finding the correct source code. Then don't worry this post is for you. What is For Each Loop: this is the loop which automatically iterates through all the elements of an array, it helps in the working with the dynamic array. Let's start working. In javascript for-each loop works in a different way. Here we have to create a function which will be passed to the foreach function of the array. Enough discussion. Start working. First, create an array of names of the actor. var heros = ["Tony","Captain","Batman","SuperMan"] Now create the function with the logic that has to be passed in the for each loop. function myfunc(item){ console.log(item + " is a very good superhero"); }  Now call the function in the foreach function of array // running the foreach loop 4 times heros.forEach(myfunc); You c...

Installing C/C++ (GCC) compiler On Windows

Image
Installing the C/C++ (GCC) Compiler On windows. In this Tutorial, I am gonna show you the full process of installing the C and C++ compiler or known as GCC to your windows machine. Without wasting much time Lets Start Installing. A good thing about the tdm-gcc is that it automatically sets up the path variables, we need not worry about the path variables anymore. In order to install the GCC software, you have to first Download it from the internet. you can also download this software from their Website by clicking here . Download you will see a page like this. just download any one from the versions that is suited for your machine. my machine is x64 so I have downloaded the 64 bit. Now go to the Download directory of your machine and search for the program and double-click it to open or run. Installing you will see something like this. click on the Create like this  Now select the type of installation as x86 or x64. and click next Now click next to accept their Priv...

PHP Connecting to MYSQL Database (creating the simple search box with database)

Image
PHP Connecting to Database In this tutorial, we are working with PHP and MySQL database. We are going to create a simple PHP page that will search for the name entered by the user in the database. NOTE: Full code is in the last of the post.  In order to work with the PHP and MySQL database, you should have installed both in your machine.  check my post for installing the PHP into the Machine. I hope you have installed PHP and MySQL. without wasting much time let's dive to create the page. First, create a file named searchpage.php into your local server directory.  local server directory is a specific folder, which can be accessed by the web server locally or globally. Create the HTML schema which is  And create a form in the body tag. you can try doing this your own. In the form create one input field with the name attribute "name" and create one submit button using the input tag with the name of "submit" and Value of "Search" . now HTML work ...

How To make completely Free website With Custom Domain

Image
How to make a completely Free website with Custom Domain Having a personal website in today's world is necessary and essential, but it is easy now. But this takes a lot of money, but due to several reasons, we aren't able to afford that much money.  So in this post, we make a website completely free of cost with a custom domain. So in order to make a website, we need 2 basic things  domain name  server so for website buy a domain name,  there are too many websites but we are going with one free alternative  Freenom.com. source: freenom.com In order to buy a domain name from here, we have to create an account a login into it. I HOPE You can do that so I Simply showing process after that. After login, you are landed on the clientarea.php page  then click  Services > Register a new Domain then search for anything  we are   going with the .tk extension because they are free you can buy whatever you wanted to. Then click on the Checkout B...

Top 5 Best Free Web Hosting Websites

Image
5 Best "Free" Web Hosting In order to run a website, we need a server. There are a lot of Websites which provide the Best experience with the server implementation Paid. But in this post, we discuss the websites that Provide  FREE  web hosting  1.  Wix.com source: Wix.com This website is best for small portfolios, and small websites. It is a Strong, Browser-based website builder, it is supreme if want to use a  drag and drop interface . BUT this platform is not for those who are looking to applying their coding skills. Wix leads the community due to its Robust and easy implementation. Storage: 500MB Bandwidth: 500MB Domain: Sub Domain with wix.com E-Mail: No E-Commerce: No Website Builder: Drag and Drop tool with lots of tools and design templates 2.  000webhost.com source: 000webhost.com “We have almost no limits for vital web building and management features,” said 000webhost’s R&D Department Manager, pointing toward fully-functioning FTP accounts and...