Lee-Bartlett Posted October 2, 2008 Share Posted October 2, 2008 It has completly slipt my mind and i cant rember the script for it. Google isnt turn wot i need, must be wording it wrong. Just wanna echo a table in the database Link to comment https://forums.phpfreaks.com/topic/126821-solved-echoing-the-database/ Share on other sites More sharing options...
DeanWhitehouse Posted October 2, 2008 Share Posted October 2, 2008 [code[ <?php //connect first $query = mysql_query("SELECT *FROM table"); while($row = mysql_fetch_assoc($query)) { echo $row['row_name']; } ?> Link to comment https://forums.phpfreaks.com/topic/126821-solved-echoing-the-database/#findComment-655978 Share on other sites More sharing options...
Lee-Bartlett Posted October 2, 2008 Author Share Posted October 2, 2008 ty just couldnt put my finger on it Link to comment https://forums.phpfreaks.com/topic/126821-solved-echoing-the-database/#findComment-655979 Share on other sites More sharing options...
Lee-Bartlett Posted October 2, 2008 Author Share Posted October 2, 2008 How do you wrap it in tables? everytime i try it fails, or code breaks the php. Link to comment https://forums.phpfreaks.com/topic/126821-solved-echoing-the-database/#findComment-656010 Share on other sites More sharing options...
DeanWhitehouse Posted October 2, 2008 Share Posted October 2, 2008 <?php //connect first $query = mysql_query("SELECT *FROM table"); echo "<table>"; while($row = mysql_fetch_assoc($query)) { echo "<tr><td>".$row['row_name']."</td></tr>"; } echo "</table>"; ?> Link to comment https://forums.phpfreaks.com/topic/126821-solved-echoing-the-database/#findComment-656011 Share on other sites More sharing options...
Lee-Bartlett Posted October 2, 2008 Author Share Posted October 2, 2008 ty, i feel stupid now forgot to add the echos Link to comment https://forums.phpfreaks.com/topic/126821-solved-echoing-the-database/#findComment-656012 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.