Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1164 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

While Loops...

Thread title: While Loops...
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
07-11-2008, 07:01 AM
#1
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old  While Loops...

I'm having trouble w/ something...

I have a while loop
PHP Code:
<? while($row mysql_fetch_assoc($result)) {
require(
'age-calc.php');
?>
that I'm using to create a table.

I have this in the middle of the page. But I want to have info pulled from the table above and below this while loop, and not that that information repeat, like the while loop does.

Kind of understand?

This is my query code
PHP Code:
<? 
$sql 
"SELECT * FROM players,national WHERE players.national='$id' AND national.national='$id'";
$result mysql_query($sql) or die(mysql_error());
?>

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed