At the moment, I am submitting two 'WS_ID' numbers in a text box with a space in between them. The SQL command that I have is able to update two results in the sql database but when there is only one 'WS_ID' submitted in the text box, nothing is updated. any help would be briliant. Many thanks.
if(isset($_GET["Update"]))
{ $DEP_TIME = $_GET["DEP_TIME"];
$ARR_TIME = $_GET["ARR_TIME"];
$TRAVEL_TIME = $_GET["TRAVEL_TIME"];
$HRS_WORKED = $_GET["HRS_WORKED"];
$INC_DEP_TIME = $_GET["INC_DEP_TIME"];
$INC_LAB_DAY = $_GET["INC_LAB_DAY"];
$LAB_DATE = $_GET["LAB_DATE"];
$WS_ID = $_GET["WS_ID"];
$WS_ID2 = explode(" ", $WS_ID);
$SQL = "UPDATE `elecsys`.`worksheet_labour` SET DEP_TIME = $DEP_TIME, ARR_TIME = $ARR_TIME, TRAVEL_TIME = $TRAVEL_TIME, HRS_WORKED = $HRS_WORKED WHERE WS_ID = $WS_ID2[0] OR WS_ID = $WS_ID2[1]";
$resultset2 = mysql_query($SQL);
}