Dec 22, 2021 14:12
I see, alright thanks a lot!
Dec 22, 2021 14:06
Oh I see, so if I didn't want the IDs to be sorted, would that part be removed?
Dec 22, 2021 13:59
Why is the orderBy needed in this case?
Dec 22, 2021 13:56
This part ORDER BY CASE "type" WHEN 'Diamond' THEN 0 WHEN 'Clay' THEN 1 ELSE 2 END, what's the 0 and 1 used for?
Dec 22, 2021 13:54
I see. TheImpaler said something about using the RANK() function for the ranking, any ideas on how that could be combined with this solution?
Dec 22, 2021 13:54
I see. I'm trying to understand the query: what exactly does the first row_number() do?
Dec 22, 2021 13:54
Thanks for the answer and the detailed explanation! Question: is it possible to not have to specify the diamond/clay? There are quite a lot of types, so manually adding them would be hard.
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Apr 4, 2020 19:42
sorry im still new to react so i dont know all the vocabulary :/
Apr 4, 2020 19:41
is it possible to incorporate a styles.design and styling stored in a variable?
Apr 4, 2020 19:41
I have a specific design in my styles const, which I'd like to use alongside a variable that defines the backgroundColor
Apr 4, 2020 19:40
hey there, I have a question about React styling
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
Mar 24, 2020 08:52
Hi there, I'm aiming to recreate the scrolling effect that's on this website: 56k.studiovoila.com. However, I'm not sure what this effect is even called, does anyone know?
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Apr 24, 2019 17:38
Hi again!
Is anyone good with Apache? I'm having very strange behaviors right now and extremely confused
Apr 24, 2019 15:59
oh..
Apr 24, 2019 15:55
Enjoy school!
Apr 24, 2019 15:53
Thanks for all the help though, time to submit a question >.>
Apr 24, 2019 15:49
I see, thanks for clarifying!
Apr 24, 2019 15:47
Also I'm really confused on why it says that it doesn't have permission to open stream: because the Apache user has gotten both write, execute and read permissions
Apr 24, 2019 15:46
Ah gotcha, not used to see /../ typed out along with the rest of the path
Apr 24, 2019 15:46
Yeah now it points to the right directory, but I'm still getting an error

failed to open stream: Permission denied in /Users/user/Desktop/project/assets/php/upload.php
Apr 24, 2019 15:43
Sorry
Apr 24, 2019 15:43
oh
Apr 24, 2019 15:43
$target_dir = DIR . "../uploads/";
Apr 24, 2019 15:42
So it looks like it's just combining the string with __ DIR __ and not actually going down a level
Apr 24, 2019 15:42
Okay so it's pointing to string(59) "/Users/user/Desktop/project/assets/php../uploads/"
Apr 24, 2019 15:42
xD
Apr 24, 2019 15:41
Yeah sorry about that xd
Apr 24, 2019 15:41
Oh sorry * was just for fixing the typo
Apr 24, 2019 15:41
Okay no I see the issue, it's essentially just directly pasting the "../uploads/" section into the __ DIR __
Apr 24, 2019 15:39
Failed to open stream: No such file or directory *
Apr 24, 2019 15:39
Now I'm getting ailed to open stream: No such file or directory
Apr 24, 2019 15:37
Yeah I've tried saying that the $target_dir = "../uploads/";
Apr 24, 2019 15:36
Okay so that's where I'm right now, and I assume I should just go down a step (../) if my file is in /Users/myuser/Desktop/project/assets/uploads/
Apr 24, 2019 15:36
Ohh
Apr 24, 2019 15:35
Okay wait so what does __ DIR __ stand for?
Apr 24, 2019 15:34
What does this mean though? Sorry, never worked with var_dump() before
Apr 24, 2019 15:34
Is what I got now
Apr 24, 2019 15:34
string(56) "/Users/myuser/Desktop/project/assets/php/uploads"
Apr 24, 2019 15:32
@user3655829 string(11) "DIR/uploads is what I got, I hope I understood you correctly.
Apr 24, 2019 15:29
@user3655829 I know where I am in my project file, but relative pathing doesn't seem to work. Getting the error that it couldn't find the location.
Apr 24, 2019 15:27
That's what I'm the most unsure about right now, whether relative paths work or if I need to specify something else.
Apr 24, 2019 15:27
@user3655829 So the path referencing is still the same for file uploads?
Apr 24, 2019 15:25
Never worked with file uploading before so a bit confused. :/
Apr 24, 2019 15:25
I'm just wondering if that's the right reference to location, because the file I'm writing in is located in /Users/myuser/Desktop/ProjectFile/assets/uploads, should I refer to all of that, or just use a relative path?
Apr 24, 2019 15:23
So essentially I'm only going to be uploading images, so I'm using $target_dir = "../uploads/"; to specify the location of the directory I want all uploaded images to be stored in.
Apr 24, 2019 15:22
I'm currently a bit stuck on how I should refer to my target folder, should I go from the current location I'm in the project folder right now, or just from the main project folder itself?
Apr 24, 2019 15:20
Hi there!
Does anyone have experience with file uploading via PHP's move_uploaded_file function?
 

[iOS][Android][ChaosOverFlow]

Join to become part of the community, not to simply ask questi...
Feb 22, 2019 19:40
Anyone around
 
Jan 9, 2019 19:27
Anyway I’ll keep on fighting and learning iOS development, thanks for the help! Have a great night. :)
Jan 9, 2019 19:27
True, sounded good tho lmao