www.webdeveloper.com
Results 1 to 2 of 2

Thread: table display looks funny without data when query executes

  1. #1
    Join Date
    Feb 2003
    Posts
    8

    table display looks funny without data when query executes

    Is there any snippet that I could use to correct a table's cell appearance if there are no records in them? They look very untidy if the database does not fill it with any data during a query execution.

  2. #2
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    hi,
    yes you can do this:
    Code:
    <%
    
    if RS("field") = "" then
    
    response.write "& nbsp;"
    
    else
    
    response.write RS("field")
    
    end if
    
    %>
    Hope this helps. take out the space between & and nbsp couldn't write correctly because it wouldn't show up in the example.
    Last edited by Ribeyed; 02-20-2003 at 07:37 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles