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"]; } Quote 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; Quote 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!!!! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.