Forum Moderators: coopster
I am trying to turn a mysql search result into a link that i can sent to a php script.
Is this possible:
while($rowOne = mysql_fetch_array($content))
{
echo '<a href="searchmultiple.php?SearchTerm='.$rowOne['term'].'&FromLanguage='.$FromLanguage.'&SearchID='$rowOne['id'].'">'.$rowOne['term'].'</a>';
}
I get the following error:
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /Applications/MAMP/htdocs/eilv/search.php on line 36
Another thing that makes it easier (though I didn't cheat!) is a good editor. I use HomeSite, which supports multiple languages. For PHP, all the quoted stuff is green, functions blue, etc . . . really helps a lot if I see a whole block of what's supposed to be code in green.