Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added selling/asd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added selling/asdw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added selling/blue.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added selling/dark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added selling/light.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions selling/redirect-sell.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
$image = $_POST['image'];

// Wait let me get the fucking ID of the current user ehehehe
$user = $_COOKIE['email'];
$user = $_COOKIE['username'];

$IDquer = " SELECT userID
FROM `users`
WHERE `email` LIKE '$user';";
WHERE `username` LIKE '$user';";
$IDresult = $conn -> query($IDquer);

//Let me check if there are errors ahehe
Expand All @@ -32,9 +32,9 @@

//Now lets fucking insert that product into the sexy database baby
$quer = "INSERT INTO `products`
(`itemName`, `itemDescription`, `itemPrice`, `itemBrand`, `userID`, `allowed`, `itemImage`)
(`itemName`, `itemDescription`, `itemPrice`, `itemBrand`, `userID`, `itemImage`)
VALUES
('$name','$desc',$prce,'$brnd','".$result['userID']."',0,'$image');";
('$name','$desc',$prce,'$brnd','".$result['userID']."','$image');";
$execute = $conn -> query($quer);
//Hell yeah! Lets check if dat shit inserted. Dank memes bruh ehehehe
if ($execute == true)
Expand Down
113 changes: 104 additions & 9 deletions selling/sellform.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,104 @@
<div id="datainput">
What are you selling?: <br/><input type="text" id ="name"> </br>
I would like to know what this item is :) <br/><input type="text" id="dsc" value=""> </br>
How much is this? <br/> <input type="text" id="price"> </br>
From what company is this? (brand) <input type="text" id="brand" value=""></br>
Image:<input type="text" id="image" value=""> </br>
<!DOCTYPE html>
<html>
<head>

<title>Sell</title>
<style>

body
{
color: black;
}

<button id="button" name = "button"> VALIDATE</button>
</div>
div
{
border-radius: 10px;
float: left;
margin-left: 90px;
margin-top: 50px;
border-style: solid;
border-width: 3px;
}
table
{
border-collapse: collapse;
}


</style>
</head>
<body background = "asd.jpg">

<div id="datainput" align="center">
<table height="400px">
<br>

<tr>
<th>What are you selling?</th>
<td><input type="text" id ="name"></td>
</tr>
<tr>
<th>Description:</th>
<td><textarea cols="50" rows="4" name="comment"></textarea></td>
</tr>
<tr>
<th>How much is this?</th>
<td><input type="text" id="price"></td>
</tr>
<tr>
<th>Contact no:</th>
<td><input type="text" id="contact" value=""></td>
</tr>

<tr>
<th>Upload photo:</th>
<td><input type="text" id="image" value=""> </br></td>
</tr>
</table>

<button id="button" name = "button">Sell!</button>
<br>
<br>
</div>

<div id="datainput" align="center">
<br>
<br>

-- insert pics here --

<br>
<br>
</div>

<marquee scrollamount = "20"> <!-- speed siya sa pics -->
<center><img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "blue.jpg" width = "22%"/> <!-- picture niya and size niya-->
<img src = "light.jpg" width = "22%"/></center></marquee>


<div id="feedback"></div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
Expand Down Expand Up @@ -46,4 +138,7 @@
}

});
</script>
</script>

</body>
</html>