query($sql); if ($inputOption === "select") { $row = $rs->fetch_array(); $output = "Result Set: " . $row[0] . ", " . $row[1] . ", " . $row[2] . ", " . $row[3] . ", " . $row[4]; } else if ($rs === TRUE) { $output = "Result Set: Successfull transaction"; } else { $output = "Result Set: Transaction error: " . $sql . "
" . $con->error; }; } header("Location: ./index.php?message=$output"); // echo $output; ?>