Udit.docx

  • Uploaded by: dhiren
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Udit.docx as PDF for free.

More details

  • Words: 2,416
  • Pages: 47
VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

ADMIN SITE LOGIN PAGE


TYBCA (SEM: V)

Page 1 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL header("location:reg_disp.php"); $c=mysql_num_rows($res); if($c>0) { $_SESSION['user']=$_REQUEST['txtuname']; header("location:reg_disp.php"); } else $m="login NOT successfully"; } ?>

LOGIN PAGE





TYBCA (SEM: V)

Page 2 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL
USER NAME :
PASSWORD :
LOGOUT logout.php

TYBCA (SEM: V)

Page 3 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL CHANGE PASSWORD

chpass.php 0)

TYBCA (SEM: V)

Page 4 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL { if($_REQUEST['txtnpass']==$_REQUEST['txtcpass']) { $u="update login_master set login_possword='".$_REQUEST['txtnpass']."' where login_username like '".$_SESSION['user']."'"; mysql_query($u); $m="Password changed Successfully..!!.."; //header("location:login.php"); } else { $m="NEW PASSWORD AND CONFIRM PASSWORD DOES NOT MATCH"; } } else { $m="INCORRECT OLD PASSWORD"; } } ?>

TYBCA (SEM: V)

Page 5 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL if(isset($m)) echo $m; ?>

CHANGE PASSWORD

OLD PASSWORD :
NEW PASSWORD :
CONFIRM PASSWORD :


TYBCA (SEM: V)

Page 6 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL


TYBCA (SEM: V)

Page 7 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

CONTACT US CONNECT.PHP

INSERT

contacts_insert.php
TYBCA (SEM: V)

Page 8 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL if(isset($_REQUEST['btnsubmit'])) { $q="insert into contacts_mst set first_name='".$_REQUEST['txtfname']."', last_name='".$_REQUEST['txtlname']."', email='".$_REQUEST['txtemail']."', phone='".$_REQUEST['txtphone']."', message='".$_REQUEST['txtmsg']."'"; mysql_query($q); header("location:contacts_display.php"); } ?>

TYBCA (SEM: V)

Page 9 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL
First Name
Last Name
E Mail
Phone
Message


TYBCA (SEM: V)

Page 10 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL DISPLAY

contacts_delete.php
$q="delete from contacts_mst where con_id=".$_GET['id']; mysql_query($q); header("location:contacts_display.php"); ?> contacts_display.php
TYBCA (SEM: V)

Page 11 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL $q="select * from contacts_mst"; if(isset($_REQUEST['btnsearch'])) { $q="select * from contacts_mst where first_name like '%".$_REQUEST['txtsearch']."%' or last_name like '%".$_REQUEST['txtsearch']."%'"; } $res=mysql_query($q); $count=mysql_num_rows($res); ?>
TYBCA (SEM: V)

Page 12 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL 0) { while($row=mysql_fetch_object($res)) { ?> TYBCA (SEM: V)

Page 13 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

CONTACTS DETAIL

Search
CHANGE PASSWORD||LOGOUT
ID First Name Last Name E Mail Phone Message Action
con_id; ?> first_name; ?> last_name; ?> email; ?> phone; ?> message; ?> con_id; ?>"> con_id; ?>" onclick="return confirm('Are You Sure ?')">


EDIT Formatted: Font: 12 pt, Bold, Underline, Font color: Text 1 Formatted: Font: 12 pt, Bold, Underline, Font color: Text 1

contacts_edit.php
TYBCA (SEM: V)

Page 14 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL $s="select * from contacts_mst where con_id=".$_REQUEST['id']; $res=mysql_query($s); $row=mysql_fetch_object($res);

if(isset($_REQUEST['btnsubmit'])) { $q="update contacts_mst set first_name='".$_REQUEST['txtfname']."', last_name='".$_REQUEST['txtlname']."', email='".$_REQUEST['txtemail']."', phone='".$_REQUEST['txtphone']."', message='".$_REQUEST['txtmsg']."' where con_id=".$_REQUEST['id']; mysql_query($q); header("location:contacts_display.php"); } ?>



TYBCA (SEM: V)

Page 15 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL TYBCA (SEM: V)

Page 16 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL
First Name
Last Name
E Mail
Phone
Message


TYBCA (SEM: V)

Page 17 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

REGISTERATION INSERT

reg_ins.php
TYBCA (SEM: V)

Page 18 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL reg_img='".$_FILES['imgsfile']['name']."'

"; mysql_query($q);

MOVE_UPLOADED_FILE($_FILES['imgsfile']['tmp_name'],"images/".$_FILES['imgsfile']['name' ]); header("location:reg_disp.php"); } ?> welcome.. UDIT



TYBCA (SEM: V)

Page 19 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL





REG DETAILS ENTRY

Email
First Name
Last Name
User Name
Password
Image
TYBCA (SEM: V)

Page 20 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL


DISPLAY

reg_del.php reg_disp.php
TYBCA (SEM: V)

Page 21 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL include "scheck.php"; include "header.php"; include "connect.php"; $q="select * from reg_mst"; if(isset($_REQUEST['btnsearch'])) { $q="select * from reg_mst where reg_fname like '%".$_REQUEST['txtsearch']."%' or reg_lname like '%".$_REQUEST['txtsearch']."%' "; } $res=mysql_query($q); $count=mysql_num_rows($res); ?>
TYBCA (SEM: V)

Page 22 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL 0) { ?>

TYBCA (SEM: V)

Page 23 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL
} } else echo ""; ?>

REG DETAILS

CHANGE PASSWORD||LOGOUT
Email First Name Last Name User Name Password Image Action
reg_mail); ?> reg_fname); ?> reg_lname; ?> reg_uname; ?> reg_password; ?> reg_id; ?>"> reg_id; ?>" onclick="return confirm ('Are You Sure? ');">
NO ROWS FOUND


TYBCA (SEM: V)

Page 24 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL EDIT

reg_edit.php
Page 25 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL reg_mail='".$_REQUEST['txtemail']."', reg_fname='".$_REQUEST['txtfname']."', reg_lname='".$_REQUEST['txtlname']."', reg_uname='".$_REQUEST['txtuname']."', reg_password='".$_REQUEST['txtpass']."' where reg_id=".$_get['sid'];

} else { $q="update reg_mst set reg_mail='".$_REQUEST['txtemail']."', reg_fname='".$_REQUEST['txtfname']."', reg_lname='".$_REQUEST['txtlname']."', reg_uname='".$_REQUEST['txtuname']."', reg_password='".$_REQUEST['txtpass']."', reg_img='".$_FILES['imgsfile']['name']."' where reg_id=".$_get['sid'];

} mysql_query($q);

MOVE_UPLOADED_FILE($_FILES['imgsfile']['tmp_name'],"images/".$_FILES['imgsfile']['name' ]); header("location:reg_disp.php"); } ?> TYBCA (SEM: V)

Page 26 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL






TYBCA (SEM: V)

Page 27 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL



REG DETAILS ENTRY

Email
First Name
Last Name
User Name
Password
Image


TYBCA (SEM: V)

Page 28 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

WEB DEVELOPMENT INSERT

web_ins.php
Page 29 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL web_coustomer='".$_REQUEST['txtpass']."', web_img='".$_FILES['imgsfile']['name']."'

"; mysql_query($q);

MOVE_UPLOADED_FILE($_FILES['imgsfile']['tmp_name'],"images/".$_FILES['imgsfile']['name' ]); header("location:web_disp.php"); } ?> welcome..



TYBCA (SEM: V)

Page 30 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL





TYBCA (SEM: V)

Page 31 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

WEB DETAILS ENTRY

WEB SEO
ONLINE STORE
BLOG
MOBILE FRIENDLY ans in y/n
COUSTOMER NAME
Image


DISPLAY

web_del.php web_disp.php
TYBCA (SEM: V)

Page 32 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL //session_start(); include "scheck.php"; include "connect.php"; INCLUDE "header.php"; $q="select * from web_mst"; if(isset($_REQUEST['btnsearch'])) { $q="select * from web_mst where web_seo like '%".$_REQUEST['txtsearch']."%' or web_coustomer like '%".$_REQUEST['txtsearch']."%' "; }

$res=mysql_query($q); $count=mysql_num_rows($res);

?>
0) { ?>

TYBCA (SEM: V)

Page 34 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL
} } else echo ""; ?>

WEB DETAILS

TYBCA (SEM: V)

Page 33 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

CHANGE PASSWORD||LOGOUT
WEB SEO ONLINE STORE BLOG MOBILE FRIENDLY COUSTOMER NAME Image Action
web_seo); ?> web_onlinestore); ?> web_blog; ?> web_mobilefriendly; ?> web_coustomer; ?> web_id; ?>"> web_id; ?>" onclick="return confirm ('Are You Sure? ');">
NO ROWS FOUND


EDIT

TYBCA (SEM: V)

Page 35 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

web_edit.php
TYBCA (SEM: V)

Page 36 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL $q="update web_mst set web_seo='".$_REQUEST['txtemail']."', web_onlinestore='".$_REQUEST['txtfname']."', web_blog='".$_REQUEST['txtlname']."', web_mobilefriendly='".$_REQUEST['txtuname']."', web_coustomer='".$_REQUEST['txtpass']."' where web_id=".$_get['sid'];

} else { $q="update web_mst set web_seo='".$_REQUEST['txtemail']."', web_onlinestore='".$_REQUEST['txtfname']."', web_blog='".$_REQUEST['txtlname']."', web_mobilefriendly='".$_REQUEST['txtuname']."', web_coustomer='".$_REQUEST['txtpass']."', web_img='".$_FILES['imgsfile']['name']."' where web_id=".$_get['sid']; } mysql_query($q);

TYBCA (SEM: V)

Page 37 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

MOVE_UPLOADED_FILE($_FILES['imgsfile']['tmp_name'],"images/".$_FILES['imgsfile' ]['name']); header("location:web_disp.php"); } ?> welcome..





TYBCA (SEM: V)

Page 38 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL







TYBCA (SEM: V)

Page 39 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

WEB DETAILS ENTRY

WEB SEO web_seo); ?>">
ONLINE STORE
BLOG
MOBILE FRIENDLY ans in y/n
COUSTOMER NAME
Image


TYBCA (SEM: V)

Page 40 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

USER SITE DESIGN

TYBCA (SEM: V)

Page 41 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

TYBCA (SEM: V)

Page 42 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

TYBCA (SEM: V)

Page 43 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

TYBCA (SEM: V)

Page 44 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

TYBCA (SEM: V)

Page 45 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

TYBCA (SEM: V)

Page 46 of 47

VIDYABHARTI TRUST COLLEGE OF BBA & BCA. UMRAKH SUB: PHP MYSQL JOURNAL

TYBCA (SEM: V)

Page 47 of 47

More Documents from "dhiren"

Udit.docx
May 2020 2
Index Doc.docx
May 2020 5
Honeypots (4).ppt
May 2020 6
Aspjernal.docx
May 2020 2
Topic.docx
May 2020 1