feddie1984 Posted April 15, 2010 Share Posted April 15, 2010 Can someone help me with the correct syntax for turning the field requester_email into a mailto link? while($row = mysql_fetch_array($qry_result)){ $display_string .= "<tr>"; $display_string .= "<td>$row[iD]</td>"; $display_string .= "<td>$row[requester_name]</td>"; $display_string .= "<td>" . <a href='mailto:' . $row[requester_email] . '>' . $row[requester_email] . "</a>" . "</td>"; $display_string .= "<td>$row[todays_date]</td>"; $display_string .= "<td>$row[start_Date]</td>"; $display_string .= "<td>$row[End_Date]</td>"; $display_string .= "<td>$row[Department]</td>"; $display_string .= "<td>$row[No_Engineers_Required]</td>"; $display_string .= "<td>$row[Prefered_Engineers]</td>"; $display_string .= "<td>$row[Customer_Name]</td>"; $display_string .= "<td>$row[Location]</td>"; $display_string .= "<td>$row[Type_Of_Job]</td>"; $display_string .= "<td>$row[Job_Ref_No]</td>"; $display_string .= "<td>$row[Additional_info]</td>"; $display_string .= "</tr>"; Link to comment https://forums.phpfreaks.com/topic/198660-syntax-for-creating-mailto-from-mysql-database-query/ Share on other sites More sharing options...
andrewgauger Posted April 15, 2010 Share Posted April 15, 2010 $display_string .= "<td> <a href='mailto: ". $row[requester_email] ."'>" . $row[requester_email] . "</a> </td>"; Link to comment https://forums.phpfreaks.com/topic/198660-syntax-for-creating-mailto-from-mysql-database-query/#findComment-1042523 Share on other sites More sharing options...
feddie1984 Posted April 15, 2010 Author Share Posted April 15, 2010 Thank you. Link to comment https://forums.phpfreaks.com/topic/198660-syntax-for-creating-mailto-from-mysql-database-query/#findComment-1042536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.