For a project, I'm trying to make an application where users can enter their values, but when I test it on localhost I keep getting this error: warning: mysqli_connect(): (HY000/ 3159): Disable transmission when using an insecure connection --require_secure_transport=ON. This is my php code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Is there a secure way to fix this error since the project must be released and from what I understand it is not safe to turn off secure_transport.
I tried using another external database, which resulted in another error, the connection was actively refused. This code does work because I tried running it on localhost and it does work
P粉9464374742023-12-21 17:42:37
You need to call [mysqli_real_connect][1] and pass in the $mysqli instance as a parameter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Then passed to mysqli_real_connect
1 2 3 4 5 6 7 |
|