0
I have tremendous doubt about how I could solve/create the solution. I could do it manually by creating a select on the side and changing the status of the race after Ubmit, but the idea is as follows: As I can create a condition, be it in the back-end/php that upon reaching the mentioned date change/fill the STATUS to "RACE MADE".
My bank exists the 2 fields below:
In the comic book:
date type: varchar;
status: varchar;
Html fields:
<div class="form-group col-md-3">
<label><b>1° - Data e Hora</b></label>
<input type="datetime-local" name="dt_corrida1" id="data_corrida"
class="form-control" value="<?php echo $row[0]['dt_corrida1']; ?>"
placeholder="Data Corrida">
</div>
<div class="form-group col-md-3">
<label><b>STATUS</b></label>
<input type="text" name="status" id="status" class="form-control"
value="<?php echo $row[0]['status']; ?>">
</div>
EDIT: Image of how it’s in the database. Type is not like datetime because I couldn’t bring the input information with type "datetime-local", only with varchar.
Information recorded in the BD:
INPUTS:
DATE RACE COMING FROM THE COMIC PULLING FROM Row.
<input type="datetime-local" name="dt_corrida1" id="data_corrida" class="form-control" value="<?php echo $row[0]['dt_corrida1']; ?>" placeholder="Data Corrida">
STATUS:
<input readonly type="text" name="status" id="status" class="form-control" value="">
EDIT IMAGE OF INPUTS AND STATUS - I changed the ids that was requested and js replaces as edited.
Thanks in advance!
Please avoid long discussions in the comments; your talk was moved to the chat
– Guilherme Nascimento