M
M
mim1mim2020-05-11 16:16:55
PHP
mim1mim, 2020-05-11 16:16:55

Need help fixing a bug?

When going to the page, it gives errors Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, resource given in Z:\home\test.ru\www\signup.php on line 4

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, resource given in Z:\home\test.ru\www\signup.php on line 5

warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, resource given in Z:\home\test.ru\www\signup.php on line 6

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, resource given in Z:\home\test.ru\www\signup.php on line 7

And after errors there are fields to fill
in help in solving
Here is the code: https:/ /pastebin.com/NVNkB8Wb

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2020-05-11
@mim1mim

He writes to you in English and white:
Warning: mysqli_real_escape_string () expects that the first parameter will be of the mysqli type, instead a resource is received.
You connect through mysql_ and then try to use mysqli_ functions. These are completely different feature sets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question