Thursday, 31 July 2014
Tcs-job
http://todayswalkinjobs.blogspot.in/2014/07/tcs-off-campus-drive-for-freshers-on.html
TCS Off-campus Drive for Freshers on 4th to 8th August 2014.
http://todayswalkinjobs.blogspot.in/2014/07/tcs-off-campus-drive-for-freshers-on.html
Mphasis HP Company Walkin drive for Freshers on 31 July 2014
http://todayswalkinjobs.blogspot.in/2014/07/mphasis-hp-company-walkin-drive-for.html
Robert Bosch Walkin Drive For Freshers/Exp on 2nd August 2014
http://todayswalkinjobs.blogspot.in/2014/07/robert-bosch-walkin-drive-for.html
IBM Off-campus Drive for Freshers on 12th August 2014...
http://todayswalkinjobs.blogspot.in/2014/07/ibm-off-campus-drive-for-freshers-on_29.html
HCL Walkin Drive For Freshers/Exp on 31st July 2014
http://todayswalkinjobs.blogspot.in/2014/07/hcl-walkin-drive-for-freshersexp-on.html
For More Latest Jobs >>>>>>>> goo.gl/oKzjHq
For More Off-campus Jobs >>>>> goo.gl/wkxY0o
For More Walkins Jobs >>>>>> goo.gl/dblJu2
Registration_code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php
include('connection.php');
?>
<body>
<?php
if(isset($_POST['btnser']))
{
$id=$_POST['txtid'];
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
// $sql="select * from reg where id='$id'" ;
echo $sql="select * from reg where id='$id' ";
$exc=mysql_query($sql);
while($row=mysql_fetch_array($exc))
{
echo $_id=$row['id'];
echo $_fname=$row['name'];
echo $_sname=$row['sname'];
echo $_lname=$row['lname'];
echo $_pno=$row['phone'];
echo $_sub=explode(",",$row['sub']);
}
}
?>
<form id="form1" name="form1" method="post" action="">
<table width="279" border="1">
<tr>
<td colspan="2"><div align="center">Registration</div></td>
</tr>
<tr>
<td>Id</td>
<td><label>
<input type="text" name="txtid" id="txtid" value="<?php echo $_id; ?>" />
</label></td>
</tr>
<tr>
<td width="98">Name</td>
<td width="165"><label>
<input type="text" name="txtname" id="txtname" value="<?php echo $_fname; ?>" />
</label></td>
</tr>
<tr>
<td>Middle Name</td>
<td><label>
<input type="text" name="txtmname" id="txtmname" value="<?php echo $_sname; ?>" />
</label></td>
</tr>
<tr>
<td>Last Name</td>
<td><label>
<input type="text" name="txtlname" id="txtlname" value="<?php echo $_lname; ?>" />
</label></td>
</tr>
<tr>
<td>Phone No</td>
<td><label>
<input type="text" name="txtpno" id="txtpno" value="<?php echo $_pno; ?>" />
</label></td>
</tr>
<tr>
<td>Favirate Subject</td>
<td><label>
<input type="checkbox" name="chklang[]" id="c1" value="PHP" <?php if(in_array("PHP",$_sub)) { ?> checked="checked" <?php } ?> />PHP
</label>
<label>
<input type="checkbox" name="chklang[]" id="c1" value="ASP.NET" <?php if(in_array("ASP.NET",$_sub)){ ?> checked="checked" <?php } ?> />ASP.NET </label></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="btnins" id="btnins" value="insert" /></label>
<input type="submit" name="btnser" id="btnser" value="SEARCH" />
<input type="submit" name="btnupd" id="btnupd" value="Update" />
<input type="submit" name="btndel" id="btndel" value="Delete" />
</label></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['btnins']))
{
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
$sql="insert into reg(name,sname,lname,phone,sub) values('$fname','$sname','$lname','$pno','" . implode(',',$_POST['chklang']) ."')";
$exc=mysql_query($sql);
if($exc)
{
echo "<script>alert('Data submit')</script>";
}
}
?>
<?php
if(isset($_POST['btndel']))
{
$id=$_POST['txtid'];
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
$sql="delete from reg where id='$id' ";
$exc=mysql_query($sql);
if($exc)
{
}
}
?>
<?php
if(isset($_POST['btnupd']))
{
$id=$_POST['txtid'];
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
echo $sql="update reg set name='$fname',sname='$sname',lname='$lname',phone='$pno',sub='". implode(',',$_POST['chklang'])."' where id='$id' ";
$exc=mysql_query($sql) or die('not excute');
}
?>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php
include('connection.php');
?>
<body>
<?php
if(isset($_POST['btnser']))
{
$id=$_POST['txtid'];
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
// $sql="select * from reg where id='$id'" ;
echo $sql="select * from reg where id='$id' ";
$exc=mysql_query($sql);
while($row=mysql_fetch_array($exc))
{
echo $_id=$row['id'];
echo $_fname=$row['name'];
echo $_sname=$row['sname'];
echo $_lname=$row['lname'];
echo $_pno=$row['phone'];
echo $_sub=explode(",",$row['sub']);
}
}
?>
<form id="form1" name="form1" method="post" action="">
<table width="279" border="1">
<tr>
<td colspan="2"><div align="center">Registration</div></td>
</tr>
<tr>
<td>Id</td>
<td><label>
<input type="text" name="txtid" id="txtid" value="<?php echo $_id; ?>" />
</label></td>
</tr>
<tr>
<td width="98">Name</td>
<td width="165"><label>
<input type="text" name="txtname" id="txtname" value="<?php echo $_fname; ?>" />
</label></td>
</tr>
<tr>
<td>Middle Name</td>
<td><label>
<input type="text" name="txtmname" id="txtmname" value="<?php echo $_sname; ?>" />
</label></td>
</tr>
<tr>
<td>Last Name</td>
<td><label>
<input type="text" name="txtlname" id="txtlname" value="<?php echo $_lname; ?>" />
</label></td>
</tr>
<tr>
<td>Phone No</td>
<td><label>
<input type="text" name="txtpno" id="txtpno" value="<?php echo $_pno; ?>" />
</label></td>
</tr>
<tr>
<td>Favirate Subject</td>
<td><label>
<input type="checkbox" name="chklang[]" id="c1" value="PHP" <?php if(in_array("PHP",$_sub)) { ?> checked="checked" <?php } ?> />PHP
</label>
<label>
<input type="checkbox" name="chklang[]" id="c1" value="ASP.NET" <?php if(in_array("ASP.NET",$_sub)){ ?> checked="checked" <?php } ?> />ASP.NET </label></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="btnins" id="btnins" value="insert" /></label>
<input type="submit" name="btnser" id="btnser" value="SEARCH" />
<input type="submit" name="btnupd" id="btnupd" value="Update" />
<input type="submit" name="btndel" id="btndel" value="Delete" />
</label></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['btnins']))
{
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
$sql="insert into reg(name,sname,lname,phone,sub) values('$fname','$sname','$lname','$pno','" . implode(',',$_POST['chklang']) ."')";
$exc=mysql_query($sql);
if($exc)
{
echo "<script>alert('Data submit')</script>";
}
}
?>
<?php
if(isset($_POST['btndel']))
{
$id=$_POST['txtid'];
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
$sql="delete from reg where id='$id' ";
$exc=mysql_query($sql);
if($exc)
{
}
}
?>
<?php
if(isset($_POST['btnupd']))
{
$id=$_POST['txtid'];
$fname=$_POST['txtname'];
$sname=$_POST['txtmname'];
$lname=$_POST['txtlname'];
$pno=$_POST['txtpno'];
$sub=$_POST['chklang'];
echo $sql="update reg set name='$fname',sname='$sname',lname='$lname',phone='$pno',sub='". implode(',',$_POST['chklang'])."' where id='$id' ";
$exc=mysql_query($sql) or die('not excute');
}
?>
</body>
</html>
Login_code & login_desgin
//login_code
<?php
$con=mysql_connect('localhost','root'.'') or die('not');
$db=mysql_select_db('mitul')or die('not db');
if(isset($_POST['btnlogin']))
{
$uname=$_POST['txtuname'];
$upass=$_POST['txtupass'];
$sql="select * from login where uname='$uname' and upass='$upass'";
$res=mysql_query($sql) or die('not excut');
if($res)
{
echo "redirect";
}
}
?>
===============
login_desgin
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="login_code.php">
<table width="414" border="1">
<tr>
<td colspan="2"><div align="center">Admin Login</div></td>
</tr>
<tr>
<td width="177" >User Name</td>
<td width="221"><label>
<input type="text" name="txtuname" id="txtuname" />
</label></td>
</tr>
<tr>
<td>User password</td>
<td><label>
<input type="text" name="txtupass" id="txtupass" />
</label></td>
</tr>
<tr>
<td colspan="2"><label>
<div align="center">
<input type="submit" name="btnlogin" id="btnlogin" value="Login" />
</div>
</label></td>
</tr>
</table>
<div align="right"></div>
</form>
</body>
</html>
<?php
$con=mysql_connect('localhost','root'.'') or die('not');
$db=mysql_select_db('mitul')or die('not db');
if(isset($_POST['btnlogin']))
{
$uname=$_POST['txtuname'];
$upass=$_POST['txtupass'];
$sql="select * from login where uname='$uname' and upass='$upass'";
$res=mysql_query($sql) or die('not excut');
if($res)
{
echo "redirect";
}
}
?>
===============
login_desgin
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="login_code.php">
<table width="414" border="1">
<tr>
<td colspan="2"><div align="center">Admin Login</div></td>
</tr>
<tr>
<td width="177" >User Name</td>
<td width="221"><label>
<input type="text" name="txtuname" id="txtuname" />
</label></td>
</tr>
<tr>
<td>User password</td>
<td><label>
<input type="text" name="txtupass" id="txtupass" />
</label></td>
</tr>
<tr>
<td colspan="2"><label>
<div align="center">
<input type="submit" name="btnlogin" id="btnlogin" value="Login" />
</div>
</label></td>
</tr>
</table>
<div align="right"></div>
</form>
</body>
</html>
update
<?php
$con=mysqli_connect("example.com","peter","abc123","my_db");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,"UPDATE Persons SET Age=36
WHERE FirstName='Peter' AND LastName='Griffin'");
mysqli_close($con);
?>
$con=mysqli_connect("example.com","peter","abc123","my_db");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,"UPDATE Persons SET Age=36
WHERE FirstName='Peter' AND LastName='Griffin'");
mysqli_close($con);
?>
insert code in php
<?php
$con=mysql_connect('localhost','root','') or die('not suseesful');
$db=mysql_select_db('exam') or die('not database connect');
if($db)
{
echo "database connected";
}
echo '<br>';
$a='raja';
$b='raja';
//$sql="insert into login(uname,upass) values('$a','$b')";
// $sql="update login set uname='mitul',upass='123' where u_id='2'";
//echo $sql="delete from login where u_id='1'";
$sql="select *from login";
$exc=mysql_query($sql) or die('not delete');
echo "<table border='1'><tr><th>ID</th><th>user name</th><th>password</th></tr><tr>";
while($row=mysql_fetch_array($exc))
{
echo "<td>".$row['u_id']."</td>";
echo "<td>".$row['uname']."</td>";
echo "<td>".$row['upass']."</td></tr>";
}
?>
$con=mysql_connect('localhost','root','') or die('not suseesful');
$db=mysql_select_db('exam') or die('not database connect');
if($db)
{
echo "database connected";
}
echo '<br>';
$a='raja';
$b='raja';
//$sql="insert into login(uname,upass) values('$a','$b')";
// $sql="update login set uname='mitul',upass='123' where u_id='2'";
//echo $sql="delete from login where u_id='1'";
$sql="select *from login";
$exc=mysql_query($sql) or die('not delete');
echo "<table border='1'><tr><th>ID</th><th>user name</th><th>password</th></tr><tr>";
while($row=mysql_fetch_array($exc))
{
echo "<td>".$row['u_id']."</td>";
echo "<td>".$row['uname']."</td>";
echo "<td>".$row['upass']."</td></tr>";
}
?>
Subscribe to:
Posts (Atom)