i have a table tech sub with two attributes “tusername and sub_code”.
i get tusername from previous page using request.
and this page i have a form with subject 1, subject 2.
i want to add sub_code to one tusername.
how can i do that.
techsub.php
codes:
[php]<?php
include(“db.php”);
$tusername =$_REQUEST[‘tusername’];
@mysql_query(“INSERT INTO techsub
(sub_code, tusername)
VALUES (’$sub_code’,’$tusername’) where tusername=’$tusername’”);
?>
Subject Two:
Subject Three:
Subject Four:
<?php '?sub_code=$sub_code' ?> [/php]