Advertisement

07.23.2008 at 08:04AM PDT, ID: 23588746
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Creating Dynamic Table Display From PHP/MySQL/HTML

Asked by thedeal56 in PHP and Databases, Hypertext Markup Language (HTML), MySQL Server

Tags: ,

Hello.  I hope this is an easy one.  I want to display a list of names from a MySQL database.  The way I want to format the names is displayed in the attached pictures.  The first picture is showing the output of the attached code.  The second picture is showing my goal for the table display.

I know that my while loop is creating a table for each of the second row of names. How do I get around adding <table> tags inside my loop? How do I produce the output in the second picture? Thanks.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
<?
$database="Office";
mysql_connect ("localhost", "root", "");
@mysql_select_db($database) or die( "Unable to select database");
$result = "select First, Last from user order by Last";
$res=mysql_query($result) or die(mysql_error());
?>
<table align=center width=900 height=50>
<?
while ($row = mysql_fetch_array($res)){
$i+=1;
if ($i <= 10) {
?>
<td width=900 align=middle bgcolor=blue> <font color=white><b><?echo $row['First'];?></b></font></td>
<? 
              } 
if ($i > 10 and $i <= 20) {
?>
</table>
<table align=center width=200 height=50>
<td width=900 align=middle bgcolor=blue> <font color=white><b><?echo $row['First'];?></b></font></td>
<?
                          }
    
                                      }
?>
</table>
Attachments:
 
Output from code
Output from code
 
 
 
[+][-]07.23.2008 at 08:30AM PDT, ID: 22070320

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 08:31AM PDT, ID: 22070329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 08:32AM PDT, ID: 22070340

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 08:44AM PDT, ID: 22070463

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:11AM PDT, ID: 22070785

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:30AM PDT, ID: 22070996

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:30AM PDT, ID: 22071005

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP and Databases, Hypertext Markup Language (HTML), MySQL Server
Tags: PHP, MYSQL, HTML, IE7
Sign Up Now!
Solution Provided By: FrivolousSam
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.23.2008 at 09:35AM PDT, ID: 22071037

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 10:08AM PDT, ID: 22071408

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 10:10AM PDT, ID: 22071428

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 11:19AM PDT, ID: 22072215

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:13PM PDT, ID: 22072783

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 01:06PM PDT, ID: 22073291

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 02:36PM PDT, ID: 22074161

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 05:54AM PDT, ID: 22078537

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 06:01AM PDT, ID: 22078598

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 07:42AM PDT, ID: 22079660

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 08:12AM PDT, ID: 22080042

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628