i am extemly newbie and don’t know whether I should post my problem here or somewhere else, however…
i have following problem in one of my php-mysql application
header link through browser is,
"http://localhost/test/reply.php?id=852"
and query is as follow,
$name=$_POST['name']; //from the name form
$q_id=$_GET['id'];
$sql="INSERT INTO `test`.`reply`(`rid`,`tid`,`name`)VALUES(NULL,'$q_id','$name')";
$result=mysql_query($sql);
The application does not pass any value related to $q_id in database table, the table view is as follow, The query does not insert any value to tid column except default value. What should I do…
rid tid name
1 0 karam
3 0 drupal
4 0 Shuja-u-Rehman
The table specification is as follow,
Field Type Null Default Extra
rid int(11) No auto_increment
tid int(11) No
name varchar(25) No
I have tried every method, I know but in vain.
Please any body helps me….
Shuja