I just want to use the id for getting description I might have many rows fetched so I am going to make onclick event but till now, why it doesnot work? where am I wrong? Thank you for your interest
<?php while( $row = mysql_fetch_array($res)) { ?>
<strong><?php echo $row["heading"]?></strong>
<br />
<script>
display(<?php echo $row["id"]?>);
</script>
<script>
function display(a)
{
<?php $temp = "select description from newsfeed where id="?>+a+<? ";";
header("location: index.php?msg = $temp ");?>
}
</script>