[Help] 1 code make my site broke

DVerse

Member
Oct 8, 2016
53
6
I got another one. (see images)
When i put in a code it makes my site just white.
What did I overlook or forget?
 

Attachments

  • this code make site broken.png
    this code make site broken.png
    5.4 KB · Views: 13
  • with code.png
    with code.png
    9.5 KB · Views: 13
  • without code.png
    without code.png
    21.9 KB · Views: 13

JayC

Always Learning
Aug 8, 2013
5,493
1,398
It's directly related to your PHP script. Either that function doesn't exist, you have bad syntax or you are getting another php error . Turn error reporting ON.
 

DVerse

Member
Oct 8, 2016
53
6
It's directly related to your PHP script. Either that function doesn't exist, you have bad syntax or you are getting another php error . Turn error reporting ON.
so that means that i have to edit the class in my tpl folder or what u mean?
sry have very low knowledge about this what im doing
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
im doing it on my self because i want it to learn so im just looking for a good developer that can help me and teach me how to do things and fix my problems.
You have all of the internet at your disposal for learning. If you're going to take on a project for learning purposes, it should be a project that is not widely available. I'll tell you why -

Users are coming to your site and some of the users aren't very smart, and by that I mean they use the same email, password, username for everything. So what happens is you are over here trying to learn and you make a nice little form for staff applications that goes into your database. The problem is you learned how to get the data from point A to point B, but you failed to properly sanitize the data. You have now left your database open for SQL injections, and that includes them being able to breach your database to obtain information from your users. Now you have hundreds of records - even from people who don't play anymore - that have been retrieved and their passwords, emails, etc. are released.

You should hire a real developer who already has knowledge in this area and work with them to learn. Watch them, ask questions, and try to repeat it yourself later.

Back to being on-topic to your actual question, you can easily google how to turn error reporting on in php
 

Users who are viewing this thread

Top