...

View Full Version : PHP Columns



awire
03-23-2010, 07:23 AM
I am trying to find a way to have my data displayed in 4 colums wide.. Can someone help?

<?php

//connect include
require ("connect.php");

//extract data
$extract = mysql_query ("SELECT * FROM people ORDER BY id ASC");
$numrows = mysql_num_rows ($extract);

while ($row = mysql_fetch_assoc ($extract))
{

$id = $row['id'];
$firstname = $row['firstname'];
$lastname = $row['lastname'];
$dob = $row['dob'];
$gender = $row['gender'];

if ($gender=="F")
$gender = "Female";
else
$gender = "Male";


echo "$firstname $lastname<br> was born on $dob<br> and is $gender<br /><br />";


}


?>

abduraooft
03-23-2010, 10:37 AM
See http://www.codingforums.com/showthread.php?t=129466



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum