Skip to content

Commit bc3030e

Browse files
committed
Remove databse configuration, add PHPDoc
1 parent b1604b3 commit bc3030e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config.php
2+
.idea/

crud.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
2-
$host = '127.0.0.1';
3-
$user = 'root';
4-
$password = null;
5-
$database = 'php-benchmarks';
6-
2+
/**
3+
* @param string $message
4+
*/
75
function error_500($message)
86
{
97
header('HTTP/1.1 500 Internal Server Error');
108
exit($message);
119
}
1210

11+
/**
12+
* @param mysqli $mysqli
13+
* @param int $line
14+
*/
1315
function show_mysqli_error(mysqli $mysqli, $line)
1416
{
1517
if ($mysqli->error) {

0 commit comments

Comments
 (0)