paulman888888 Posted June 23, 2008 Share Posted June 23, 2008 Please can you cheak it. Thankyou <?php require('connect.php'); ?><?php // Get all the data from the "intobattle1" table $result = mysql_query("SELECT * FROM intobattle1 ORDER BY id DESC") or die('O no. Theres an error'); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table echo $row['id'] "---"; echo $row['name'] "---"; echo $row['players'] "---"; echo $row['thedate'] "---"; echo $row['thetime'] "---#";//i think the --- part is wrong } ?> thankyou Paul Quote Link to comment Share on other sites More sharing options...
trq Posted June 23, 2008 Share Posted June 23, 2008 Helps if you actually ask a question / describe your problem. Theres a link in my signiture if your having trouble. I assume you want to concatinate the -- after each row. echo $row['id'] . "---"; Quote Link to comment Share on other sites More sharing options...
DoddsAntS Posted June 23, 2008 Share Posted June 23, 2008 You need to concatenate the stings that you are echoing out echo $row['id'] . "---"; or echo "{$row['id']} ---"; you'll need to do that for the other lines aswell Quote Link to comment 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.