79780735

Date: 2025-10-02 08:37:17
Score: 0.5
Natty:
Report link

In case your error handling is strict you might want to add a try construct around your mysqli_connect command:

try {
    $conn = new mysqli($server, $user, $pw, $db);
   /* do something ... */
} catch (mysqli_sql_exception $e) {
    echo "Connection failed: " . $e->getMessage();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2587656