Advertising
- Stuff
- Wednesday, May 16th, 2012 at 12:48:22pm MDT
- <?php
- include('config.php');
- function addUser($username, $password, $rank, $email, $status, $company)
- {
- $query="INSERT INTO members (`username`, `password`, `rank`, `email`, `status`, `company`) VALUES ('$username', '$password', '$rank', '$email', '$status', '$company')";
- return $result;
- }
- function addApplication($username, $password, $email, $steamuser, $location, $age, $hasmic, $hasts, $kicked, $history, $expectations, $status)
- {
- $query="INSERT INTO applications (`username`, `password`, `email`, `susername`, `location`, `age`, `mic`, `ts`, `kicked`, `mmhistory`, `expectations`, `status`)
- VALUES('$username', '$password', '$email', '$steamuser', '$location', '$age', '$hasmic', '$hasts', '$kicked', '$history', '$expectations', '$status')";
- return $result;
- }
- function returnApplication
- function returnUserInfo($username)
- {
- $query = "SELECT * FROM members WHERE username='$username'";
- $row = $mysql_fetch_array($result);
- $return $row;
- }
- function returnUser($username, $rank, $status, $company)
- {
- if ($username)
- {
- $query = "SELECT * FROM members WHERE username='$username'";
- }
- else if ($rank)
- {
- $query = "SELECT * FROM members WHERE rank='$rank'";
- }
- else if ($status)
- {
- $query = "SELECT * FROM members WHERE status='$status'";
- }
- else if ($company)
- {
- $query = "SELECT * FROM members WHERE company='$company'";
- }
- return $row;
- }
- function returnUserList($username, $rank, $status, $company)
- {
- if ($username)
- {
- $query = "SELECT * FROM members WHERE username='$username'";
- }
- else if ($rank)
- {
- $query = "SELECT * FROM members WHERE rank='$rank'";
- }
- else if ($status)
- {
- $query = "SELECT * FROM members WHERE status='$status'";
- }
- else if ($company)
- {
- $query = "SELECT * FROM members WHERE company='$company'";
- }
- $listing[0]["count"] = $rowcount;
- $idx = 1;
- {
- $listing[$idx]["id"] = $row['id'];
- $listing[$idx]["username"] = $row['username'];
- $listing[$idx]["rank"] = $row['rank'];
- $listing[$idx]["status"] = $row['status'];
- $listing[$idx]["company"] = $row['company'];
- $idx++;
- }
- return $listing;
- }
- ?>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.