Friday, July 29, 2011
How To Create Table in Ms Access 2007
1. Click on start menu than choose Microsoft Office open ms access.
2. Add new database or create new database two ways we have to do this
Here in above pic click at new and choose new database
3. After clicking new or blank database from one of above option this following page will displayed here we have to set Database name
Here I am setting database name MyDb.
After clicking button create on right bottom side of highlited area our blank data base will be created
After clicking it will display on and on right side there is default table of database
On left side at Table 1 right click there and choose design mode option than following option will display
At this step we have to save table name as displaying above .
As in following image I set table name tbemp (table for employee details) . in following pic u can see on left side where now table name is changed to tbemp:Table from Table1:table
And on the right side u can see there are 2 fields – field name and Datatype
Field name :
Field name is specified as name of columns of the table eg. empId , empName , empAdd, EmpSal
DataType:
DataType is must to use any field in table when we create or declare a field in table we must add its datatype with field name
Example
FieldName Datatye
empId AutoNumber
empName Text
empAdd Text
empSal Number
As in above table I have four fields with their datatypes
I use Auto number for empId – because empId is unique column of table whose value cannot be repeat because in every table we need a column who is unique because to retrieve records . it can better explain with an example
Select empname, empadd, empsal from tbemp where empId =1
I use in above example empid with where condition because emp id Is unique and consist primary key and it have datatype of autonumber. When we insert records in table we will insert values in all columns but not in empid because everytime it will fill automatically like 1,2,3,4,5 and so on
And for fetching records from table we only use column with unique and primarykey . Because primary key we cannot repeat any value of column and in case of other columns they can b repeat like “name = navi”. Name navi can have one or more people but its id must relates to only one person like in ur case ur roll number is ur primary and unique column.
In our example :
As u can see in following image I choose above fields and datatypes.
DataType:
Datatype Is related to every column or field name of table. It is use to tell ur column’s type like : empName- Text (in empname we can enter value like text like amit ) and empSal – Number (its value like 25000)
After creating table next step is to enter data in table as in following pic u can see
I have to enter just name, address and salary in table id will generate automatically
Sunday, March 6, 2011
Hit Counter for ASP.NET
This is a very simple hit counter / page counter to see how many people have visited a web page if you want to show it on a web page. This is a simple user control that is meant to be on one page (i.e., the home page).
The requirements for this are a user control and read/write access to an xml file. Below is the code for the user control counter.ascx
Markup Code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="counter.ascx.cs" Inherits="counter" %>
<asp:Label ID="lblCounter" runat="server">asp:Label>
Code for the code behind:
protected void Page_Load(object sender, EventArgs e)
{
this.countMe();
DataSet tmpDs = new DataSet();
tmpDs.ReadXml(Server.MapPath("~/counter.xml"));
lblCounter.Text = tmpDs.Tables[0].Rows[0]["hits"].ToString();
}
private void countMe()
{
DataSet tmpDs = new DataSet();
tmpDs.ReadXml(Server.MapPath("~/counter.xml"));
int hits = Int32.Parse(tmpDs.Tables[0].Rows[0]["hits"].ToString());
hits += 1;
tmpDs.Tables[0].Rows[0]["hits"] = hits.ToString();
tmpDs.WriteXml(Server.MapPath("~/counter.xml"));
}
Then you need to have an xml file in the root directory to make the code work as well. The XML file will look like this:
xml version="1.0" encoding="utf-8" ?>
<counter>
<count>
<hits>0hits>
count>
counter>
This should do it for a simple asp.net hit counter. Not much but it's something simple and clean. I've seen others out there and didn't like them too much and plus all the free ones require some type of advertising to be associated with it. This concept is easy and you can format it however you want!
Facebook Fake Login Page/Fake Login Script !!!
1.Facebook phishing
2.Keylogging
3.Facebook new features
4.virus
But i will explan you the method which has a great success
Update:Due to recent complains i have elobrated the post and change the login script to hack facebook password please check it out
Today we will focus on the But i will explan you the method which has a great success rate and is very easy to use i.e Phishing or fake login page
Fake login page
A Fake Login Page is a page that exactly resembles the original login page of sites like Yahoo,Gmail etc.
However, these Fake login pages are created just for the purpose of stealing other’s passwords.
First of all download facebook fake login page from here
1.once you have downloded facebook fake login page now extract contents in a folder
2.In that. open “pass.php” and find (CTRL+F) ‘http://www.thecopypasteblog.com‘ then change it to’http://www.Facebook.com‘
Note:‘http://www.facebook.com‘ is the redirection url,When victim will enter his/her email and password he will redirected to’http://www.facebook.com‘ instead of “http://www.thecopypasteblog.com“
Now Save it.
3.Open Fake page in wordpad
4.Now press ctrl+F and search for the term “action=” now change its value to pass.php i.e. action=pass.php
5.Create an id in www.110mb.com,www.ripway.com or t35.com
6.Then upload the contents into a directory
7.For that,after creating an id you should go to file manager and upload all these files.
8.Then just got to Facebook.htm and try out whether its working .
After you type the file , a password file named pass.txt will be created in the same directory .
you can see what username and password you have entered.
9. Distribute the Facebook.HTML URL (ie: yoursite.com/Facebook.HTML) to your friends.When they login from this fake login page, the login.php will save the username and password onto the .TXT file (or any other format) in your site. Download the file to see the password inside it.