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 Link to comment https://forums.phpfreaks.com/topic/111514-solved-can-someone-please-cheak-my-code/ 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'] . "---"; Link to comment https://forums.phpfreaks.com/topic/111514-solved-can-someone-please-cheak-my-code/#findComment-572317 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 Link to comment https://forums.phpfreaks.com/topic/111514-solved-can-someone-please-cheak-my-code/#findComment-572323 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.