@@ -7,7 +7,7 @@ |
||
| 7 | 7 | mysql_connect($server, $username, $password) or die('Koneksi gagal'); |
| 8 | 8 | mysql_select_db($database) or die('Database tidak bisa dibuka'); |
| 9 | 9 | |
| 10 | -if (! function_exists('user_log')) { |
|
| 10 | +if (!function_exists('user_log')) { |
|
| 11 | 11 | function user_log($log) |
| 12 | 12 | { |
| 13 | 13 | $id_user = $_SESSION['userid']; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $r = mysql_fetch_array($login); |
| 23 | 23 | |
| 24 | 24 | // Apabila userid dan password ditemukan |
| 25 | -if ($find > 0) { |
|
| 25 | +if ($find>0) { |
|
| 26 | 26 | session_start(); |
| 27 | 27 | |
| 28 | 28 | $id_user = $r['id_user']; |