You can just echo out during your while loop - or
build a display block and echo it all at once.

> Not quite sure how to get this piece of code to loop
> through the records and
> echo them back one line per one record...
> <?php
> session_start();
> if (isset($HTTP_SESSION_VARS['var01']) ||
> isset($HTTP_SESSION_VARS['$var02']) ||
> isset($HTTP_SESSION_VARS['$var03']))
> {
>  require '/path/to/connection/script/db_access.php';
>  $table = "checking";
>  $record = @mysql_query("SELECT * FROM
> $table",$dbh);
>   while ($row = mysql_fetch_array($record)) {
>     $user_id = $row['user_id'];
>     $f_name = $row['f_name'];
>     $l_name = $row['l_name'];
>     $email_addy = $row['email_addy'];
>     $un = $row['un'];
>     $pw = $row['pw']; }
      
      echo
"<tr><td>$user_id</td><td>$f_name</td><td>$l_name</td><td>$email_addy</td></tr>";

// OR YOU COULD BUILD DISPLAY FOR ECHO LATER NOTICE
THE ' .= '

$display .=
"<tr><td>$user_id</td><td>$f_name</td><td>$l_name</td><td>$email_addy</td></tr>";

>  } else {
>   header ("Location: index.php");
>   }
> ?>
> Echo record set...

<? echo $display; ?>

> <?php echo $user_id[2]; ?>
> Any help would be great!
> thanks
> Jas
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to