CodeAve.com CodeAve.com - ASP - Database Table Display
ASP
·Read/Write
·Script Writers
·Database Display
·Response Objects
·Server Variables
·Random Events
·Articles
·Miscellaneous
·Contents
·What's New?
JavaScript
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


Vertical Graph
Sometimes you really need to visualize your data.  By adjusting the height of a simple image to equal the value of your data output you can build some highly effective graphs.  The following script will create a simple vertical graph utilizing the RBI totals from our db on the career statistics of Hank Greenberg.  (Note:  Hank Greenberg served in WWII from 1941-1945 which accounts for the low statistics during those years).
View the Output
Text View
Print View
Mail this Link
Download the Code
View the Data

<%
accessdb="greenberg" 
cn="DRIVER={Microsoft Access Driver (*.mdb)};"
cn=cn & "DBQ=" & server.mappath(accessdb)
Set rs = Server.CreateObject("ADODB.Recordset")

sql = "select rbi, year from hammerin_hank " 

rs.Open sql, cn
%>

<table>
<tr>
<td align="left" valign="bottom">
<b>RBI's&nbsp;<br>Year&nbsp;</b></td>
<%
On Error Resume Next
rs.MoveFirst
do while Not rs.eof
rbi=rs("rbi")
%>

<td align="center" valign="bottom">
<img src="images/blue.jpg" width="25" height="<%= rbi %>"><br>
<%= rbi & "<br>" & rs("year") %></td>
<%
rs.MoveNext
loop
%>

</tr></table>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

  • Kids jordan 6 rings
  • Jordan retro 10
  • Jordan retro 3