diff --git a/batch_insert.php b/batch_insert.php
index 00dad1b..20867af 100644
--- a/batch_insert.php
+++ b/batch_insert.php
@@ -36,13 +36,13 @@ $user = explode(' ', $source2);
for($index=0; $index < count($user); $index++) {
$result = mysqli_query($conn, "SELECT * FROM `students_data` WHERE Student_ID='$user[$index]'");
if (mysqli_num_rows($result) < 1) {
- if (! mysqli_query($conn, "REPLACE INTO `students_data`(`Student_ID`, `Passport_Number`) VALUES('$user[$index]', '')" ) ) {
+ if (! mysqli_query($conn, "REPLACE INTO `students_data`(`Student_ID`, `Passport_Number`) VALUES('$user[$index]', '')" ) ) {
echo "SQL Error: " . $sql_stmt . "
" . mysqli_error($conn);
- } else {
- echo "
Student number $user[$index] added.
"; - } + } else { + echo "Student number $user[$index] added.
"; + } } else { - echo "Student number $user[$index] already exists.
"; + echo "Student number $user[$index] already exists.
"; } }