Jump to content

Edit Transaction


erros

Recommended Posts

Form No. 1

trans.jpg

 

Form No.2

detail.jpg

 

hi all, i have a problem to make edit condition, the picture shows when user input the produk, they just fill in qty collumn and get total and point result.

 

and user save transaction and display like form no .2

 

and then my problem is, how to make edit condition, if user click the edit button in form no.2, and return display like form no.1 with data for each collumn. thanks.

Link to comment
https://forums.phpfreaks.com/topic/147879-edit-transaction/
Share on other sites

hello,

 

you need to make a new file,

 

open your db at the top, then set all your variables.

 

prefill the pages values with the correct details,

then have a update button which re-submits to the db and updates the details.

 

<?php 

 include 'opendb.php';
 $customernumber =  $_GET["customernumber"];


	$result = mysql_query("SELECT * FROM orders WHERE customernumber = " . $customernumber);

	while($row = mysql_fetch_array($result))
	  {
			  $connote =  $row['connote'];

             } ?>

<form name="form1" method="post" action="update.php?customernumber=<?php echo "$customernumber" ?>" >

    <input type="text" name="price" value="<?php echo "$price"; ?>" >

    <input type="submit" name="Submit" value="Update">
    
</form>

 

 

Cheers,

Link to comment
https://forums.phpfreaks.com/topic/147879-edit-transaction/#findComment-776158
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.