If you are displaying the contents of a database on a particular page, then definitely you are using a server side scripting like like ASP
or PHP
or some JavaScript
+ AJAX
. I am quite unclear about that. But for your question, I can tell you one thing that, if, suppose you are using PHP, then you may display the link as;
echo '<a href="yourpage.php?recipeid='.$recepeid.'">'.$recipiename.'</a>';
where $recipeid
is the variable carrying recipe id and $recipiename
is the name of your recipe. In your PHP file (yourpage.php
), you may catch this data like $_GET["recipeid"]
You may try a Google search for tutorials.
Use;
$strLink = '<a href="recipedisp.php?id='.$row['id'].'">'.$strName.'</a>';
echo "<li>".$strLink."</li>";
Don't use spaces.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…