hello guys i have this code
<form method="post" action="2ndscript.php">
<table border="0">
<tr><td>A:</td><td><input type="text" name="a" size="20<td>
<tr><td>B:</td><td><input type="text" name="b" size="20<td>
</table>
<p>
<br><input type="submit" name="submit" value="Submit"> </p>
</form>
<?
$a = $HTTP_POST_VARS["a"];
$b = $HTTP_POST_VARS["b"];
if (!$a || !$b) die("Mandatory information not entered. Please use back button of browser.");
mysql_connect("localhost", $dbname, $dbpasswd )
or die ("Unable to connect to server.");
mysql_select_db($database)
or die ("Unable to select database.");
$sql = "INSERT INTO Table ( bhost_tips) VALUES ('$a','$b') ";
$result = mysql_query($sql)
or die ("Unable to get results.");
echo "<b>Information entered</b>";
?>
my problem is i have table called bhost_tips in each row i have 3 fields tip_id title and tip
i need to insert data to title and tip via that form and when i change id to 2 i can insert in row 2 ana etc
hope u help me out ad fix it to me