








| | 
Webdata has one of the highest paying affiliate programs on the net. Become an affiliate and make serious money by linking to us?
NEED MORE POWER? CHECK OUT WEBDATA PRO -- click here

FREE INSTALLATION Just ask, we'll install Webdata on your server or walk you through it over the phone.
*******************************************************
*** SORRY FOLKS, the BBS is down due to spammers. *****
*** Please be patient while we build a human **********
*** verification system for the board. ****************
*** In the meantime, you can search 8 years of past ***
*** questions, and e-mail your new questions to *******
*** support@webteacher.com*************
*******************************************************
 |
Why not become an affiliate with Webdata?
- You could be swimming in money.
Click on 'Becomming a Reseller' |
| |
| Subject
| Re: Delete spacing from table rows that do not contain data |
| Poster
| Rob Young |
| E-Mail
| rob@webteacher.com |
| Date
| Thu Sep 30 19:45:50 EDT 2004 |
| Previous
|
1096504988 |
| Next
|
|
| Image
| |
| LinkName
| |
| LinkURL
| |
| Message
| Hi Tisha; First, are you sure you mean to open and close a table for each row? It is more typical to open a table at the start of a data set, and close it at the end, so that everything lines up nicely.
If you put the $if() statement around the outside of a row, including the <tr> tags, then the row won't show up unless the $if condition is true. For example:
$if ($data[3]) {<tr><td>Inclusive Dates: </td><td>$data[3]</td></tr>}
Rob
>Hello > >I would like to delete spacing from table rows that do not contain data. I would like all fields that contain data is appear on the next line in the form view. > >Here is sample coding: > ><table style="border-collapse: collapse;"> <tr><td> >$data[1]<font face="arial" size=3 color="red">$if ($data[2]) {Title: }$data[2] ></table> ><table style="border-collapse: collapse;"><tr><td>$if ($data[3]) {Inclusive Dates: }</td><td>$data[3]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[4]) {Inclusive Volumes: }</td><td>$data[4]</td></tr></table><table style="border-collapse: collapse;"> <tr><td>$if ($data[5]) {ISSN: }</td><td>$data[5]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[7]) {Bound Volumes: }</td><td>$data[7]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[8]) {Bound Dates: }</td><td>$data[8]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[9]) {Microfilm Volumes: }</td><td>$data[9]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[10]) {Microfilm Dates: }</td><td>$data[10]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[11]) {Missing Volumes: }</td><td>$data[11]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[12]) {Missing Dates: }</td><td>$data[12]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[13]) {EBSCO Dates: }</td><td>$data[13]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[14]) {EBSCO Hyperlink: }</td><td>$data[14]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[15]) {Homepage Dates: }</td><td>$data[15]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[16]) {Homepage Hyperlink: }</td><td>$data[16]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[17]) {Galileo Dates: }</td><td>$data[17]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[18]) {Galileo Hyperlink: }</td><td>$data[18]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[19]) {Galileo Dates: }</td><td>$data[19]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[20]) {Galileo Hyperlink: }</td><td>$data[20]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[21]) {Galileo Dates: }</td><td>$data[21]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[22]) {Galileo Hyperlink: }</td><td>$data[22]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[23]) {JSTOR Dates: }</td><td>$data[23]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[24]) {JSTOR Hyperlink: }</td><td>$data[24]</td></tr></table> ><table style="border-collapse: collapse;"> <tr><td>$if ($data[27]) {Notes: }</td><td>$data[27]</td></tr> ></table> > >The search page can be found at http://library.savstate.edu/webdata/webdata_journal.pl?cgifunction=user > >Any help would be greatly appreciated!! |
| Product
| Webdata 2.x |
| approved
| yes |
Post your response here
Back to Search Results
Search Again
Return to Homepage
|