travelkind Posted January 6, 2010 Share Posted January 6, 2010 This is probably pretty simple but I don't know how to do it. I need to have my data that is returned show up on two rows instead of on one. Everything from: echo "Fuel Type: ".$row['fuel']; needs to be on the second line. Is there a command that is needed to terminate my first line of data? Thanks for your help! // store the record of the "custmast" table into $row $row = mysql_fetch_array( $result ); // Print out the contents of the entry echo "Supplier: ".$row['supplier']; echo "Terminal: ".$row['terminal']; echo "Fuel Type: ".$row['fuel']; echo "Fuel Blend: ".$row['fuelblend']; ?> Link to comment https://forums.phpfreaks.com/topic/187446-display-data-on-multilple-lines/ Share on other sites More sharing options...
taith Posted January 6, 2010 Share Posted January 6, 2010 horray for html! echo "Supplier: ".$row['supplier']; echo "Terminal: ".$row['terminal'].'<br>'; echo "Fuel Type: ".$row['fuel']; echo "Fuel Blend: ".$row['fuelblend']; Link to comment https://forums.phpfreaks.com/topic/187446-display-data-on-multilple-lines/#findComment-989802 Share on other sites More sharing options...
travelkind Posted January 6, 2010 Author Share Posted January 6, 2010 Taith, Thank you very much that fixed my problem. Dave Link to comment https://forums.phpfreaks.com/topic/187446-display-data-on-multilple-lines/#findComment-989806 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.