Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

77 users online



:| bracket thingy :|

:| bracket thingy :|

Currently viewing this thread: 1 (0 members and 1 guests)


Ir_M

Ir_M

Status: Offline!

:| bracket thingy :|

http://www.eg-league.com/phptest.php

im using a basic While loop for this how would i make it work so it just makes 1 table with each person from a mysql table Smile

any help Wink

PHP:

<?php
$event 
"TDM";
$result mysql_query("SELECT * FROM register WHERE catagory='$event'");

while(
$row mysql_fetch_array($result)) {
echo 
".$row["name"].";
}
?>


its more elaborate then this but this will do :\ i ened help please Smile

___________________

http://aaotracker.4players.de/trackersig.php?userid=102887

Caged

Caged

Status: Offline!

put the table inside your while loop

PHP:

<?php

while(blah){

echo 
'<table><tr><td>' $blah '<td></tr></table>';

}

?>

___________________

http://www.purephotoshop.com/images/pps_banner.jpg
| Come join the Purephotoshop.net forums

Phil

Phil

with Mr. Jones
Status: Offline!

"bracket thingy" with 2 smilies?

name your thread better next time.

___________________

http://www.philbrodeur.com - Expert PHP Development and Tutorials

Ir_M

Ir_M

Status: Offline!

Undecided god damn Undecided

hey Caged do u mean in each part i want to display the info?

___________________

http://aaotracker.4players.de/trackersig.php?userid=102887

Tooli0

Tooli0

Status: Offline!
PHP:


<?
$event 
"TDM";
$result mysql_query("SELECT * FROM register WHERE catagory='$event'");
?>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<?
while($row mysql_fetch_array($result)) {
echo 
"<tr><td>$row[name]</td></tr>";
}
?>

i think thats right, will insert everything into one table instead of making multiple untidy tables ...... edited coz tags wrong way round :P

___________________

everything we do in life echo's in eternity

Ir_M

Ir_M

Status: Offline!

hm Undecided thats a tun its for this tho Undecided

http://www.eg-league.com/phptest.php

Undecided u can view the code here :/ its a mess Undecided

http://www.eg-league.com/phptest.phps

___________________

http://aaotracker.4players.de/trackersig.php?userid=102887

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0084 seconds.