Programming Quotes

Great things are done by a series of small things brought together Things do not happen. Things are made to happen. LIFE is what Happens while you are busy making other Plans If you always do what you’ve always done, you’ll always get what you’ve… Formal education will make you a living; self-education will make […]

Read More

Data Communication Networks-IMP Questions with answers

Compare and Contrast Analog and Digital Transmission Wave Structure –          Analog o   an analog waveform o   similar to sound and light –          Digital o   a square waveform o   only two voltage levels, each representing binary 1s and 0s Transmission –          Analog o   Transmits by modulating a carrier wave’s frequency, amplitude, or phase o   Bandwidth will […]

Read More

PHP-File Handling

File Handling fopen() The fopen() function is used to open files in PHP. Using the correct mode parameter is very important at this point, as it identifies the type of file access that will be required. Below is a list of all possible mode parameters you can use with the fopen() function. If file open […]

Read More

PHP QUESTIONS AND ANSWERS

1. What do you mean by array? Explain with example various ways to define array in PHP? 2. Explain with example: foreach loop for arrays and while loop for arrays. 3. List and explain various array operators. 4. Explain with example: Multi dimensional array. A multidimensional array is an array containing one or more arrays. […]

Read More

Form Validation Using JavaScript

How to Validate HTML Form Using Javascript? I had a form where I needed to put a condition “Either email or phone number should be inserted”. A name was compulsory to add, so  I have added ‘required’ keyword in name field. But for Email and phone number validation I used javascript code. Following is the […]

Read More

Dynamic Charts Using PHP

Some people say that in PHP we cannot create charts. Others say that for creating chart we need to use plugins. But, I have found an easy solution of creating dynamic charts , without using any plugins in PHP. I have written this code to display the number of inquiries received by a college and […]

Read More

Find Unique Values After using UNION in select query

It was a scenario when I had to fetch data from 3 databases. Fetching data was not tough as I had used UNION in the select query but the tough part for me was finding the distinct/unique name from all the 3 databases. I tried different ways to fetch the distinct name from the database […]

Read More

Open/Load/View HTML file in TEXTAREA and update using PHP

What we are doing here is ‘edit an HTML on the user side’. For example, I have a file called manual.html. I have uploaded that file on CPANEL and only I have the accessing the CPANEL. Now, If someone wants to make changes in the manual, what would he/she do?They would need to ask me […]

Read More

Create a simple widget|On image click pop-up window

To create pop-up window on image click following code should be used: Here I have used css to animate the image. If animation is not required “.element{” style should be removed DEMO:http://nkworlds.com/ [click on the smiley at the left hand side corner of the page]  ======================================================= <!DOCTYPE html> <html> <head> <style> /* The Modal (background) […]

Read More