I think what you want is

<?php
$query = "Select * from companies";
  if( !($dbq = mysql_query($query,$dblink)))
  {
    echo "Error querying database.";
    exit;
  }

while( $row = mysql_fetch_array ($dbq) ) {
?>
<table>
<tr>
<td>
<?php
    // php code to output your entry information
?>
</td>
</tr>
</table>
<? } ?>

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


----- Original Message -----
From: "Andrius Jakutis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 11:22 PM
Subject: Re: [PHP-DB] listing


> This gives 25 the same entries. I need to list all entries from the table,
> but with loop.
>
> More solutions?
>
>
> "Chris Hobbs" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Something like:
> >
> > <? for($i=1; $i<25; $i++) { ?>
> > <table>
> > <tr>
> > <td>
> > <?
> >     // php code to output your entry information
> > ?>
> > </td>
> > </tr>
> > </table>
> >
> > <? } ?>
> >
> > Andrius Jakutis wrote:
> >
> > > Hello again,
> > >
> > > Is there oportunity to write this:
> > >
> > > <some php command to loop entries, the way is written bellow>
> > > HTML  php coding.+ MYSQL -  1 entries information
> > > <end of loop>
> > >
> > > Something like that:
> > >
> > > <here loop begins>
> > > <table>
> > > <tr>
> > > <td>
> > > first entry information from table "companies" (name, telephone...)
> > > </td>
> > > </tr>
> > > </table>
> > > <loop ends>
> > >
> > >
> > >
> > > THanks.
> > >
> > >
> > > --
> > > Su pagarba,
> > >
> > > Andrius Jakutis
> > > InternetMedia
> > > http://www.internetmedia.lt
> > > GSM: 370 82 31332
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Chris Hobbs       Silver Valley Unified School District
> > Head geek:              Technology Services Coordinator
> > webmaster:   http://www.silvervalley.k12.ca.us/~chobbs/
> > postmaster:               [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to