Hello all,
I have page that is displaying results from a mysql database.
In this page I have an edit link that enables the user to "edit" the data. Upon clicking this link they are taken to the original page where the data was input...
I am passing some parameters within the URL, such as the primary key, etc.
I am also passing a parameter of UPDATE which I am attempting to then run some sql to then populate the fields on the page that are in the database...
Below is a sample of the code, it seems to be right however is not working...
//update section
if ($process == "UPDATE")
{
$UpdateQueryRetrieve = mysql_query("SELECT * from log3 where runid = '$run_num'");
while ($UpdateData = mysql_fetch_array($UpdateQueryRetrieve))
{
$distance = $UpdateData[distance];
}
}
Here is the test pages links:
http://www.ndorfnz.com/log2.php
Click on the Edit Run, I am anticipating the code above would AT LEAST update the distance field...
Appreciate your insight!!!!