I created all the textfield by loop and when I click button of the textfield, I can post it to another page. But now I cannot retrieve value of the textfield. How can I retrieve the value of the loop textfield?
It is not easy to find a solution without having access to the database tables.
I did notice a coupe of errors which are revealed with the following error reporting:
<?php
declare(strict_types=1); // REMOVE IF NOT USING PHP7
error_reporting(-1); // maximum errors
ini_set('display_errors', '1'); //
// ERROR: 1
// mysql is deprecated, please use mysqli or PDO
// ERROR: 2
// wrong syntax for print_r(); - see Php Online Manual
// print_r("product: ", $gt);
// or use var_dump();
// ERROR: 3
// mysql table fields are CASE-SENSITIVE
/*
$sql = "
SELECT
ccode,
pdesc,
cost
FROM
product2
WHERE
ID='$E_1'
";
$query_editvehicle=mysqli_query( $sql )or die(mysql_error());
Does it only retrieve the last record, or do you only display the last record? In your code in post #1 you have a while() loop to retrieve the results from your query based on the ID, but you donβt display them inside the loop. Or is that just truncated for the forum?