diff --git a/selling/asd.jpg b/selling/asd.jpg new file mode 100644 index 0000000..0a34af8 Binary files /dev/null and b/selling/asd.jpg differ diff --git a/selling/asdw.jpg b/selling/asdw.jpg new file mode 100644 index 0000000..70fa6c0 Binary files /dev/null and b/selling/asdw.jpg differ diff --git a/selling/blue.jpg b/selling/blue.jpg new file mode 100644 index 0000000..1e3ce13 Binary files /dev/null and b/selling/blue.jpg differ diff --git a/selling/dark.jpg b/selling/dark.jpg new file mode 100644 index 0000000..4c3a099 Binary files /dev/null and b/selling/dark.jpg differ diff --git a/selling/light.jpg b/selling/light.jpg new file mode 100644 index 0000000..e1a7ddb Binary files /dev/null and b/selling/light.jpg differ diff --git a/selling/redirect-sell.php b/selling/redirect-sell.php index be55c13..e109a93 100644 --- a/selling/redirect-sell.php +++ b/selling/redirect-sell.php @@ -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 @@ -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) diff --git a/selling/sellform.html b/selling/sellform.html index e8e8fdf..4d8cad5 100644 --- a/selling/sellform.html +++ b/selling/sellform.html @@ -1,12 +1,104 @@ -
| What are you selling? | ++ |
|---|---|
| Description: | ++ |
| How much is this? | ++ |
| Contact no: | ++ |
| Upload photo: | ++ |