I am getting crazy. I want to send data to my database on my db-webserver (php 7.2, phpMyAdmin):
$inputdata = mysqli_query($db, "INSERT INTO notice (text, priority, option1) VALUES ('$htext', '$hpriority', '$hoptions1')");
But data do not reach the database on my db-webserver , but everything is fine on my local MAMP - it works, on my localhost i can fill in data.
And I can get the data FROM my db-webserver (older data or manually put in data). So the connection works, too. But my error log on the webserver says:
PHP Warning: mysqli_connect(): (HY000/1045): Access denied for user 'user'@'localhost' (using password: YES) in /xx/xxx/public_html/notice/conn_web_notiz.php on line 3
which is on line 3:
$db = mysqli_connect("localhost", "user", "password", "name-of-database");
On StackOverflow I found some inputs like: cPanel (on my webserver) has problems with special characters for password. So I set a simple one. But: Why can I READ the table's content but not fill in??
And I must say: It worked fine, but all of a sudden it made troubles, which I could solve, but not the data input.