Pages

Thursday, 26 February 2015

How to insert data in database with PHP MySQL

After your table and database created you can take action for storing the data in database. Insert into statement is used for creating new record in database with PHP Script. In this command we can insert the data in database at run time. Here are some syntax rules to follow.
  • The SQL Query must be quoted in PHP.
  • Numeric values must not allow.
  • String values inside the SQL query must be quoted.
  • The word NULL must not be quoted.
                                             

Syntax: Insert into table_name (colume1, colume2, colume3) VALUES (value1, value2, value3);
There are two methods for defining insert into statement.
First method: There is no column in database where data store.
Syntax: Insert into table_name  VALUES (value1, value2, value3);
Second method: There are both column and values available in database.
Syntax: Insert into table_name (colume1, colume2, colume3) VALUES (value1, value2, value3);

Monday, 19 January 2015

how create a glow glass button in photoshope

1.open the photoshop and click the new  and set the height 300px  and width 400px. such as

2. Set the background color black and draw the rectangle with 10px radius .such as


3.Select the layer menu the click the layer style .and click the drop shadow and set the properties







Thursday, 15 January 2015

how create a glow button in photoshop.

1.Open the Photoshop.and click the new in file menu  .and insert the height and width such as.

2.Insert the background color Black Such as #000000..
3.Draw the circle .such as



3.Click the Layer Menu and select the layer style .and click the inner glow.  such as


Wednesday, 14 January 2015

How create a Form in HTML

<html>
<head>
<title>This is the Form Example</title>
</head>
<body>
<form method= post action=process.html>
 Enter the Student Name:
<input type ="text" size=20 name="sname"/> <br/>
Enter the Student Address:
<textarea name="saddress" cols="10" rows="15"></textarea><br/>
 Enter the Password:
<input type ="password" size=20 name="spass"> <br/>
 Enter the Student Hobbies: cricket
<input type ="checkbox"  name="shobbies" checked="checked">
badminton
<input type ="checkbox"  name="shobbies" checked="checked"><br/>

Select  Student Gender:
Male <input type="radio" value="male" checked="checked" />
Female<input type="radio" value="female" checked="unchecked" />
 </from>
</body>
</html>

Thursday, 18 December 2014

call by value and call by reference



Call by Value      In  c  language by default  the arguments are passed to the function by value. It means  the actual arguments copy  their value into the formal arguments . In  call by value we can pass  the value  .if any change is  done into the formal arguments  it doesn't  affect the actual arguments because both  the arguments use the different memory location .

Program
#include<stdio.h>
#include <conio.h>
void  show ( int    a);
void main ()

{
Int x;
clrscr() ;
printf ( “enter the value “);
scanf(“%d”,& x);

show (x);
printf( “\n now value of x =%d” , x);
getch();
}
Void show ( int a )
{
a= a+1;
printf( “\n the value of a =%d”, a);
}

Monday, 15 December 2014

write a first programe in php

Create a  PHP Program and run in WAMP



1.open the dream weaver..and select the PHP.


2   Write the program in php such as :---

<?php 
echo "helloooo world this is my first program in php ";
echo "you can write it";
?>

3.Save the program such as hello.php in c:\Wamp\www\
4  Run the program it:
 5. Select the Localhost  and open the file 

Saturday, 13 December 2014

Write a First Programe in C

#include<stdio.h>
 int main()

 {

  printf(“Hello World\n”);

  return 0;

 }

Save the program with .c Extension ..such as abc.c

  

#include<stdio.h>

With this line of code we include a file called stdio.h. (Standard Input/Output header file). This file lets us use certain commands for input or output which we can use in our program. (Look at it as lines of code commands) that have been written for us by someone else). For instance it has commands for input like reading from the keyboard and output commands like printing things on the screen.