Jump to content

Parse Error In Hyperlink


HowdeeDoodee

Recommended Posts

I am getting a parse error in the hyperlink line. Can anyone help? Thank you in advance for any replies.

 

<?php
$ref[0] = "gen 1:12";
$ref[1] = "exo 2:31";
foreach($ref as $value){
<a href="www.find.net/CP/Search/rsearch.php?submit=true&searchtype=All+Words&search=&wholeword=Whole+words+only.&table_display=true&lookup=.$value."\">".$value."</a>
};
?>

Link to comment
https://forums.phpfreaks.com/topic/60244-parse-error-in-hyperlink/
Share on other sites

<?php
$ref[0] = "gen 1:12";
$ref[1] = "exo 2:31";
foreach($ref as $value){
echo '<a href="www.find.net/CP/Search/rsearch.php?submit=true&searchtype=All+Words&search=&wholeword=Whole+words+only.&table_display=true&lookup='.$value.'">'.$value.'</a>';
};
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.