close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Spacing issue with results page in DA

Thread began 7/13/2010 1:37 pm by elewis93815 | Last modified 7/14/2010 2:05 pm by Jason Byrnes | 616 views | 3 replies |

elewis93815

Spacing issue with results page in DA

Hi, I'm trying to remove the spacing between records on my results pages, please advise on how to control or remove the "white" space between records.

I've attached my search and results pages with the WA_DataAssist and WADbSearch files

Thanks

Erick

Attached Files
NORTHSTAR WA.zip
Sign in to reply to this post

Jimmy Wu

Do you have a link to where I can take a look at your hosted pages? It would help me understand what you're trying to do if I could see the pages live.

Sign in to reply to this post

elewis93815

Spacing Issues

I've just uploaded the files and connected the database, the url is: index.php

Once you're there you'll see a drop down on upper right side of the website that say's "Select Your Search", pick "Search Categories" from the drop down, then click the "Search Categories" (the button on the right), at that point all of the files should be retrieved. If you notice the wide spacing in between each section, this is what I'm trying to control, I would like to reduce this space to to no more than a the space between standard paragraphs.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

the space is being added between them due to blank columns in your data base.

you will need to add an if statemetnt around the <tr> code to only display the row if there is a value in that column in the database.


For example, change:

php:
<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">

            <td bgcolor="#FFFFFF" class="WADAResultsTableCell"><strong><?php echo $row_WADAnorthstar['line_name1']; ?></strong> <?php echo $row_WADAnorthstar['line_desc1']; ?> <?php echo $row_WADAnorthstar['class1']; ?></td>
          </tr>



to:

php:
<?php if(($row_WADAnorthstar['line_name1'] != "" && $row_WADAnorthstar['line_name1'] != NULL) || ($row_WADAnorthstar['line_desc1'] != "" && $row_WADAnorthstar['line_desc1'] != NULL)) { ?>

<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
            <td bgcolor="#FFFFFF" class="WADAResultsTableCell"><strong><?php echo $row_WADAnorthstar['line_name1']; ?></strong> <?php echo $row_WADAnorthstar['line_desc1']; ?> <?php echo $row_WADAnorthstar['class1']; ?></td>
          </tr>
<?php ?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...