Permalink
Browse files

Personal DBMS Site

  • Loading branch information...
0 parents commit 341520979e163befe526db6e329ac645408049c6 @rShetty committed Nov 19, 2011
Showing with 3,175 additions and 0 deletions.
  1. BIN 1.JPG
  2. BIN 11.jpg
  3. BIN 111.JPG
  4. BIN Mp.odp
  5. +54 −0 add.asm
  6. +30 −0 bas.php
  7. BIN basic_info.MYD
  8. BIN basic_info.MYI
  9. BIN basic_info.frm
  10. +22 −0 check.php
  11. +31 −0 cont.php
  12. BIN contact_info.MYD
  13. BIN contact_info.MYI
  14. BIN contact_info.frm
  15. +29 −0 d1.php
  16. +29 −0 d2.php
  17. +29 −0 d3.php
  18. +29 −0 d4.php
  19. +29 −0 d5.php
  20. +29 −0 d6.php
  21. +29 −0 d7.php
  22. +2 −0 db.opt
  23. +24 −0 de1.php
  24. +24 −0 de2.php
  25. +24 −0 de3.php
  26. +24 −0 de4.php
  27. +25 −0 de5.php
  28. +25 −0 de6.php
  29. +25 −0 de7.php
  30. +34 −0 direct_login.php
  31. +37 −0 direct_login1.php
  32. +12 −0 dis.php
  33. +26 −0 dis1.php
  34. +26 −0 dis2.php
  35. +26 −0 dis3.php
  36. +26 −0 dis4.php
  37. +26 −0 dis5.php
  38. +26 −0 dis6.php
  39. +26 −0 dis7.php
  40. +66 −0 disp3.asm
  41. +26 −0 display.php
  42. +30 −0 edu.php
  43. BIN education_work_info.MYD
  44. BIN education_work_info.MYI
  45. BIN education_work_info.frm
  46. +18 −0 i1.php
  47. +35 −0 i2.php
  48. +33 −0 i3.php
  49. +14 −0 i3v.php
  50. +20 −0 i4.php
  51. +29 −0 i5.php
  52. +7 −0 i6.php
  53. +7 −0 i7.php
  54. +1 −0 index.html
  55. +11 −0 index.php
  56. +12 −0 index.php.txt
  57. 0 ins2tab.php
  58. +29 −0 lik.php
  59. BIN likes_interests.MYD
  60. BIN likes_interests.MYI
  61. BIN likes_interests.frm
  62. +26 −0 login.php
  63. +29 −0 login1.php
  64. +13 −0 loginproc.php
  65. +6 −0 loginproc.php.txt
  66. +12 −0 logout.php
  67. +5 −0 logout.php.txt
  68. +33 −0 m1.php
  69. +43 −0 m10.php
  70. +49 −0 m100.php
  71. +33 −0 m2.php
  72. +61 −0 m20.php
  73. +93 −0 m200.php
  74. +33 −0 m3.php
  75. +55 −0 m30.php
  76. +76 −0 m300.php
  77. +33 −0 m4.php
  78. +59 −0 m40.php
  79. +83 −0 m400.php
  80. +33 −0 m5.php
  81. +47 −0 m50.php
  82. +54 −0 m500.php
  83. BIN me.MYD
  84. BIN me.MYI
  85. BIN me.frm
  86. +30 −0 me1.php
  87. BIN my_friends.MYD
  88. BIN my_friends.MYI
  89. BIN my_friends.frm
  90. BIN my_messages.MYD
  91. BIN my_messages.MYI
  92. BIN my_messages.frm
  93. +53 −0 p1.php
  94. +82 −0 p11.asm
  95. +95 −0 p2.php
  96. +81 −0 p22.asm
  97. +86 −0 p3.php
  98. +80 −0 p3_Temp.php
  99. +57 −0 p4.php
  100. +78 −0 p5.php
  101. +21 −0 p6.php
  102. +21 −0 p7.php
  103. +18 −0 page1.php
  104. BIN php.doc
  105. +21 −0 process1.php
  106. +29 −0 r1.php
  107. +30 −0 r10.php
  108. +35 −0 r2.php
  109. +30 −0 r20.php
  110. +34 −0 r3.php
  111. +30 −0 r30.php
  112. +33 −0 r4.php
  113. +30 −0 r40.php
  114. +30 −0 r5.php
  115. +30 −0 r50.php
  116. +33 −0 ret1.php
  117. +30 −0 ret10.php
  118. +17 −0 securedpage.php
  119. +16 −0 securedpage.php.txt
  120. +17 −0 securedpage_Temp.php
  121. +36 −0 signup.php
BIN 1.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 11.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN 111.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN Mp.odp
Binary file not shown.
54 add.asm
@@ -0,0 +1,54 @@
+.model small
+.data
+res db 11 dup (48)
+ans db 11 dup (48)
+.code
+extrn inum:byte
+extrn inum2:byte
+public res,add1
+extrn display3:far
+
+add1 proc far
+xor ax,ax
+mov si,9
+mov di, 0
+mov cx,11
+
+l1:mov al,byte ptr[inum+si]
+mov bl,byte ptr[inum2+si]
+add al, bl
+sub al, 60H
+mov dl, 10
+div dl
+add ah, 30H
+add byte ptr[ans+di], ah
+inc di
+cmp al, 01
+jne next
+inc byte ptr[ans+di]
+next: xor ax, ax
+dec si
+cmp si, 0
+jge l1
+cmp al, 01
+jne cont
+add byte ptr[ans+di], 61H
+
+
+cont: mov cx, 10
+mov si, 0
+mov di, 10
+rev: mov al, byte ptr[ans+si]
+mov byte ptr[res+si], al
+inc si
+dec di
+loop rev
+
+cd1:call display3
+ret
+add1 endp
+
+end
+
+
+
30 bas.php
@@ -0,0 +1,30 @@
+<HTML>
+<HEAD>
+ <TITLE>Basic Info</TITLE>
+</HEAD>
+<BODY background="1.jpg" bgcolor=333333>
+<p align="center"><font color="#800000"><font size="6">Basic Information<br><br></font>
+<table>
+<tr>
+ <td><a href="i2.php"><font size="5"><font color="red">Insert</a><br><td>
+ <tr>
+ <tr>
+<td><a href="d2.php"><font size="5"><font color="red">Delete</a><br><td>
+ <tr>
+ <tr>
+<td><a href="d2.php"><font size="5"><font color="red">Display</a><br><td>
+ <tr>
+ <tr>
+<td><a href="m2.php"><font size="5"><font color="red">Modify</a><br><td>
+ <tr>
+ <tr>
+<td><a href="r20.php"><font size="5"><font color="red">Retrive</a><br><td>
+ <tr>
+ <tr>
+ <tr>
+ <table>
+<form action="page1.php" method="POST">
+ <input type="submit" value="Back">
+ </form>
+</BODY>
+</HTML>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,22 @@
+<?php
+
+$email_id=$_POST ['email_id'];
+
+@mysql_connect(localhost, "root","" ) or die("Cannot Connect");
+@mysql_select_db(openspace) or die("Unable to query database");
+
+
+if(!filter_var("$email_id", FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=>"/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9]+.[A-Za-z]{2,4}$/"))))
+ {
+echo " email is invalid";
+
+}
+else
+ {
+ $query="insert into contact_info(email_id) values ('$email_id')";
+ @mysql_query($query) or die("This Operation Cannot be performed");
+echo "Record inserted.";
+}
+
+mysql_close();
+?>
@@ -0,0 +1,31 @@
+<HTML>
+<HEAD>
+ <TITLE>CONTACTS</TITLE>
+</HEAD>
+<BODY background="1.jpg" bgcolor=333333>
+<p align="center"><font color="#800000"><font size="6">Contact Information<br><br></font>
+<table>
+<tr>
+ <td> <a href="i3.php"><font color="red"><font size="5">Insert</a><br><td>
+<tr>
+<tr>
+<td><a href="d3.php"><font color="red"><font size="5">Delete</a><br><td>
+<tr>
+<tr>
+<td><a href="dis3.php"><font color="red"><font size="5">Display</a><br><td>
+<tr>
+<tr>
+<td><a href="m4.php"><font color="red"><font size="5">Modify</a><br><td>
+<tr>
+<tr>
+<td><a href="r30.php"><font color="red"><font size="5">Retrive</a><br><td>
+<tr>
+<tr>
+<tr>
+<tr>
+<table>
+<form action="page1.php" method="POST">
+ <input type="submit" value="Back">
+ </form>
+</BODY>
+</HTML>
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 d1.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT my_id FROM me";
+$acquireValues = mysql_query($query);
+echo '<form action="de1.php" method="POST" >
+ <select name="my_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
29 d2.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT b_id FROM basic_info";
+$acquireValues = mysql_query($query);
+echo '<form action="de2.php" method="POST" >
+ <select name="b_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
29 d3.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT c_id FROM contact_info";
+$acquireValues = mysql_query($query);
+echo '<form action="de3.php" method="POST" >
+ <select name="c_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
29 d4.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT e_id FROM education_work_info";
+$acquireValues = mysql_query($query);
+echo '<form action="de4.php" method="POST" >
+ <select name="e_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
29 d5.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT l_id FROM likes_interests";
+$acquireValues = mysql_query($query);
+echo '<form action="de5.php" method="POST" >
+ <select name="l_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
29 d6.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT my_id,f_id FROM my_friends";
+$acquireValues = mysql_query($query);
+echo '<form action="de6.php" method="POST" >
+ <select name="my_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
29 d7.php
@@ -0,0 +1,29 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+ $con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+
+mysql_select_db("openspace", $con);
+
+$query = "SELECT my_id FROM my_messages";
+$acquireValues = mysql_query($query);
+echo '<form action="de7.php" method="POST" >
+ <select name="my_id" size="1">';
+ while($values = mysql_fetch_array($acquireValues))
+ {
+ echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
+ }
+echo '</select>
+ <input type="Submit" value="submit">
+ </form>'
+
+?>
+</BODY>
+</HTML>
2 db.opt
@@ -0,0 +1,2 @@
+default-character-set=latin1
+default-collation=latin1_swedish_ci
24 de1.php
@@ -0,0 +1,24 @@
+<HTML>
+<HEAD>
+ <TITLE>New Document</TITLE>
+</HEAD>
+<BODY>
+<?php
+$con = mysql_connect("localhost","root","");
+if (!$con)
+ {
+ die('Could not connect: ' . mysql_error());
+ }
+ mysql_select_db("openspace", $con);
+ $usn = $_POST['my_id'];
+
+ $query = "DELETE from `me` WHERE my_id='$usn'";
+ if (!mysql_query($query,$con))
+ {
+ die('Error: ' . mysql_error());
+ }
+ echo "ONE record deleted";
+
+?>
+</BODY>
+</HTML>
Oops, something went wrong.

0 comments on commit 3415209

Please sign in to comment.