Miss-Ruth Posted October 22, 2009 Share Posted October 22, 2009 how to seperate the display results? I hope it makes sence. $query = "SELECT * FROM dyomails WHERE identity = '$SomeVar'"; $results = mysql_query($query); if($line = mysql_fetch_assoc($results)) { echo $line["email"]; echo $line["logo"]; } Link to comment https://forums.phpfreaks.com/topic/178565-solved-problem-in-seperating-an-echo/ Share on other sites More sharing options...
dreamwest Posted October 22, 2009 Share Posted October 22, 2009 By result?? $query = "SELECT * FROM dyomails WHERE identity = '$SomeVar'"; $results = mysql_query($query); if($line = mysql_fetch_assoc($results)) { echo $line["email"] ; echo $line["logo"]."<br>"; } By concat: $query = "SELECT * FROM dyomails WHERE identity = '$SomeVar'"; $results = mysql_query($query); if($line = mysql_fetch_assoc($results)) { $one .= $line["email"] ; $two .= $line["logo"]; } echo $one; echo $two; Link to comment https://forums.phpfreaks.com/topic/178565-solved-problem-in-seperating-an-echo/#findComment-941704 Share on other sites More sharing options...
Miss-Ruth Posted October 22, 2009 Author Share Posted October 22, 2009 Ggg!!! Thanks DW!!!! Link to comment https://forums.phpfreaks.com/topic/178565-solved-problem-in-seperating-an-echo/#findComment-941707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.