Jump to content

Recommended Posts

Hi all 

Iam having problems getting the table to show the database fields how I want them too.

Currently they show as http://kingofthespring.co.uk/furniture.html

and I would like them to show as http://kingofthespring.co.uk/beds.html

============================================================================
Database echo and fetch PHP code
============================================================================

 

 

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
28
29     while ($rows mysql_fetch_array($result))
  { 
$col++;
  
  
    if($col == 0)
  
        echo '<div class="wrapper">'// create a new wrapper
  
  
    echo '
  <article class="grid_4">
   
 <figure class="frame2">
 <img src="http://www.kingofthespring.co.uk/'
$rows[image], '"style="border: 0px solid" class="index_image" />
 </figure>'
;
  
 echo 
'
 <p class="color-4 prev-indent-bot">'
$rows[title], '</p>'
  
 echo
'<p>'$rows[description],'</p>';
  
 echo
'
 <div class="wrapper"><span class="price fleft">&#163;'
$rows[price],'</span>';
  
 echo 
'
 <a href="'
$rows[8], '" class="button fright">Read More</a></div>
                                                     </article>'
$col;
   if (
$col == COLS)
   { 
$col 0
     echo 
'</div>'// end wrapper
   
}
 }

 

 

===========================================================================
From main html page shows where the php enters the page
===========================================================================

 

 

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
28
29     <section id="content">
          <
div class="bg-top">
          <
div class="bg-top-2">
                  <
div class="bg">
                      <
div class="bg-top-shadow">
                          <
div class="main">
                              <
div class="box">
                                  <
div class="padding">
                                      <
div class="container_12">
                                         <
div class="wrapper">
                                             <
div class="grid_12">
                                             <
div class="indent-left p2">
                                                 <
h3 class="p0">Latest Furniture Deals</h3>
                                                 </
div>
                                                 
                                                     
 <?
php include 'product.php'?>
 
 
                                                 </div>
                                             </div>
                                         </div>
                                     </div>
                                 </div>
                             </div>
                         </div>
                     </div>
                 </div>
             </div>
         </div>

 

 

Any help would be great.

Regards
Ant

Link to comment
https://forums.phpfreaks.com/topic/284069-table-alignment/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.