mysql is not working on my site, how to fix it? [duplicate]
This question already has answers here: MySQL ERROR 1045 (28000): Access denied for user ‘bill’@’localhost’ (using password: YES) (45 answers) MySQL Error: : ‘Access denied for user ‘root’@’localhost’ [closed] (29 answers) ERROR 1698 (28000): Access denied for user ‘root’@’localhost’ (23 answers) ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES) (43 answers) Access […]
How to make this peace?
Here is the mistake
Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'mysql'@'localhost' (using password: YES) in C:OSPanelhomeSTALCRAFT_X_SPARTA.localphpindex.php:71 Stack trace: #0 C:OSPanelhomeSTALCRAFT_X_SPARTA.localphpindex.php(71): mysqli->__construct('localhost', 'mysql', Object(SensitiveParameterValue), 'sparta') #1 {main} thrown in C:OSPanelhomeSTALCRAFT_X_SPARTA.localphpindex.php on line 71
Here is the code
` <?php
$mysql = new mysqli(“localhost”, “mysql”, “mysql”, “sparta”);
Creating a form with php which is supposed to take data and send to database
The Form
with text and file input fields.
PHP problem with DateTime from MySql database
I m creating a PHP function. This function get data from MySql Database. This is the query:
Displaying images in the correct order using a MySQL query and a while loop
I’m trying to display three images one after the other, all the image data is stored in a data table.
I have a query that gets the data and then the results array displays the images.
MySQL PHP Increase more than 10 thousand ID, Can not add more data because limit 10000 [closed]
Closed 8 secs ago.
Php run 2 query
i am try to run 2 query
get array of rows with mysqli result
I need to get all the rows from result object. I’m trying to build a new array that will hold all rows.
How to fix “headers already sent”
Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocswebsitelogin_register.html:1) in C:xampphtdocslogin.php on line 30
Best way of learning PHP [closed]
Closed 11 secs ago.