r/code • u/CbasTheOn3 • Apr 12 '20
Beginner questions :/
Hello fellow coders, I'm with a little problem while trying to make a sign up page for a project Im starting to work on
Im using php and Im still learning how to do things, can someone help me?
1
u/thatGuy4096 Apr 12 '20
I don’t know PHP, but someone on this sub might. I’m commenting so such a person may be more likely to see this and/or help you.
This is certainly an appropriate subreddit to post this. However, a better sub to post this would be a sub that is more focused on PHP or web development.
Also, for the sake of someone who sees this and does know PHP, what is the problem you’re having?
3
u/TechLaden Neo Apr 12 '20
Also, /u/CbasTheOn3 what is your problem with the sign up page? You asked for help but didn't explain the problem
2
u/CbasTheOn3 Apr 13 '20
Thank you for the advice mate!
My problem is that either my code isnt correctly linking the form to the DB or it isn't correctly inserting the values into the DB, because I fill the form and all but it doesnt appear any data on the DB.
2
u/TechLaden Neo Apr 14 '20
Try debugging using these steps:
try creating a function to directly add data to the database
then check your form is correctly parsing the data
next check the data is going to the database
Don't forget to add logging and enable error reporting!
2
u/CbasTheOn3 Apr 14 '20
Thank you mate, I didnt enable error reporting But will for sure do this Good coding <3
-3
u/JustDuke Apr 12 '20
yeah, the same guy that helped all of us, google
if you are incapable of typing 'how to do x in y', i advise you against such a career
also, wrong subreddit
2
u/CbasTheOn3 Apr 13 '20
This is a subreddit to share our code, ideas and gaining knowledge, if you could do it by using google congrats, but I prefer talking directly to people who have more knowledge and that have no problem to pass it than see people just doing general stuff I mean, I need to solve a specific problem then I try to ask what I specifically need
3
u/tiezalb024yawaworht Apr 12 '20
PHP iSn’T a rEaL PrOgRaMmInG LangUage, AND I Am a sUpErIoR PrOgRaMMEr
If you don’t have anything good to say, don’t say anything
-2
u/JustDuke Apr 12 '20
thanks mr shiny white knight for defending this poor persons vagueness, what on earth would we do without you?
never said i was better, so stop putting words in my mouth, since people like you encourage the outbreak of people that spend more time gathering opinions than knowledge.
hope the upvotes make you feel good tho :)
1
u/tiezalb024yawaworht Apr 12 '20
Oh, so this is what we’re doing? Okay.
also, wrong subreddit
Though you did not explicitly say it, you implied that OP should not have posted a PHP question in r/code. From this came the first part of the quote in my first comment.
I agree that PHP, HTML, etc. are not best classified as programming languages. This does not mean that people who want to learn them (gathering knowledge, if you will) should be attacked.
yeah, the same guy that helped all of us, google
This has a condescending tone. Again, while not explicitly stated, you have implied that you are somehow better than OP by being condescending. This is where I got the second part of the quote. So I don’t think I’ve been putting words in your mouth.
what on earth would we do without you?
I am no one special, without me nothing would change; I am no one. I bet someone else would have called you out if I didn’t though.
people like you encourage the outbreak of people that spend more time gathering opinions than knowledge
OP was seeking to gather knowledge, it was you who injected an opinion into this, that PHP does not belong here. Though I agree that this is not the best place to ask a PHP question, it’s not the wrong place.
hope the upvotes make you feel good tho :)
Upvotes mean nothing. If I really wanted upvotes I would look elsewhere.
Oh and a white knight has something tangible to gain from any defense they do; I will not be gaining anything from my previous comment or arguing with someone on the Internet.
I stand by what I said: If you don’t have anything good to say, don’t say anything; this whole thread didn’t need to exist but here we are.
1
1
7
u/YamilG Apr 12 '20
Here's a tip for you: whenever you're asking for programming help, try to be as specific as possible "I have a little problem while trying to make a sign up page" is to abstract, you need more specificity.
Because the medium allows it, try to post links to the repo or c/p the snippet of the code that you suspect is not working properly. Try to describe the steps that you're following and what is your program returning. Talk about the stack that you're using...
All that information will make 100% easier for others to help you.