Reply to Re: [PHP] Need help with modifying values

Your name:

Reply:


Posted by "Matt Stone" on 12/18/05 11:19

There's a big difference between the first and second scripts your using.
The second one isn't using a while loop so will only return the first row in
the recordset. See below.

HTH

Cheers
Matt

----- Original Message -----
From: "Anasta" <neretlis@westnet.com.au>
To: <php-general@lists.php.net>
Sent: Sunday, December 18, 2005 8:21 AM
Subject: [PHP] Need help with modifying values



> while ($myrow = mysql_fetch_array($result)) {
>
> echo "<tr><td>" . $myrow['Name'] . "</td>";
> echo "<td>" . $myrow['Rating'] . "</td>";
> echo "<td bgcolor='cyan'> <a href='modify_values2.php?id=" . $myrow['ID']
..
> "'>Modify</a></td></tr>";
> }
> ?>
+++++++++++++++++++++++++++++
>
>
> $myrow = mysql_fetch_array($result);
>
> $Name = $myrow['Name'];
> $Rating = $myrow['Rating'];
>
> ?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация