ridiculous Posted October 12, 2006 Share Posted October 12, 2006 Hey guys. My script retrieves and displays the following table without incident. However, within that table I am trying to insert a button that carries row specificvariables to another page for processing. I believe there is a problem with the syntax in the line(s) highlighted. -------------------------------------------------------------------------------<code>echo " <td align=left> ".$row['date']." </td> <td align=center><b>".$row['title']." </b> </td> [color=green]<td align=center> <a href='get_job_details.php'?$date=".$row['date']." &$title=".$row['title']."&$location=".$row['location']."> <img src='flesh/detailsbutton.jpg' alt='Details'</a></td>[/color] <td align=center> ".$row['location']." </td>";</code>--------------------------------------------------------------------------As you can see, I'm trying to pass the outputs of each row as parameters through a button/href that hyperlinks to "get_job_details.php". Any help on this would be killer. Link to comment https://forums.phpfreaks.com/topic/23747-resolvedhuggiebeargodpass-multiple-parameters-from-a-query-through/ Share on other sites More sharing options...
HuggieBear Posted October 12, 2006 Share Posted October 12, 2006 It'd be easier to use [url=http://uk.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc]heredoc syntax[/url] for this one:[code]<?phpecho <<<HTML <td align=left>{$row['date']}</td> <td align=center>{$row['title']}</td> <td align=center> <a href="get_job_details.php?date={$row['date']}&title={$row['title']}&location={$row['location']}"> <img src="flesh/detailsbutton.jpg" alt="Details" </a> </td> <td align=center>{$row['location']}</td>HTML;?>[/code]RegardsHuggie Link to comment https://forums.phpfreaks.com/topic/23747-resolvedhuggiebeargodpass-multiple-parameters-from-a-query-through/#findComment-107852 Share on other sites More sharing options...
ridiculous Posted October 12, 2006 Author Share Posted October 12, 2006 Thanks Huggie! Link to comment https://forums.phpfreaks.com/topic/23747-resolvedhuggiebeargodpass-multiple-parameters-from-a-query-through/#findComment-107861 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.