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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.