![Page 1: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/1.jpg)
SEU On-line Sales System
Mark Davis
Senior BS in Computer Science
![Page 2: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/2.jpg)
Overview
Idea behind the SEU On-line Sales System What is my solution? How did I go about implementing my solution. Problems I ran into. Testing Possible enhancements and future ideas. Questions?
![Page 3: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/3.jpg)
Idea Behind the SEU On-line Sales System SEU lacking a unique On-Line Sales System.
Implementing a piece of software that caters to a small community of individuals.
Other universities…
![Page 4: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/4.jpg)
What is my Solution?
Create a web based application that mimics an online message board program.
This “ebay” type application will present a way for students to virtually communicate with each other and post items to be bought and sold.
![Page 5: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/5.jpg)
Implementing my Solution
Basic foundation Front end web application Back end database
Choosing a language Perl PHP ASP HTML
Choosing a database Microsoft Access MySQL
What I chose.. PHP, MySQL, & PHPmyAdmin
![Page 6: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/6.jpg)
Implementing my Solution
Design Applications needed
User Friendly
Simple
Maintainability
![Page 7: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/7.jpg)
Become a Member
![Page 8: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/8.jpg)
Connecting to and Insert in the DB Connecting to the DB
<?php
$sql = mysql_pconnect('db01.cs.stedwards.edu', 'mdavis3', 'weiohg913a');
mysql_select_db('mdavis3', $sql) or die (mysql_error());
?>
Inserting into the DB$sql = mysql_query("INSERT INTO MEMBERS (first_name, last_name, phone_number, email_address, user_name, password) VALUES ('$_POST[first_name]', '$_POST[last_name]', '$_POST[phone_number]', '$_POST[email_address]', '$_POST[user_name]', '".md5($_POST[password])."') ");if(!$sql){ echo "Error Inserting Your Information Into DB: ".mysql_error(sql); footer(); exit();}else {include 'html/success.html';}
![Page 9: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/9.jpg)
phpMyAdmin
![Page 10: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/10.jpg)
Error Handling for Input
![Page 11: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/11.jpg)
Login
![Page 12: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/12.jpg)
Login Codesession_start();$validate = mysql_query("SELECT * FROM MEMBERS WHERE user_name= '{$_POST['user_name']}' AND password = md5('{$_POST['password']}')"); if(mysql_num_rows($validate) == 1){ while($row = mysql_fetch_assoc($validate)){ $_SESSION['login'] = true; $_SESSION['first_name'] = $row['first_name']; $_SESSION['last_name'] = $row['last_name']; $_SESSION['email_address'] = $row['email_address']; $_SESSION['user_name'] = $row['user_name']; $_SESSION['password'] = $row['password'];
myheader("Login Success!"); include 'html/loginsuccess.html'; footer(); } } else { myheader("Login Failed!"); echo '<p align="center">Login Failed</p>'; echo '<p align="center">Check Username and Password for Case Sensitivity.'; footer(); }
![Page 13: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/13.jpg)
Posting Items
Design methods: What fields are needed?
How will these fields be used?
![Page 14: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/14.jpg)
Posting Items
![Page 15: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/15.jpg)
Viewing an Item
What will the user see?
How can an item be purchased?
How can an item be removed?
![Page 16: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/16.jpg)
Item View
![Page 17: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/17.jpg)
Item View
![Page 18: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/18.jpg)
Image Handing
![Page 19: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/19.jpg)
I Want To Purchase An Item
Email is sent to the seller email address.
Just wait!
![Page 20: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/20.jpg)
I Want To Remove My Item
Unique removal of items
Remove query mysql_query("DELETE FROM
ITEM WHERE item_name = '{$_POST['item_name']}'") or die(mysql_error());
![Page 21: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/21.jpg)
Problems I Ran Into
Uploading and displaying images
Starting and destroying sessions
Error handling for input forms
![Page 22: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/22.jpg)
Testing
Alpha tested modules as they were created
Beta testing took place within a group of friends. LOTS OF CONSTRUCTIVE CRITISISM! A FEW SCENARIOS NOT ACCOUNTED FOR A GENERAL FEEL FOR THE SOFTWARE
![Page 23: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/23.jpg)
Possible Enhancements and Future Ideas Display multiple images Implement time stamps for items. Develop a search tool for items. Get the software to the point where it could
be presented to the university for possible use.
![Page 24: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/24.jpg)
Conclusion
What was my problem?
Did I find a solution?
Am I satisfied with my solution?
What now?
![Page 25: SEU On-line Sales System Mark Davis Senior BS in Computer Science](https://reader030.vdocuments.mx/reader030/viewer/2022032606/56649e885503460f94b8c712/html5/thumbnails/25.jpg)
Questions?
This concludes my presentation