Hi,
As the title said, i’m trying to update an SQL Server DB with php. From my code below, you can see that i call once a stored proc to get information who will be in a table. One of the row allow me (supposed to be)(the last row who is an input), to change an other one (row name GL). But with the button save, it seems like nothing change at all. I tried to make some log with console and i can see test1 and test2. So it seems like it can go throught but doesnt ajust anything. I really don’t know anymore and i really need your help. Any ideas or help will be really really appreciate. More on that, i’m not sure if i do it well about sql injection…
[code]<?php if(isset($_POST[“test”]))
{
$NewValue = $_POST[“noGL” . $_POST[“TLZno”]];
$TLZ = $_POST[“TLZ”];?>
<?php $sql1 = "UpdateGL @CIE ='RAL', @TLZ='$TLZ', @NOGL='$NewValue'";?>
<button class="btn btn-success btn-sm dropdown-toggle save" name='submit' id='submit' type="submit" value="Enregistrer">
<i class="fa fa-floppy-o fa-lg" aria-hidden="true"> Enregistrer</i>
</button>
Liste des numéros de GL
# TLZ | Description | D/C | # GL | Nouveau # GL |
---|