aboutsummaryrefslogtreecommitdiff
path: root/ajax/database/getuser.php
diff options
context:
space:
mode:
authorthirdid <thirdid@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-20 19:13:05 -0500
committerthirdid <thirdid@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-20 19:13:05 -0500
commit8347bdd445b646ea77c43228253ce9aefa6a8c88 (patch)
tree5c25e1bf8041fcd6c310789578f47c36ec22ee1c /ajax/database/getuser.php
parentbe071aeb7565e46c670a6d9486a1f1b8a06971ab (diff)
downloadbayonetcms-8347bdd445b646ea77c43228253ce9aefa6a8c88.tar.gz
Removed branches/Bayonet CMS v2/ajax
Accidental addition of code. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@382 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'ajax/database/getuser.php')
-rw-r--r--ajax/database/getuser.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/ajax/database/getuser.php b/ajax/database/getuser.php
deleted file mode 100644
index bf6e677..0000000
--- a/ajax/database/getuser.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-$q=$_GET["q"];
-
-$con = mysql_connect('localhost', 'peter', 'abc123');
-if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
-
-mysql_select_db("ajax_demo", $con);
-
-$sql="SELECT * FROM user WHERE id = '".$q."'";
-
-$result = mysql_query($sql);
-
-echo "<table border='1'>
-<tr>
-<th>Firstname</th>
-<th>Lastname</th>
-<th>Age</th>
-<th>Hometown</th>
-<th>Job</th>
-</tr>";
-
-while($row = mysql_fetch_array($result))
- {
- echo "<tr>";
- echo "<td>" . $row['FirstName'] . "</td>";
- echo "<td>" . $row['LastName'] . "</td>";
- echo "<td>" . $row['Age'] . "</td>";
- echo "<td>" . $row['Hometown'] . "</td>";
- echo "<td>" . $row['Job'] . "</td>";
- echo "</tr>";
- }
-echo "</table>";
-
-mysql_close($con);
-?> \ No newline at end of file