Being a beginner in PHP, I have a table in a database which consists of 14 columns. I need to extract some of the columns through an 'href' link on another page. I am having a hard time trying to get the specific column ids for the specific column as I need the columns to be displayed as plain text separately on an html page.
So this is the fetch code to display columns 'A' and 'G' including two links in a table.
while($row=mysql_fetch_array($res))
{
echo "<tr>";
echo "<td>" . $row['A'] . "</td>";
echo "<td>" . $row['G'] . "</td>";
echo "<td><a href=\"Sequence.php?rowid=" . $row['N'] . "\">FASTA</a></td>";
echo "<td><a href=\"Fullentry.php?rowid=" . $row['A']. $row['B']. $row['C']. $row['D']. $row['E']. $row['G']. $row['H']. $row['I']. $row['J']. $row['K']. $row['L']. $row['M'] ."\">Full Entry</a></td>";
echo "</tr>";
}
I am facing problems to get the columns A to M separately on the next php page of FullEntry.php and I need the data from the columns as plain text. This is what I could come up with on FullEntry.php page.
$row = $_GET['rowid'];
<!--Here is where I need the multiple row ID's to get separate columnar data-->
echo $row;
?>
So How can use different id's for different columns from the original.php page to display results separately through the FullEntry.php page or If there can be any modifications with sql query as well. Help will be appreciated. Any help would be appreciated. Thank you in advance!