Is there a way to get a excel spreadsheet type of format with the things I echo out in PHP, without using a table?
$result = mysql_query("SELECT * FROM posts");
while($row = mysql_fetch_array($result))
{
echo $row['user'] . " " . $row['email'] . " " . $row['age'] . " " . $row['image'] . " " . $row['created_at'];
echo "<br />";
}
Try using
div. set thewidthas you want.This will give you output like this,
