R
R
Rundik2015-10-10 19:02:47
PHP
Rundik, 2015-10-10 19:02:47

What is wrong with php?

Everything can be seen in the screenshot.
39942ba6e66c4581bed63a801c2d1593.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2015-10-10
@Rundik

1) The screenshot does not show what line 36 is.
2) I can guess that this is global $connect
a) you cannot declare global inside the class description. the maximum can be declared in the constructor.
b) never use global! Read about dependency injection and use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question