Java 2D and 3D Array

In Java, it is also possible to create an array of arrays known as multidimensional array. For example, we can declare and initialize a 2D array like bellow: int[][] twoDArray = new int[3][4]; In above example, there is 3 Rows and 2 columns. Look at...

Data Retrieve from HTML Select Box and Print into PHP

Simple but tricky. without ajax or Jquery or JavaScript, you can simply get onchange html select box data into your php and can do great things easily. Step-1: make a html form into a php page. select.php <form method=”POST”> <select name=”selectBox” id=”selectBox” onchange=”this.form.submit()”> <option value=””>Select...

Learn SQL using Oracle Database

Retrieve data using Procedure in Oracle

Step-1:  Create table CREATE TABLE student ( USER_ID NUMBER (5) NOT NULL, USERNAME VARCHAR2 (20) NOT NULL, PRIMARY KEY ( USER_ID ) ) Step-2: Create Procedure CREATE OR REPLACE PROCEDURE getStudentByUserId( p_userid IN STUDENT.USER_ID%TYPE, p_username OUT STUDENT.USERNAME%TYPE) IS BEGIN SELECT USERNAME INTO p_username from STUDENT...

JavaScript Problem-2

Questions: Write an HTML document to find X to power n where value of x and n taken from user? Ans. The solution of above question is as follows: var x=prompt(“Enter value of X: “,””); var n=prompt(“Enter value of n: “,””); var result=Math.pow(x,n); document.write(result); Happy...

Email Validation

Print Array Elements Using HTML Table

Here is the Solution of how to print array element in HTML table. HTML Code: <p id=”demo”></p> JavaScript Code: var fruits, text, fLen, i; fruits = [“Banana”, “Orange”, “Apple”, “Mango”]; fLen = fruits.length; text = “<table border=’1′><tr><th>Index</th><th>Data</th></tr>”; for (i = 0; i < fLen; i++)...