Advertisement

09.21.2008 at 02:46PM PDT, ID: 23749948
[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!

8.6

Table built in php through an array- positioning issue

Asked by dannywareham in Hypertext Markup Language (HTML), Web Languages/Standards, PHP Scripting Language

Tags: , ,

Hi all.

I have a php page that creates a table on the fly using an array, which is based on the results of a set of queries.

The issue I have is in the formatting of the table.

The site is http://booksatrillion.com/
You can see that the 5 required columns of data are there (four headers, plus "buy now" icon), but they're not aligned under the headings.

The code to create the page is attached.
Can anyone help me to figure it out, please?

The dimensions are:
Total table width = 823.
Column 1 = 300px
Columns 2, 3 and 4 = 150px
Column 5 =73px

Thanks all.

DannyStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
$info_box_contents[] = array(
       'align' => 'left',
       'params' => ' width="823" valign="top"',
       'text' => '<td align="left"  width="300" valign="top">
                    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a></td>
				  <td width="150" align="left">' .  $extra_fields_a['author'] . '&nbsp;</td>
				  <td width="150" align="left">' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])). '</td>
				  <td width="150" align="left">' .  $extra_fields_i['isbn'] . '&nbsp;</td>
				  <td width="73" align="right"><a href="' . tep_href_link(basename($PHP_SELF), 
                    tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('../../../../../images/button_buynow.png', IMAGE_BUTTON_IN_CART) . '</a>
                   </td>' );
 	}
    }
  }
  new contentBox($info_box_contents);
 
Keywords: Table built in php through an array- po…
 
Loading Advertisement...
 
[+][-]09.21.2008 at 03:04PM PDT, ID: 22536233

View this solution now by starting your 7-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: Hypertext Markup Language (HTML), Web Languages/Standards, PHP Scripting Language
Tags: PHP, HTML, All. Testing in FF2 and IE7 at present, http://booksatrillion.com/
Sign Up Now!
Solution Provided By: husker475
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.21.2008 at 03:23PM PDT, ID: 22536267

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 7-day free trial to view this Expert Comment or ask the Experts your question.

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