Advertisement

[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

01/24/2005 at 07:32AM PST, ID: 21286139
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Follow_up to last question!

Asked by ashvillerob in PHP and Databases

Tags: example, table_content, tigra

snoyes jw- this is a follow_up question to the one you just answered for me. Here is the same page with all the db field included. how would I edit this page to apply the formating to just specefic db fields. For example both 'rsvc' and 'scai' are stored as decimals (.012345) and I need them to be output as a two deciaml place percentage (1.23%).


var TABLE_CONTENT = [
<?php
$_db_host = 'localhost';
$_db_user = 'xxxxxx';
$_db_pass = 'xxxx';
$_db_name = 'prodenddec182004';
$_db_table = 'prodenddec182004copy';




// table fields to fetch
$_db_field = 'tsr, name, jobtitle, supervisor, reghrs, othrs, tothrs, totpts, pph, rsvc, scai';

// bad characters - characters making a JavaScript string to be split apart
$_chars_no = array('"',"\n","\r");
// strings to replace bad characters correspondently
$_chars_ok = array('\\"','\n','\r');
 
// trying to connect
@mysql_connect ($_db_host, $_db_user, $_db_pass) or mydie ();
// trying to select database
@mysql_select_db ($_db_name) or mydie ();

// trying to send a query
($qh = @mysql_query ("SELECT $_db_field FROM $_db_table WHERE Location like 'Central' ")) or mydie ();

// fetching result
while ($row = mysql_fetch_row($qh)) {
      unset ($all);
      // processing result cells
      foreach ($row as $cell) {
            // replacing bad charecters and making up an array of a row
            $all[] = '"' . str_replace($_chars_no, $_chars_ok, $cell) . '"';
      }
      // joining cells up into a string
      $lines[] = '['.join (',', $all).']';
}
// joining lines up and printing the result
if (is_array($lines)) echo join(",\n", $lines);



// error reporting function
function mydie () {
      ?>];      alert("Unable to get Tigra Table PRO data: <?=addslashes(mysql_error())?>");<?
      exit;
}
?>];



View the Solution FREE for 30 Days
[+][-]01/24/05 07:37 AM, ID: 13122329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/24/05 07:44 AM, ID: 13122385

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/24/05 07:50 AM, ID: 13122464

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/24/05 07:59 AM, ID: 13122545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/24/05 08:03 AM, ID: 13122590

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/24/05 08:45 AM, ID: 13123033

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/24/05 08:48 AM, ID: 13123067

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/24/05 04:04 PM, ID: 13127300

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/25/05 06:36 AM, ID: 13132234

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/25/05 06:47 AM, ID: 13132382

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/25/05 07:04 AM, ID: 13132573

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/25/05 07:25 AM, ID: 13132813

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/25/05 07:28 AM, ID: 13132841

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/25/05 07:34 AM, ID: 13132909

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/25/05 07:35 AM, ID: 13132921

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/25/05 05:58 PM, ID: 13138463

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP and Databases
Tags: example, table_content, tigra
Sign Up Now!
Solution Provided By: ldbkutty
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01/25/05 07:02 PM, ID: 13138756

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/26/05 06:24 AM, ID: 13142072

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/26/05 06:29 AM, ID: 13142132

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090429-EE-VQP-58