Sunday, December 22, 2013

Connect Java with Oracle 10g Tutorial

For Windows users only

Pre-Requisites:
  1. jdk1.6.0_11
  2. Oracle 10g
  3. ojdbc14.jar
If you want to access oracle10g via JDBC you need to set CLASSPATH environment variable to find the ojdbc14.jar file provided by Oracle. The file is located in:  C:\oracle\product\10.1.0\Db_1\jdbc\lib\ojdbc14.jar           beneath you Oracle home directory, or it’s available for download from http://technet.oracle.com or http://www.findjar.com/
If you are using older version of JDK(1.2 or below). You need to set CLASSPATH for classes12.zip
C:\oracle\product\10.1.0\Db_1\jdbc\lib\classes12.zip
Step:1
Setting CLASSPATH
1. Right click the My Computer icon. In that click properties
2. You will see a window System Properties. In that window click Advanced
3. You will see a button Environment Variables. Click that button.
4. In the popup window you will see User variables for XXXXXX (your name) and System variable. Select the New button which is below the User variables for XXXXX.
5.  You will see the window New User Variable. In Variable name type CLASSPATH and in Variable value type .;C:\oracle\product\10.1.0\Db_1\jdbc\lib\ojdbc14.jar
The first entry must be a period, which denotes the current directory. The second entry must be the directory for the ojdbc14.jar or classess12.zip (jdk 1.2 or below).
If CLASSPATH is not set correctly, you will get a NoClassDefFoundError error when you run a compile class.
NOTE
Be sure to use a version of the JDK that is compatible with the Oracle release you are using.  If you use a new release of the JDK with an older release of Oracle’s drivers, you may encounter “access violation” errors when executing your programs.
Step 2
The PATH environment variable should already be set for JDK Step 3
JDK is already provided by Oracle itself(You can even use your own JDK). If you install Oracle10g It comes automatically. It lies in
C:\oracle\product\10.1.0\Db_1\jdk(I have installed oracle in C: in your case it might be D: or E: ….)
Setting PATH
1. Right click the My Computer icon. In that click properties
2. You will see a window System Properties. In that window click Advanced
3. You will see a button Environment Variables. Click that button.
4. In the popup window you will see User variables for XXXXXX (your name) and System variable. Select the New button which is below the User variables for XXXXX.
5.  You will see the window New User Variable. In Variable name type PATH and in Variable value type
C:\oracle\product\10.1.0\Db_1\jdk\bin;
Click ok. You have finished setting PATH and CLASSPATH.


Testing your Connection
Oracle provides a sample program called JdbcCheckup.java that you can use to verify your JDBC configuration. This file may be in a zip file (demo.zip on the C:\oracle\product\10.1.0\Db_1\jdbc\demo.zip.  After unzipping you will get C:\oracle\product\10.1.0\Db_1\jdbc\demo\samples\generic\. You will need to extract it before running the program. Go to the directory where the sample file is, then compile and execute the JdbcCheckup.iava class:
javac  JdbcCheckup.java
Java JdbcCheckup

NOTE
Java commands are case sensitive. When you execute jdbcCheckup, you are prompted for usename, password, and connect string for a database. That connection Information will be used to attempt a connection; if successful, that attempt will return the following output:

Connecting to the database...Connecting…
 connected.
Hello World.
Your JDBC Installation is correct.
If you don't receive feedback telling you that your Installation is correct, you need to check your configuration. Common problems include incorrectly set environment variables (PATH and CLASSPATH) and mismatched versions of database connection drivers. It you change the environment variable values, you need to shut down and restart the command windows for the changes to take effect.
If you are not able to find demo.zip then try the below programs.

Sample programs

Sample program: 1
ConnectOracle.java

  1. /** 
  2.  * ConnectOracle.java 
  3.  */  
  4. package com.fazle.connectoracle;  
  5.   
  6. import java.sql.Connection;  
  7. import java.sql.DriverManager;  
  8. import java.sql.ResultSet;  
  9. import java.sql.Statement;  
  10.   
  11. /** 
  12.  * @author www.fazlerabbicse.blogspot.com 
  13.  *  
  14.  */  
  15. public class ConnectOracle {  
  16.   
  17.     public static void main(String[] args) {  
  18.   
  19.         try {  
  20.             DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());  
  21.             System.out.println("Connecting to the database...");  
  22.             Connection connection = DriverManager.getConnection(  
  23.                     "jdbc:oracle:thin:@localhost:1521:orcl""scott""tiger");  
  24.             Statement statement = connection.createStatement();  
  25.             ResultSet resultset = statement.executeQuery("select 'Connected' from dual");  
  26.             resultset.next();  
  27.             String s = resultset.getString(1);  
  28.             System.out.println(s);  
  29.             statement.close();  
  30.             connection.close();  
  31.         } catch (Exception e) {  
  32.             System.out.println("The exception raised is:" + e);  
  33.         }  
  34.     }  
  35.   
  36. }  
connection=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger");
In the above line, username is “scott” and password is “tiger”.
Thin is the JDBC driver
1521 is the default port number which the connection is to be established and orcl is the database name.
Sample program: 2

ConnectOracle.java

  1. /** 
  2.  * ConnectOracle.java 
  3.  */  
  4. package com.fazle.connectoracle;  
  5.   
  6. import java.sql.Connection;  
  7. import java.sql.DriverManager;  
  8. import java.sql.ResultSet;  
  9. import java.sql.Statement;  
  10.   
  11. /** 
  12.  * @author www.fazlerabbicse.blogspot.com
  13.  *  
  14.  */  
  15. public class ConnectOracle {  
  16.     public static void main(String[] args) {  
  17.         try {  
  18.             DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());  
  19.             Connection connection = DriverManager.getConnection(  
  20.                     "jdbc:oracle:thin:@localhost:1521:orcl""scott""t");  
  21.   
  22.             Statement statement = connection.createStatement();  
  23.             ResultSet resultSet = statement  
  24.                     .executeQuery("SELECT EMPNAME FROM EMPLOYEEDETAILS");  
  25.             while (resultSet.next()) {  
  26.                 System.out.println("EMPLOYEE NAME:"  
  27.                         + resultSet.getString("EMPNAME"));  
  28.             }  
  29.         } catch (Exception e) {  
  30.             e.printStackTrace();  
  31.         }  
  32.     }  

Saturday, November 23, 2013

Customize your blog or website by CSS. (CSS Beginners Part-1)

CSS Beginners

CSS is something a lot of people ask my advice on, assuming it is too technical or complex for them to learn themselves, this is absolutely not true. It’s nowhere near as scary as it seems and everyone is capable of learning the basics and using it to customize their blogs. It’s not something that will take months or years to learn, with all the excellent resources available right at your fingertips you can teach yourself the very basics in a few hours.
Layout and design play such a huge role in how your blog is seen and perceived by others, whether they be other bloggers, potential collaborators or future employers, that you should want it to look the best it possibly can. First impressions count and appearance can often make or break future relationships, especially with clients. Not everyone has spare cash lying around to hire a web designer or to buy custom templates, but everyone can, with a little spare time, learn how to do it themselves. So now there is no excuse for a poor or unoriginal design!
I’ve tried to make this as simple as possible, so that even total beginners can alter their themes with ease. Follow the instructions on how to get to the CSS editor for your blogging platform below, then simply copy and paste my CSS code examples into the box and alter the red text to suit your needs. You can go to the bottom to copy the entire code in full, or pick out only the customizations you need from the sections below.

Saturday, November 16, 2013

How to check scam websites by yourself

Welcome to the world of freelancing.

What is freelance? Basically a freelancer, freelance worker, or freelance is a person who is self-employed. You can learn more about its defination at http://en.wikipedia.org/wiki/Freelancer

Now i come to the main points. There are many ways to earn money from internet. As well as, many websites are present, came or will come in the future. A number of earning websites are coming everyday specially ptc or bux sites. But remember, all of those sites are not real.   

Many many scam(ভুয়া) sites are present in the online. They can offer you & cheat you by many types.
So now i teach you about how to check out these scam sites by yourself.

There are many ways to check this. 
Firstly, you can take some benefits from some free scam checker websites. Check your site is scam or not by the following websites

http://www.scamadviser.com
http://www.scamvoid.com

By these sites you can able to find your sites information such as there safety (%), site details, owner, administrator, days of running, date of starting, server, ranking, billing contact etc. Check also how safe a Website is to buy from !!
Secondly, you can use google search engine for searching more info about that site. Just write your desire websites name and add some word like "scam or not". You can search as yourself.
Thirdly, you can use your community (like social comunity or others) to discuss about your sites and get some extra info. You can find many web specialist, who can help you to find out your freelancing sites is safe or not.

There are also many ways to check out, but i will post this later. Because my exam is near at hand & i am very busy with my study now. So, everyone pray for me for my exam.

Thats it.

 * If you like this post, please share it so that others can be aware of this...*


Thanks.
Fazle Rabbi
PSTU(Patuakhali Science and Technology University)



General Knowledge

বিশ্ববিদ্যালয় ভর্তি পরীক্ষার প্রস্তুতি

>বাংলাদেশের মানচিত্র প্রথম কেএকেঁছিলেন? উওরঃ মেজর জেম্স রেনেল ।
>কোন তারিখে বাংলাদেশের জাতীয় পতাকা সরকারীভাবে গৃহীত হয়? উওরঃ ১৭ জানুয়ারী,১৯৭২
>কোন আরব দেশ সর্বপ্রথম বাংলাদেশকে সীকৃতি দিয়েছেন ? উওরঃ ইরাক ।
>সর্বশেষ বাঙালি নোবেল বিজয়ী হলেন? উওরঃ ড. মুহম্মদ ইউনুস ।
>বাংলাদেশের সর্বোচ্চ চুড়া কোনটি? উওরঃ চিম্বুক ।
>কুমিল্লার পূর্ব নাম কি ? উওরঃত্রিপুরা ।
>বাংলাদেশের জাতীয় সংসদের অধিবিশনের জন্য সর্বনিম্ন কতজনসদস্যর উপস্থিতি প্রয়োজন ? উওরঃ ৬০ জন ।
>"আমার ভাইয়ের রক্তে রাঙানো" গানটির সুরকার কে? উওরঃ আলতাফ মাহমুদ ।
>গ্রামিন ফোন বাংলাদেশের শেয়ারবাজারে কবে যোগ দিয়েছে? উওরঃ ৪ অক্টোবর ২০০৯ ।
>আন্তর্জাতিক মুদ্রা তহাবলের সদর দফতর কোথায়- উওরঃ ওয়াশিংটন ডিসি ।
>OIC এর সদস্য রাষ্ট্র কতটি? উওরঃ ৫৭
>২০০৯ সালের মহিল এককে উইম্বলডন চ্যাম্পিয়ন হচ্ছে- উওরঃ সেরেনা উইলিয়ামস্ ।
>গ্রিক হাউস গ্যাস নির্গমনকারীশীর্ষ দেশ দুটি হচ্ছে – মার্কিনযুক্তরাষ্ট্র ও চীন ।
>প্রেসিডেন্ট ওবামা কোন শহরের আদিবাসী ছিলেন? উওরঃ শিকাগো ।
>কোন ইউরোপীয় বণিক ভারতে আসার পথ আবিস্কার করেন? উওরঃ ভাসকো দা গামা।
>আফ্রিকাভিত্তিক COMESA হচ্ছে একটি ? উওরঃ বাণিজ্যিক ব্লক ।
>বাংলাদেশের সংবিধান এ পর্যন্তকতবার সংশোধন করা হয়েছে? উওরঃ ১৪
>বাংলা বর্ষের প্রবক্তা কে ছিলেন? উওরঃ সম্রাট আকবর ।
>বাংলাদেশের প্রস্তাবিত গভীর সমুদ্র বন্দরটি কোথায় গড়ে তোলা হয় ? উওরঃ সোনাদিয়া ।
>বাংলাদেশে প্রথম কোন কোম্পানী'আইএরও ৯০০১' সার্টিফিকেট লাভ করেছে= উওরঃ এসি আই ।
>ঢাকা বিশ্ববিদ্যালয় প্রতিষ্ঠার জন্য গঠিত কমিশনের নাম- উওরঃ নাথান কমিশন।
>টি আই এন শব্দের অর্থ কী? উওরঃট্যাকস্ আইডেন্টিফিকেশন নম্বর।
>বাংলাদেশ এর কত টাকার নোটে বাংলাদেশ ব্যাংকের গভর্নরের স্বাক্ষর থাকে ? উওরঃ ২ টাকা ।
>বাংলাদেশের কোন জেলার সাথে ভারত এবং মিয়ানমারের সীমান্ত রয়েছে? উওরঃ রাঙ্গামাটি ।
>বাংলা পিডিয়া প্রকাশিত হয়? উওরঃ এশিয়াটি সোসাইটি থেকে।
>জাতীয় কর দিবস কবে পালিত হয়? উওরঃ১৫ সেপ্টেম্বর ।
>টেস্ট ক্রিকেটে বাংলাদেশ কত তম ম্যাচে জয়লাভ করে? উওরঃ ৩৫ তম
>বার্ডের (BARD) প্রতিষ্ঠাতা কে? উওরঃ আখাতার হামিদ খান ।
>ফ্রান্সের নেপোলিয়ান বোনাপার্ট ক্ষমতায় এসেছিলেন? উওরঃ ১৮০৪ ।
>OPEC কোন পন্য্যর cartel? উওরঃ পেট্রোলিয়াম ।
>বাংলাদেশের প্রথম বাজেট ঘোষনাকরেন – উওরঃ তাজউদ্দিন আহমেদ ।
>বাংলার কোন নেতা জমিদারি প্রথা রদে প্রধাণ ভূমিকা পালন করেন? উওরঃ এ কে ফজলুর হক ।
>বাংলাদেশের লোকশিল্প জাদুঘর কোথায় অবস্থিত ?সোনারগাঁও ।
>বাংলাদেশের জাতীয় সংসদের প্রতীক কি? উওরঃ শাপলা ।
>আরব লীগের সরদ ফতর – উওরঃ কায়রো ।
>জিন্নাহ ইন্ডিয়া পার্টিশন- স্বধীনতা নামে বইটি লিখেছেন- উওরঃ যশবন্ত সিং ।
>কোন দেশটিতে বর্তমানে ন্যাটো বাহিনীর উপস্থিতি আছে? উওরঃ আফগানিস্তান ।
>যে দুটি বিষয়ের ওপর গু্রত্ব দিয়ে ২০০৯ সনের সেপ্টেম্বরে জাতিসংঘ সাধারন পরিসদের ৬৪ তম অধিবেশন শুরু হয় – উওরঃ জলবায়ু পরিবর্তন ও আণবিক অস্ত্র বিস্তার ।
>ফরাসি বিপ্লব বোন সালে শুরু হযেছিল? উওরঃ ১৭৮৯ ।
>প্রথম বাঙালি দাবা গ্রান্ড মাস্টার কে? উওরঃ নিয়াজ মুর্শেদ ।
>পূর্ব তিমুর কোন দেশ থেকে আলাদা হযেছে? উওরঃ ইন্দোনেশিয়া।
>কোনটি স্ক্যানডিনেভিয়ান রাষ্ট্র নয়? উওরঃ পোল্যান্ড ।
>অস্কার জয়ী ফিল্ম স্নামডগ মিলোনিয়ার এর পরিচালক কে? উওরঃ ড্যানী বোয়েল ।
>২০১৬ সালে অনুষ্ঠেয় গ্রীস্মকালীন অলিম্পিক গেমসের আয়োজক- উওরঃ রিও ডি জেনিরো ।
>২০০৯ সালে অর্থনীতিতে নোবেল পুরস্কার পেযেছেন? উওরঃ এলিনর ওস্ট্রোম ।
>ইন্দোনেশিয়া কার উপনিবেশ ছিল?উওরঃ নেদারল্যান্ডস ।

 *** If you like this post please share it so that others can be aware of this.. ***

Thanks.
Fazle Rabbi
PSTU(Patuakhali Science and Technology University)


Friday, November 15, 2013

Fitness Test in a minute

Today i am going to share a test by which you can measure your own fitness. For this, you not need to go any fitness center. yeah!!!  You can do it at home & you can do it without any instrument. 

So let's get started.

Oh! man, before get started we must know that why do you exercise? Whether you want to increase your energy, reduce your health risks, or lose some unwanted pounds, do you ever wonder if all that working out is working for you? That's where fitness assessments come in, and they can be great motivational tools to help you reach your goals.
 
So now we come to the point. The test is very easy, just follow the following instructions.

Thursday, November 14, 2013

What is Iman (Faith) and what are its characteristics

Al- Hadith: Abu Hurairah, may Allah be pleased with him, reported:    One day Allah's Messenger (may peace be upon him) appeared before the public. Then a man came to him and asked: Prophet of Allah, what is Iman? Upon this he (the Holy Prophet) replied: That you affirm your faith in Allah, His angels, His Books, His meeting, His Messengers and that you affirm your faith in the Resurrection hereafter. He (again) asked: Messenger of Allah, what does Islam signify? He (the Holy Prophet) replied: Islam signifies that you worship Allah and do not associate anything with Him and you perform the prescribed Prayer and you pay the obligatory poor-due (Zakah) and you observe the Fast of Ramadan. He (the inquirer) again asked: Messenger of Allah, what does Al-Ihsan (Faithfulness) imply? He (the Holy Prophet) replied: That you worship Allah as if you are seeing Him, and in case you fail to see Him, then observe that He is seeing you. He (the inquirer) again asked: Messenger of Allah, when would there be the Hour of (Doom)? He (the Holy Prophet) replied: The one who is asked about it is no better informed than the inquirer. I, however, will narrate some of its signs (and these are): When the female-slave will give birth to her master, when the naked, barefooted would become the chiefs of the people; these are some of the signs of (Doom). (Moreover) when the shepherds of the black (camels) would exalt themselves in buildings, this is one of the signs of (Doom). (Doom) is one of the five (happenings wrapped in the unseen) which no one but Allah knows. Then he (the Messenger of Allah) (may peace be upon him) recited (the verse):  Verily Allah! with Him alone is the knowledge of the Hour and it is Him Who sends down the rain and knows that which is in the wombs and no person knows whatsoever he shall earn tomorrow, and a person knows not in whatsoever land he shall die. Verily Allah is Knowing, Aware He (the narrator, Abu Hurairah) said: Then the person turned back and went away. Allah's Messenger (may peace be upon him) said: Bring that man back to me. They (the Companions of the Holy Prophet present there) went to bring him back, but they did not find him. Upon this Allah's Messenger (may peace be upon him) remarked: He was Gabriel. He came to teach people their religion.

Tuesday, November 12, 2013

A software for your eye protection

Are you using computer for a long time? Are you a over time or late night computer user? 
As a result your vision may become impaired, eye pain may be felt etc.
 
 

 
In this case you can use a software named F.lux
 




F.lux is a small genius bit of software which changes the color of your screen from natural looking to artificial looking during the right hours, in order to help you sleep better. F.lux even helps you get the exact settings for your location in the world!
 
 
Fixes:


  • It makes the color of your computer's display adapt to the time of day, warm at night and like sunlight during the day.
  • It's even possible that you're staying up too late because of your computer. You could use F.lux because it makes you sleep better, or you could just use it just because it makes your computer look better. 
  • F.lux makes your computer screen look like the room you're in, all the time. When the sun sets, it makes your computer look like your indoor lights. In the morning, it makes things look like sunlight again.   



  You change the setting by going to Change Settings 





 This is the Preview of F.lux while its On and OFF..




It's not only Available for Windows OS, Mac OS and Linux OS ..

It's also for iPad and iPhones Also..

 

You Can Download this software from its Official Home Page..
 
(or)

Direct Download Link :  

Windows OS : Click Here..
 
Mac OS         : Click Here..
 
Linux OS       : Click Here..
 
iPAD /iPhone  : Click Here..
 
 
 If you like this post please share it so that others can be aware of this.. 
 
 
Thanks.
Fazle Rabbi
PSTU(Patuakhali Science and Technology University)

Eye Protection

Are you using computer for a long time? Are you a over time or late night computer user? 
As a result your vision may become impaired, eye pain may be felt etc.


No tension!!! 

Actually using a computer will not harm your eyes. But if you looking at a computer screen all day long or for a long time, if will contribute to eyestrain or tired eyes.



Here are some tips for your eye protection.
-------------------------------------------------------------------------- 

  1. Use eyewear(looking-glass).
  2. Let your eyes have a break after a period of time if you use pc for a long time.
  3. Put your computer on a low table, or use a portable computer so your eyes look down when you work.
  4. Breathe regularly & fully to accelerate your blood flow as you know too much focusing on your computer screen will turn your breath might slow down or become shallow.
  5. Adjust your screen distance. A chart of optimal distances is given below:                                                                                                                                       
    Size of Monitor
    Distance from Monitor
    Screen Resolution
    19"
    2'
    1024x768
    20"
    2-2.5'
    1024x768
    22"
    2'-3'
    1920x1080(near) or 1024x768(far)
    24"
    2'-4'
    1920x1080(near) or 1024x768 (far)
    30-36"
    4-6'
    1920x1080
    42"+
    exponentially farther away
    1920x1080
  6.  Blink your eyes to make tears secrete, keep the eyes wet specially if you use contact lenses.
  7. Drink plenty of water.
  8. Eat foods for sight like salmon, trout, sardines, herring and Arctic char. Vegetable wise: carrots, limes and green vegetables are also recommended for eyes. 
  9. Get more Vitamin A from fruits(e.g., mango, tomatoes and watermelon) and vegetables(e.g., carrots, pumpkin and sweet potato), cereals, fish, eggs etc.
  10. The ambient light at where you work should have moderate illumination that is helpful to your eyes.
  11. You may also use a software called Flux. F.lux is a small genius bit of software which changes the color of your screen from natural looking to artificial looking during the right hours, in order to help you sleep better. You Can Download it from its Official Home Page of F.lux at http://justgetflux.com/


*** If you like this post please share it so that others can be aware of this.. ***


Thanks.
Fazle Rabbi
PSTU(Patuakhali Science and Technology University)

Tuesday, October 29, 2013

How to connect PHP with MySQL Database Server

Are you failed to create database? Are you failed to connect the login/signup page to the wamp/xamp server? 

You are watching many video tutorials or read many articles but did not understand how it works or how to works!!! 

Don't worry about it. It's very simple. So let's get started!!!

The process is very simple!!! It's like the following 3 steps:

signup/login form(html/php) >>> Processing(php)   >>> Database(mysql)

Firstly, you need to create a html/php file for signup/login.
Secondly, you need to create a database file by using wamp/xampp server.
Thirdly, you must create a php file for processing all the data between the html file and the database.

Funny!!!, isn't it?

Step1: Creating  a html file
We are going to create a signup page now. To do that simply type the following codes in notepad or other text editor or IDE:

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

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

First Name: <input type="text" name="first"><br>
Last Name: <input type="text" name="last"><br>
Email:<input type="text" name="email"><br>
Password:<input type="text" name="password"><br>

<input type="Submit">
</form>
</body>
</html>


Now save this file as index.html

Our step1 is fineshed but remember that this is a simple code and its output may not like by you because it's output allignment is not perfect.You must create a nice looking form. As this post is about database connection, so i do not continue about this. I will post later about this.

Step 2: Creating a database file(using wampserver):
>Simply open your browser
>Type "http://localhost/phpmyadmin/" in your browser's address bar.
> phphmyadmin page will open and create a new database with your name or anything.


>Now Create a new table named anything you like & press the 'go' button


>Fill the fields which you were use in the html file i.e. first, last, email, password. Also give the 'length' and select 'type'.


>Let the other fields unchanged (You can also modify them if you want).

Relax!!! we are almost done with our database. Now we are going to create our php file which will process our step1's html file & step2's database file.

Step 3: Creating a php file
This is the most important section of our database connection.
Simply type the following codes.

<?php
$database="fazle";  //name of your database
$first=$_POST['first']; //this values comes from the html file after submitting by the user.
$last=$_POST['last'];
$email=$_POST['email'];
$password=$_POST['password'];

//connection to the database
    $con = mysql_connect("localhost","root" ,""); //for wamp 3rd feild is balnk
    if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }
  
//select a database to work with

    mysql_select_db("$database", $con);

 //insert the data into table "rabbi"

$query = "INSERT INTO rabbi(first,last,email,password)VALUES('$first','$last','$email','$password')";
mysql_query($query);

//for showing script after submission of form

echo "<script type='text/javascript'>\n";
echo "alert('Welcome! You are Successfully Registered');\n";
echo "</script>";

mysql_close();
?>


Save this file as signup.php

Wait!!! We are almost done. Now put this both file in a single Folder and also put this folder in Wamp installation directory i means  inside WWW folder. Actually the default path is C:\wamp\www

Now again type "http://localhost/" in your browser's address bar. Main Page of wampserver will be open. You will find your folder directory on bottom titled "Your Projects" in which we store our both files. 
Now click on that folder. Our index.html page will open.
Now simply enter the details and Submit it. Message box will come "Welcome! You are Successfully Registered" that means you are successfully inserted data into your  database.

By the by, you should check that your data is really inserted or not. To do that, you need to go

>http://localhost/phpmyadmin/

>Select your 'database name'. 

>After that select your 'table name'.

>At the top of your browser you will see the "Browse" tab.

>Select it.

Now you will the show the record at the bottom side and be sure that you are success!!!


 
*** If you like this post please share it so that others can be aware of this.. ***

Thanks.
Fazle Rabbi
PSTU(Patuakhali Science and Technology University)

Sunday, October 27, 2013

Someone may be say.......

Lets read a poem:

Pussy cat, pussy cat
Where have you been?
I have been London
To see the Queen.

Like that poem someone may be ask me ???

Fazle Rabbi, fazle rabbi
Where have you been?

I say,

I have been very busy
with many many activities.

How funny!!! There is a match with the poem.

So now i am going to describe all the task i have done in these days. Specially i was very busy with learning, working, helping and other task. I learn many programming language like C, JAVA, HTML, PHP, JAVA SCRIPT, CSS etc. Basically i am going to learn other things too. Now i am fully expert of designing website. As a CSE student, i have to do a lot of other things too. Forget about it. I come here to shere all of my experience about many things term by term. You can also get these experience or idea by only a search engine like Google, Bing, Ojooo, DuckDuckGo, Gigablast, Yahoo! etc. But my experience or idea is unique and you cannot find second piece in the whole world!!!

Besides, am also shere some of my freelancing experience in which you can find how to income money without investment. Rather than you can also find which sites are scam or not etc.

I also share my software field's experience which is very much helpful for you. So, get ready for that.
Thanks everybody to read my article.
Yours 
Fazle Rabbi