Advertisement

11.17.2006 at 05:16PM PST, ID: 22065201
[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!

8.6

Why is this cfif not working...

Asked by brandonpowell in ColdFusion Application Server

<cfquery name="get_dogs" datasource="#dsn#" username="#un#" password="#pw#">
SELECT dName,dDOB,dDesc,dSold,dPicL,dPicR,dTitle
FROM DOGS
ORDER BY ASC
</cfquery>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="css/test.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td><form action="insert.cfm" method="post" enctype="multipart/form-data">
      <table width="500" border="0" cellspacing="10" cellpadding="10" align="center">
  <tr>
    <td width="150" align="right" valign="top">Name:</td>
    <td align="left" valign="top"><input name="dName" type="text" id="dName" size="25" maxlength="50" /></td>
  </tr>
  <tr>
    <td width="150" align="right" valign="top">DOB:</td>
    <td align="left" valign="top">Month:
      <select name="month" size="1" id="month">
        <option value="01" selected="selected">01</option>
        <option value="02">02</option>
        <option value="03">03</option>
        <option value="04">04</option>
        <option value="05">05</option>
        <option value="06">06</option>
        <option value="07">07</option>
        <option value="08">08</option>
        <option value="09">09</option>
        <option value="10">10</option>
        <option value="11">11</option>
        <option value="12">12</option>
      </select>
      &nbsp;&nbsp;Day:
      <select name="day" size="1" id="day">
        <option value="01" selected="selected">01</option>
        <option value="02">02</option>
        <option value="03">03</option>
        <option value="04">04</option>
        <option value="05">05</option>
        <option value="06">06</option>
        <option value="07">07</option>
        <option value="08">08</option>
        <option value="09">09</option>
        <option value="10">10</option>
        <option value="11">11</option>
        <option value="12">12</option>
        <option value="13">13</option>
        <option value="14">14</option>
        <option value="15">15</option>
        <option value="16">16</option>
        <option value="17">17</option>
        <option value="18">18</option>
        <option value="19">19</option>
        <option value="20">20</option>
        <option value="21">21</option>
        <option value="22">22</option>
        <option value="23">23</option>
        <option value="24">24</option>
        <option value="25">25</option>
        <option value="26">26</option>
        <option value="27">27</option>
        <option value="28">28</option>
        <option value="29">29</option>
        <option value="30">30</option>
        <option value="31">31</option>
      </select>
       &nbsp;Year:
       <input name="year" type="text" id="year" size="4" maxlength="4" /></td>
  </tr>
  <tr>
    <td width="150" align="right" valign="top">Description:</td>
    <td align="left" valign="top"><textarea name="dDesc" cols="45" rows="5" id="dDesc"></textarea></td>
  </tr>
  <tr>
    <td width="150" align="right" valign="top">Sold:</td>
    <td align="left" valign="top"><select name="dSold" size="1" id="dSold">
      <option value="1" selected="selected">Availiable</option>
      <option value="2">Reserved</option>
      <option value="3">Sold</option>
    </select>    </td>
  </tr>
  <tr>
    <td width="150" align="right" valign="top">Left Pic: </td>
    <td align="left" valign="top"><input name="dPicL" type="file" id="dPicL" size="25" maxlength="500" /></td>
  </tr>
  <tr>
    <td width="150" align="right" valign="top">Right Pic: </td>
    <td align="left" valign="top"><input name="dPicR" type="file" id="dPicR" size="25" maxlength="500" /></td>
  </tr>
  <tr>
    <td width="150" align="right" valign="top">Title:</td>
    <td align="left" valign="top"><input name="dTitle" type="text" id="dTitle" size="25" maxlength="50" /></td>
  </tr>
  <tr>
    <td align="right" valign="top">&nbsp;</td>
    <td align="left" valign="top"><input type="submit" name="Submit" value="Submit" /></td>
  </tr>
</table>

      </form>&nbsp;</td>
  </tr>
  <tr>
    <td>
      <!--- inner data table --->
      <table width="500" border="0" cellspacing="10" cellpadding="10" align="center">
      <cfif get_dogs.recordcount>
      <cfloop query="get_dogs">
      <cfoutput>      
  <tr>
    <td>#dPicL#</td>
    <td>Name: #dName#  &nbsp;&nbsp;&nbsp;&nbsp;<cfif get_dogs.dSold eq 1><img src="images/avail.jpg" />
                                                                         <cfelse get_dogs.dSold eq 2><img src="images/reserved.jpg" />
                                                                         <cfelseif get_dogs.dSold eq 3><img src="images/sold.jpg" />
                                                                        </cfif><br />
          Title: #dTitle#
            <p>Description:<br /><br />
            #dDesc#</p></td>
    <td>#dPicR#</td>
  </tr>
  </cfoutput>
  </cfloop>
    </table>
<cfelse>
<tr>
      <td><p class="body_copy">There are no records to display!</p></td>
</tr>
</cfif>
      &nbsp;</td>
  </tr>
</table>
</body>
</html>
Start Free Trial
 
Loading Advertisement...
 
[+][-]11.17.2006 at 06:29PM PST, ID: 17969988

View this solution now by starting your 7-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: ColdFusion Application Server
Sign Up Now!
Solution Provided By: gdemaria
Participating Experts: 3
Solution Grade: A
 
 
[+][-]11.18.2006 at 04:39AM PST, ID: 17971221

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]11.20.2006 at 01:00PM PST, ID: 17982562

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.20.2006 at 01:19PM PST, ID: 17982685

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2006 at 10:18AM PST, ID: 18021242

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.09.2007 at 07:18PM PST, ID: 18281254

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]07.10.2007 at 07:17AM PDT, ID: 19453809

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]07.19.2007 at 03:09PM PDT, ID: 19526674

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
 
Loading Advertisement...
20080716-EE-VQP-32