Jump to content

[SOLVED] can someone please cheak my code


paulman888888

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.