while($row=mysqli_fetch_assoc($result))
{
echo "`<tr>`<tr>";
echo "<td><a href="viewproject.php?q=$row['pid']">"$row['pname']"</a></td>";
}
I tried echoing $row['pid']
in viewproject.php
page using $_GET['q']
.
However the above code generates the following error:
Parse error: syntax error, unexpected 'viewproject' (T_STRING), expecting ',' or ';'