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

displaying decimal values

Thread began 1/17/2011 11:36 am by theo373559 | Last modified 1/19/2011 4:21 pm by theo373559 | 2781 views | 15 replies


Additional information

That's what I suspected. I'm including the code from coherence_scale_data1.php in the text of this message, and the data table (la_scores.php) as an upload.

<?php require_once('../../Connections/Assessment.php'); ?>
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
return $theValue;
mysql_select_db($database_Assessment, $Assessment);
$query_WADWCla_scores = "SELECT lasname_1a AS XLABEL, coherence_framing AS YVALUE FROM la_scores ORDER BY lasname_1a ASC";
$WADWCla_scores = mysql_query($query_WADWCla_scores, $Assessment) or die(mysql_error());
$row_WADWCla_scores = mysql_fetch_assoc($WADWCla_scores);
$totalRows_WADWCla_scores = mysql_num_rows($WADWCla_scores);

<?php echo "<" . "?xml version=\"1.0\" encoding=\"utf-8\" ?".">"; ?><!DOCTYPE wa_dwc SYSTEM "wa_dwc.dtd">
<wa_dwc name="DTS" version="1.0">
<color_wheel name="SLATE">
<title style=" font-size:14px; color:#303431; text-align:center;">FRAMING</title>
<background color="#F4F6F2" align="left" valign="top"/>
<innerbg startcolor="#dcebe2" endcolor="#7cbaaa" direction="90"/>
<yaxis color="#568176" gridcolor="#6da496">
<labels size="11" fontcolor="#3b6e72" linecolor="#6da496">
<legend size="12" color="#173232">Framing</legend>
<xaxis color="#568176" gridcolor="#6da496" offset="true">
<legend size="12" color="#2d2b2e">Phase%20score</legend>
<labels size="11" fontcolor="#3b6e72" orientation="2" linecolor="#6da496">
<dataset style="{font-size:9px;color:#767a7f;}" size="9" width="2" color="#173232" label="Scores" dotsize="5" opacity="80" abstraction="4" outline="#568176" linecolor="#568176" type="bar" subtype="fade">
<?php do { ?><point >
<label><?php echo($row_WADWCla_scores['XLABEL']); ?></label>
<value><?php echo($row_WADWCla_scores['YVALUE']); ?></value>
</point><?php } while ($row_WADWCla_scores = mysql_fetch_assoc($WADWCla_scores)); ?>

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





Ease of use


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...