include::../description.adoc[]

== Noncompliant Code Example

----
// example of an empty password when connecting to a mysql database
$conn = new mysqli($servername, $username, "");
----

== Compliant Solution

----
// generate a secure password, set it to the username database, and store it in a environment variable for instance
$password = getenv('MYSQL_SECURE_PASSWORD');
// then connect to the database
$conn = new mysqli($servername, $username, $password);
----

include::../see.adoc[]

ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)

include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]
