hi,
i am having a form with some fields
and i had another php file which gets the posted data of that form
now i want to write this data (of that form) into one of my tables in one row
how can i do that???
i had used this code
==============CODE=======================================
<?
include (“connection.php”);
//printf(“Connection has been establisted….<br><br><br>”);
$cid=$_POST[‘cid’];
$code=$_POST[‘code’];
$name=$_POST[‘name’];
$query =”insert into vitamin VALUES (‘<? echo $cid?>’,'<?echo $code?>’,'<?echo $name?>’)”;
$result = mysql_query($query);
if($result)
echo “ROW INSERTED”;
?>
<h3>Insert Another Row</h3><br><a href =”insert.php”>Click Here</a>
=========================================================
what i am getting in the table is some junk values with some echo like values..
plz see this
thanks…
-ashish