Test value in advanced recordset

HI
In the binding recordset I have a filter looking for a date
matching the URL parameter. In the simple panel, a valid test value
returns normal data.
Unfortunately, testing my web page does not returns any data.
In the advanced panel of the recordset, testing the same
query does not return any data. This is matching the result I have
in the web page.
1) Why the advanced test panel does not require a testing
value.
2) Why the 2 testings does not return the same results.
Thanks

I just ran into this problem too. Am running DW8 with CF8 on
Mac.

Similar Messages

  • Runtime value disapearing in the advanced recordset

    I am trying to create a master and a detail page to get, on the detail page, more details about an exporter (from exporters table) along with the Export Products (from Products table) offered by the particular exporter. When setting up the advanced recordset I introduced a variable varexporter
    Here's the recordset SQL
    SELECT exporters.exporterID, exporters.exporterName, exporters.exporterStreet, exporters.exporterCity, exporters.exporterZip, exporters.Country, exporters.exporterContact, exporters.exporterDesignation, exporters.exporterPhone, exporters.exporterFax, exporters.exporterEmail, exporters.exporterWebsite, exporters.exporterLogo, exporters.FactoryAddress, exporters.CommencementYear, exporters.Manufacturer_OR_Producer, exporters.EstablishmentType, exporters.SynopsisLink, products.productID, products.productName, products.image
    FROM exporters, products
    WHERE products.exporterID=exporters.exporterID AND exporters.exporterID=varexporter
    Once I save this DW creates another variable by the name totalRows and vipes out the runtime value of varexporter. The detail page is always generated with the default value of varexporter
    Please help me to write the correct sql query so that it gives the appropiate outcome for each link on the master page for exporters.
    Thanks and Regards

    Thank you bregent.
    As I do not know php and mysql I am getting Dreamweaver to do the work. Cama a long way till I got stuck here.
    Here are the codes in Full:
    Firstly, Master Page (works well and opens up the detail page witrh the correct URL parameter)
    <?php require_once('../Connections/ltndb.php'); ?>
    <?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";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    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";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    mysql_select_db($database_ltndb, $ltndb);
    $query_rs_category_apparel = "SELECT categories.`Catergory Image`, categories.categoryName FROM categories WHERE categories.categoryID=1";
    $rs_category_apparel = mysql_query($query_rs_category_apparel, $ltndb) or die(mysql_error());
    $row_rs_category_apparel = mysql_fetch_assoc($rs_category_apparel);
    $totalRows_rs_category_apparel = mysql_num_rows($rs_category_apparel);mysql_select_db($database_ltndb, $ltndb);
    $query_rs_category_apparel = "SELECT categories.`Catergory Image`, categories.categoryName FROM categories WHERE categories.categoryID=1";
    $rs_category_apparel = mysql_query($query_rs_category_apparel, $ltndb) or die(mysql_error());
    $row_rs_category_apparel = mysql_fetch_assoc($rs_category_apparel);
    $totalRows_rs_category_apparel = mysql_num_rows($rs_category_apparel);
    $maxRows_rs_details_apparel = 5;
    $pageNum_rs_details_apparel = 0;
    if (isset($_GET['pageNum_rs_details_apparel'])) {
      $pageNum_rs_details_apparel = $_GET['pageNum_rs_details_apparel'];
    $startRow_rs_details_apparel = $pageNum_rs_details_apparel * $maxRows_rs_details_apparel;
    mysql_select_db($database_ltndb, $ltndb);
    $query_rs_details_apparel = "SELECT exporters.exporterLogo, exporters.exporterName, exporters.exporterPhone, exporters.exporterEmail, products.productName, exporters.exporterStreet, exporters.exporterCity, exporters.exporterContact, exporters.exporterDesignation, exporters.exporterFax, exporters.exporterID, exporters.exporterZip, exporters.exporterWebsite, exporters.SynopsisLink, products.productID, products.image, exporters.Country, categories.categoryID FROM exporters, products,categories WHERE products.categoryID=1 AND exporters.exporterID=products.exporterID AND categories.categoryID=1 ORDER BY exporters.exporterName";
    $query_limit_rs_details_apparel = sprintf("%s LIMIT %d, %d", $query_rs_details_apparel, $startRow_rs_details_apparel, $maxRows_rs_details_apparel);
    $rs_details_apparel = mysql_query($query_limit_rs_details_apparel, $ltndb) or die(mysql_error());
    $row_rs_details_apparel = mysql_fetch_assoc($rs_details_apparel);
    if (isset($_GET['totalRows_rs_details_apparel'])) {
      $totalRows_rs_details_apparel = $_GET['totalRows_rs_details_apparel'];
    } else {
      $all_rs_details_apparel = mysql_query($query_rs_details_apparel);
      $totalRows_rs_details_apparel = mysql_num_rows($all_rs_details_apparel);
    $totalPages_rs_details_apparel = ceil($totalRows_rs_details_apparel/$maxRows_rs_details_apparel)-1;
    $queryString_rs_details_apparel = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rs_details_apparel") == false &&
            stristr($param, "totalRows_rs_details_apparel") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rs_details_apparel = "&" . htmlentities(implode("&", $newParams));
    $queryString_rs_details_apparel = sprintf("&totalRows_rs_details_apparel=%d%s", $totalRows_rs_details_apparel, $queryString_rs_details_apparel);
    $query_rs_category_apparel = "SELECT categories.`Catergory Image`, categories.categoryName FROM categories";
    $rs_category_apparel = mysql_query($query_rs_category_apparel, $ltndb) or die(mysql_error());
    $row_rs_category_apparel = mysql_fetch_assoc($rs_category_apparel);
    $totalRows_rs_category_apparel = mysql_num_rows($rs_category_apparel);
    ?>
    <!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"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="description" content="Enter your description here so that you can take advantage of search engine optimization." />
    <meta name="author" content="The CSS Tinderbox - http://www.csstinderbox.com" />
    <link rel="stylesheet" type="text/css" href="../reset.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="../style.css" media="screen,print" />
    <title>the css tinderbox: fixed 4-column layout</title>
    <!-- InstanceParam name="id" type="text" value="page104" -->
    /* Googogle analytics*/
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-34050000-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    /* Googogle analytics*/
    </head>
    <body id="page104">
    <div id="mainContainer" class="clearfix">
    </div>
      <!--// end #header //-->
      <div id="navHorizontal">
        <ul>
          <li id="page1"><a href="../index.html">About Us</a></li>
          <li id="page2"><a href="../our_services.html">Our Services</a></li>
          <li id="page4"><a href="../products_services.php">Products</a></li>
          <li id="page5"><a href="../suppliers.php">Suppliers</a></li>
          <li id="page6"><a href="../contact_us.html">Contact Us</a></li>
        </ul>
      </div>
      <!--// end #navHorizontal //-->
      <div id="columnOne">
        <h1> </h1>
        <h2 id="listhead">Products & Services </h2>
        <p> </p>
        <div id="navVertical">
          <ul>
            <li id="page104"><a href="apparel.php" title="Page Link">Apparel  & Garment Accessories</a></li>
            <li id="page115"><a href="body_care.php" title="Page Link">Body Care Products</a></li>
            <li id="page113"><a href="cereals.php" title="Page Link">Cereals</a></li>
            <li id="page128"><a href="chemicals_plastics.php" title="Page Link">Chemicals &Plastics</a></li>
            <li id="page103"><a href="coconut_coconutproducts.php" title="Page Link">Coconut & Coconut Products</a></li>
            <li id="page120"><a href="computers_electronics.php" title="Page Link">Computers & Electronics</a></li>
            <li id="page123"><a href="fisheries_products.php" title="Page Link">Fisheries Products</a></li>
            <li id="page108"><a href="foliage_cutflowers.php" title="Page Link">Foliage & Cut Flowers</a></li>
            <li id="page112"><a href="fruits_vegetables.php" title="Page Link">Fruits & Vegetables</a></li>
            <li id="page106"><a href="gems_jewelry.php" title="Page Link">Gems & Jewellery</a></li>
            <li id="page116"><a href="handicrafts.php" title="Page Link">Handicrafts</a></li>
            <li id="page111"><a href="handloom_textiles.php" title="Page Link">Handloom & Textiles</a></li>
            <li id="page109"><a href="leather_leatherproducts.php" title="Page Link">Leather & Leather Goods</a></li>
            <li id="page126"><a href="machinery_equipment.php" title="Page Link">Machinery & Accessories</a></li>
            <li id="page114"><a href="metal_metalproducts.php" title="Page Link">Metal & Metal Products</a></li>
            <li id="page117"><a href="mineral_products.php" title="Page Link">Mineral Products</a></li>
            <li id="page121"><a href="ornamental_fish.php" title="Page Link">Ornamental Fish</a></li>
            <li id="page110"><a href="paper_paperproducts.php" title="Page Link">Paper Products &amp; Stationery</a></li>
            <li id="page122"><a href="pharmaceuticals_medicines.php" title="Page Link">Pharmaceuticals & Medicines</a></li>
            <li id="page124"><a href="food_beverages.php" title="Page Link">Processed Foods & Beverages</a></li>
            <li id="page102"><a href="rubber_rubberproducts.php" title="Page Link">Rubber & Rubber Products</a></li>
            <li id="page118"><a href="services.php" title="Page Link">Services</a></li>
            <li id="page107"><a href="spices_essentialoils.php" title="Page Link">Spices & Essential Oils</a></li>
           <li id="page101"><a href="tea.php" title="Page Link">Tea</a></li>
            <li id="page125"><a href="tissue_culture.php" title="Page Link">Tissue Culture</a></li>
            <li id="page105"><a href="tourism.php" title="Page Link">Tourism</a></li>
            <li id="page127"><a href="toys_games_sports_products.php" title="Page Link">Toys, Games & Sports Goods</a></li>
            <li id="page119"><a href="wooden_products.php" title="Page Link">Wooden Products</a></li>
          </ul>
        </div>
        <!--// end #navVertical //--> </div>
      <!--// end #columnOne //--><!-- InstanceBeginEditable name="col2" -->
      <div id="columnTwo">
      <h1> </h1>
      <h2>Column 2</h2>
      <table width="336" border="1" cellspacing="2" cellpadding="2">
        <tr>
          <th width="324" scope="row"><?php echo $row_rs_category_apparel['Catergory Image']; ?></th>
        </tr>
        <tr>
          <th scope="row"><?php echo $row_rs_category_apparel['categoryName']; ?></th>
        </tr>
      </table>
      <p> </p>
      <p>Lorem ipsum dolor sit amet, <strong>consectetuer adipiscing elit</strong>. Pellentesque hendrerit tellus mollis dolor. </p>
      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. Aenean in nisi nec dui pretium bibendum. Praesent a sapien at dolor feugiat volutpat.</p>
      <h2>heading h2</h2>
    <p> </p>
      <p>Lorem ipsum dolor sit amet, <em>consectetuer adipiscing elit</em>. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. </p>
    <h3>heading h3</h3>
      <p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. </p>
      <h4>heading h4</h4>
      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. </p>
      <ul>
        <li>Bullet List Item</li>
        <li>Bullet List Item</li>
        <li>Bullet List Item
          <ul>
            <li>Bullet List Item</li>
            <li>Bullet List Item</li>
          </ul>
        </li>
      </ul>
      <ol>
        <li>Numbered List Item</li>
        <li>Numbered List Item</li>
        <li>Numbered List Item
          <ol>
            <li>Numbered List Item</li>
            <li>Numbered List Item</li>
          </ol>
        </li>
      </ol>
      </div>
      <!-- InstanceEndEditable --><!--// end #columnTwo //--><!-- InstanceBeginEditable name="col3" -->
      <div id="columnThree">
        <h1> </h1>
        <h2>Column 3</h2>
        <?php do { ?>
          <table width="335" border="1" cellpadding="2" cellspacing="2">
            <tr>
              <th scope="row"> </th>
            </tr>
            <tr>
              <th width="324" scope="row"><?php echo $row_rs_details_apparel['exporterLogo']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['productName']; ?></th>
            </tr>
            <tr>
              <th scope="row"><a href="../exporter_profile.php?exporterID=<?php echo $row_rs_details_apparel['exporterID']; ?>"><?php echo $row_rs_details_apparel['exporterName']; ?></a></th>
            </tr>
            <tr>
              <th height="19" scope="row"><?php echo $row_rs_details_apparel['exporterStreet']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['exporterCity']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['exporterContact']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['exporterDesignation']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['exporterPhone']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['exporterFax']; ?></th>
            </tr>
            <tr>
              <th scope="row"><?php echo $row_rs_details_apparel['exporterEmail']; ?></th>
            </tr>
            <tr>
              <th height="25" scope="row"> </th>
            </tr>
          </table>
          <?php } while ($row_rs_details_apparel = mysql_fetch_assoc($rs_details_apparel)); ?>
    <p> </p>
        <p>
          <?php if ($pageNum_rs_details_apparel > 0) { // Show if not first page ?>
      <a href="<?php printf("%s?pageNum_rs_details_apparel=%d%s", $currentPage, max(0, $pageNum_rs_details_apparel - 1), $queryString_rs_details_apparel); ?>">Previous</a>
      <?php } // Show if not first page ?>
          <?php if ($pageNum_rs_details_apparel < $totalPages_rs_details_apparel) { // Show if not last page ?>
            <a href="<?php printf("%s?pageNum_rs_details_apparel=%d%s", $currentPage, min($totalPages_rs_details_apparel, $pageNum_rs_details_apparel + 1), $queryString_rs_details_apparel); ?>"> Next </a>
            <?php } // Show if not last page ?>
        </p>
    </div>
      <!-- InstanceEndEditable --><!--// end #columnThree //--><!-- InstanceBeginEditable name="col4" -->
      <div id="columnFour">
        <h2>Column 4</h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
        <ul>
          <li>Bullet List Item</li>
          <li>Bullet List Item</li>
          <li>Bullet List Item
            <ul>
              <li>Bullet List Item</li>
              <li>Bullet List Item</li>
            </ul>
          </li>
        </ul>
      </div>
      <!-- InstanceEndEditable --><!--// end #columnFour //--><!-- InstanceBeginEditable name="edibanner" -->
      <div align="center" id="banner" >
        <p>Banner ads</p>
      </div>
      <!-- InstanceEndEditable -->
      <div align="center" id="footer">
        <ul id="bot">
          <li id="bot1" ><a  href="../index.html" >About Us</a></li>
          <li id="bot2"><a  href="../our_services.html" >Our Services</a></li>
          <li id="bot4"><a href="../products_services.php" >Products</a></li>
          <li id="bot5"><a  href="../suppliers.php" >Suppliers</a></li>
          <li id="bot6"><a  href="../contact_us.html" >Contact Us</a></li>
        </ul>
      <!--// end #footer //-->
    </div>
    <!--// end #mainContainer //-->
    </body>
    <!-- InstanceEnd --></html>
    <?php
    mysql_free_result($rs_category_apparel);
    ?>
    Secondly the detal page.
    <?php require_once('Connections/ltndb.php'); ?>
    <?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";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_ltndb, $ltndb);
    $query_rs_exporterprofile = "SELECT exporters.exporterID, exporters.exporterName, exporters.exporterStreet, exporters.exporterCity, exporters.exporterZip, exporters.Country, exporters.exporterContact, exporters.exporterDesignation, exporters.exporterPhone, exporters.exporterFax, exporters.exporterEmail, exporters.exporterWebsite, exporters.exporterLogo, exporters.FactoryAddress, exporters.CommencementYear, exporters.Manufacturer_OR_Producer, exporters.EstablishmentType, exporters.SynopsisLink, products.productID, products.productName, products.image FROM exporters, products WHERE products.exporterID = exporters.exporterID";
    $rs_exporterprofile = mysql_query($query_rs_exporterprofile, $ltndb) or die(mysql_error());
    $row_rs_exporterprofile = mysql_fetch_assoc($rs_exporterprofile);
    $totalRows_rs_exporterprofile = mysql_num_rows($rs_exporterprofile);$varexporter_rs_exporterprofile = "1";
    if (isset($_GET['exporterID'])) {
      $varexporter_rs_exporterprofile = $_GET['exporterID'];
    mysql_select_db($database_ltndb, $ltndb);
    $query_rs_exporterprofile = sprintf("SELECT exporters.exporterID, exporters.exporterName, exporters.exporterStreet, exporters.exporterCity, exporters.exporterZip, exporters.Country, exporters.exporterContact, exporters.exporterDesignation, exporters.exporterPhone, exporters.exporterFax, exporters.exporterEmail, exporters.exporterWebsite, exporters.exporterLogo, exporters.FactoryAddress, exporters.CommencementYear, exporters.Manufacturer_OR_Producer, exporters.EstablishmentType, exporters.SynopsisLink, products.productID, products.productName, products.image FROM exporters, products WHERE products.exporterID=exporters.exporterID AND exporters.exporterID=%s", GetSQLValueString($varexporter_rs_exporterprofile, "int"));
    $rs_exporterprofile = mysql_query($query_rs_exporterprofile, $ltndb) or die(mysql_error());
    $row_rs_exporterprofile = mysql_fetch_assoc($rs_exporterprofile);
    $totalRows_rs_exporterprofile = mysql_num_rows($rs_exporterprofile);
    $query_rs_exporterprofile = "SELECT exporters.exporterID, exporters.exporterName, exporters.exporterStreet, exporters.exporterCity, exporters.exporterZip, exporters.Country, exporters.exporterContact, exporters.exporterDesignation, exporters.exporterPhone, exporters.exporterFax, exporters.exporterEmail, exporters.exporterWebsite, exporters.exporterLogo, exporters.FactoryAddress, exporters.CommencementYear, exporters.Manufacturer_OR_Producer, exporters.EstablishmentType, exporters.SynopsisLink, products.productID, products.productName, products.image, products.exporterID FROM exporters, products ";
    $rs_exporterprofile = mysql_query($query_rs_exporterprofile, $ltndb) or die(mysql_error());
    $row_rs_exporterprofile = mysql_fetch_assoc($rs_exporterprofile);
    $totalRows_rs_exporterprofile = mysql_num_rows($rs_exporterprofile);
    ?>
    <!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"><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="description" content="Enter your description here so that you can take advantage of search engine optimization." />
    <meta name="author" content="The CSS Tinderbox - http://www.csstinderbox.com" />
    <link rel="stylesheet" type="text/css" href="reset.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="style.css" media="screen,print" />
    <title>the css tinderbox: fixed 4-column layout</title>
    <!-- InstanceParam name="id" type="text" value="pageX" -->
    /* Googogle analytics*/
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-34050000-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    /* Googogle analytics*/
    </head>
    <body id="pageX">
    <div id="mainContainer" class="clearfix">
      <div class="clearfix" id="header">
      </div>
      <!--// end #header //-->
      <div id="navHorizontal">
        <ul>
          <li id="page1"><a href="index.html">About Us</a></li>
          <li id="page2"><a href="our_services.html">Our Services</a></li>
          <li id="page4"><a href="products_services.php">Products</a></li>
          <li id="page5"><a href="suppliers.php">Suppliers</a></li>
          <li id="page6"><a href="contact_us.html">Contact Us</a></li>
        </ul>
      </div>
      <!--// end #navHorizontal //-->
      <div id="columnOne">
        <h1> </h1>
        <h2 id="listhead">Products & Services </h2>
        <p> </p>
        <div id="navVertical">
          <ul>
            <li id="page104"><a href="products/apparel.php" title="Page Link">Apparel  & Garment Accessories</a></li>
            <li id="page115"><a href="products/body_care.php" title="Page Link">Body Care Products</a></li>
            <li id="page113"><a href="products/cereals.php" title="Page Link">Cereals</a></li>
            <li id="page128"><a href="products/chemicals_plastics.php" title="Page Link">Chemicals &Plastics</a></li>
            <li id="page103"><a href="products/coconut_coconutproducts.php" title="Page Link">Coconut & Coconut Products</a></li>
            <li id="page120"><a href="products/computers_electronics.php" title="Page Link">Computers & Electronics</a></li>
            <li id="page123"><a href="products/fisheries_products.php" title="Page Link">Fisheries Products</a></li>
            <li id="page108"><a href="products/foliage_cutflowers.php" title="Page Link">Foliage & Cut Flowers</a></li>
            <li id="page112"><a href="products/fruits_vegetables.php" title="Page Link">Fruits & Vegetables</a></li>
            <li id="page106"><a href="products/gems_jewelry.php" title="Page Link">Gems & Jewellery</a></li>
            <li id="page116"><a href="products/handicrafts.php" title="Page Link">Handicrafts</a></li>
            <li id="page111"><a href="products/handloom_textiles.php" title="Page Link">Handloom & Textiles</a></li>
            <li id="page109"><a href="products/leather_leatherproducts.php" title="Page Link">Leather & Leather Goods</a></li>
            <li id="page126"><a href="products/machinery_equipment.php" title="Page Link">Machinery & Accessories</a></li>
            <li id="page114"><a href="products/metal_metalproducts.php" title="Page Link">Metal & Metal Products</a></li>
            <li id="page117"><a href="products/mineral_products.php" title="Page Link">Mineral Products</a></li>
            <li id="page121"><a href="products/ornamental_fish.php" title="Page Link">Ornamental Fish</a></li>
            <li id="page110"><a href="products/paper_paperproducts.php" title="Page Link">Paper Products &amp; Stationery</a></li>
            <li id="page122"><a href="products/pharmaceuticals_medicines.php" title="Page Link">Pharmaceuticals & Medicines</a></li>
            <li id="page124"><a href="products/food_beverages.php" title="Page Link">Processed Foods & Beverages</a></li>
            <li id="page102"><a href="products/rubber_rubberproducts.php" title="Page Link">Rubber & Rubber Products</a></li>
            <li id="page118"><a href="products/services.php" title="Page Link">Services</a></li>
            <li id="page107"><a href="products/spices_essentialoils.php" title="Page Link">Spices & Essential Oils</a></li>
           <li id="page101"><a href="products/tea.php" title="Page Link">Tea</a></li>
            <li id="page125"><a href="products/tissue_culture.php" title="Page Link">Tissue Culture</a></li>
            <li id="page105"><a href="products/tourism.php" title="Page Link">Tourism</a></li>
            <li id="page127"><a href="products/toys_games_sports_products.php" title="Page Link">Toys, Games & Sports Goods</a></li>
            <li id="page119"><a href="products/wooden_products.php" title="Page Link">Wooden Products</a></li>
          </ul>
        </div>
        <!--// end #navVertical //--> </div>
      <!--// end #columnOne //--><!-- InstanceBeginEditable name="col2" -->
      <div id="columnTwo">
        <h1> </h1>
        <h2>Column 2</h2>
        <p>Company Logo:</p>
        <table width="300" border="1" cellspacing="2" cellpadding="2">
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterLogo']; ?></th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
        </table>
        <p> </p>
        <p>Company Name:</p>
        <table width="300" border="1" cellpadding="2" cellspacing="2">
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterName']; ?></th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
        </table>
        <p> </p>
    <p>Brief description:</p>
    <table width="300" border="1" cellpadding="2" cellspacing="2">
      <tr>
        <th scope="row"><?php echo $row_rs_exporterprofile['SynopsisLink']; ?></th>
      </tr>
      <tr>
        <th scope="row"> </th>
      </tr>
    </table>
    <p> </p>
        <p>Lorem ipsum dolor sit amet, <strong>consectetuer adipiscing elit</strong>. Pellentesque hendrerit tellumollis dolor. </p>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. Aenean in nisi nec dui pretium bibendum. Praesent a sapien at dolor feugiat volutpat.</p>
        <h2>heading h2</h2>
        <p>Lorem ipsum dolor sit amet, <em>consectetuer adipiscing elit</em>. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. </p>
        <h3>heading h3</h3>
        <p>Lorem ipsum dolor sit amet, <a href="#">consectetuer adipiscing elit</a>. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. </p>
        <h4>heading h4</h4>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque hendrerit tellus mollis dolor. Cras urna. Sed tellus. </p>
        <ul>
          <li>Bullet List Item</li>
          <li>Bullet List Item</li>
          <li>Bullet List Item
            <ul>
              <li>Bullet List Item</li>
              <li>Bullet List Item</li>
            </ul>
          </li>
        </ul>
        <ol>
          <li>Numbered List Item</li>
          <li>Numbered List Item</li>
          <li>Numbered List Item
            <ol>
              <li>Numbered List Item</li>
              <li>Numbered List Item</li>
            </ol>
          </li>
        </ol>
      </div>
      <!-- InstanceEndEditable --><!--// end #columnTwo //--><!-- InstanceBeginEditable name="col3" -->
      <div id="columnThree">
        <h1> </h1>
        <h2>Column 3</h2>
        <p>Company Address:</p>
        <table width="300" border="1" cellspacing="2" cellpadding="2">
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterName']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterStreet']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterCity']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterZip']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['Country']; ?></th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
        </table>
        <p> </p>
        <p>Contact Details:</p>
        <table width="300" border="1" cellspacing="2" cellpadding="2">
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterContact']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterDesignation']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterPhone']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterFax']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterEmail']; ?></th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
        </table>
        <p> </p>
        <p>Company Website:</p>
        <table width="300" border="1" cellpadding="2" cellspacing="2">
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['exporterWebsite']; ?></th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
        </table>
        <p> </p>
        <p>Exports:</p>
        <table width="300" border="1" cellspacing="2" cellpadding="2">
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['image']; ?></th>
          </tr>
          <tr>
            <th scope="row"><?php echo $row_rs_exporterprofile['productName']; ?></th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
          <tr>
            <th scope="row"> </th>
          </tr>
        </table>
        <p> </p>
        <p> </p>
        <ul>
          <li>Bullet List Item
            <ul>
              <li>Bullet List Item</li>
              <li>Bullet List Item</li>
            </ul>
          </li>
        </ul>
      </div>
      <!-- InstanceEndEditable --><!--// end #columnThree //--><!-- InstanceBeginEditable name="col4" -->
      <div id="columnFour">
        <h2>Column 4</h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
        <ul>
          <li>Bullet List Item</li>
          <li>Bullet List Item</li>
          <li>Bullet List Item
            <ul>
              <li>Bullet List Item</li>
              <li>Bullet List Item</li>
            </ul>
          </li>
        </ul>
      </div>
      <!-- InstanceEndEditable --><!--// end #columnFour //--><!-- InstanceBeginEditable name="edibanner" -->
      <div align="center" id="banner" >
        <p>Banner ads</p>
      </div>
      <!-- InstanceEndEditable -->
      <div align="center" id="footer">
        <ul id="bot">
          <li id="bot1" ><a  href="index.html" >About Us</a></li>
          <li id="bot2"><a  href="our_services.html" >Our Services</a></li>
          <li id="bot4"><a href="products_services.php" >Products</a></li>
          <li id="bot5"><a  href="suppliers.php" >Suppliers</a></li>
          <li id="bot6"><a  href="contact_us.html" >Contact Us</a></li>
        </ul>
      <!--// end #footer //-->
    </div>
    <!--// end #mainContainer //-->
    </body>
    <!-- InstanceEnd --></html>
    <?php
    mysql_free_result($rs_exporterprofile);
    ?>
    Thanks a lot in advance for your assistance in overcoming this hurdle.
    Rgds

  • SUMIF to sum only if test-value field is non-blank?

    Hey Numbers experts, I'm looking for a way to conditionally sum the values in a column. In other words, if the corresponding field in my "test values" column is blank, I do not want to include the value from the same row in my "sum values" column. Is there a way to do this?
    It seems that SUMIF is the perfect function, I just can't figure out a way to make it look for only non-blank fields. the test values, except for the blank fields, are all going to be unique values, so there is really nothing else to use as a test other than the presence or absence of data. Help?
    Thanks in advance!

    C2=SUMIF(A, "<>"&"", B)
    this is shorthand for... select cell C2, then type (or copy and paste from here) the formula:
    =SUMIF(A, "<>"&"", B)
    the expression:
    "<>"&"" 
    reads:
    "is not equal to the empty string"

  • Advanced recordset and variables problem

    Can anyone help!!!
    Im trying to build an advanced recordset for a seach query...
    Im using CS6, and I want to add 3 variables, now I write my query and  when I press ok on advanced recordset panel, some error pops up telling me they dont exist.
    What AM I DOING WRONG!!
    this is my query :
    SELECT Contrats.Client, Contrats.de, Contrats.a, Contrats.quantite,  Contrats.format, Contrats.etablissement, Etablissements.Nom,  Etablissements.Contact, Etablissements.Adresse, Etablissements.Ville,  Etablissements.telephone, Etablissements.Courriel
    FROM Contrats, Etablissements
    WHERE Etablissements.Nom=Contrats.etablissement AND etablissement1  AND Contrats.de BETWEEN De1 AND a1  AND Contrats.a BETWEEN De1 AND  a1
    My variables are ;
    varetablissement1 : type : text  -  Default value : -1 - Run-time value : $_GET('etablissement1')
    varDe1 : type : text  -  Default value : -1 - Run-time value : $_GET('De1')
    vara1 : type : text  -  Default value : -1 - Run-time value : $_GET('a1')
    Also after ok is pressed a new variable appears called totalRows and takes  over data from another variables, and making that data disapear from the original ...
    Everything works fine until this part :
    AND Contrats.de BETWEEN De1 AND a1  AND Contrats.a BETWEEN De1 AND a1
    Thanks for helping, Ive searched far and wide for any answers on this.

    Datatype for Etablissements.Nom is text, for Contrats.a and Contrats.de is date. Nom is capitalised for no particular reason, that's how I typed it at the time in php admin.
    Table structure for table Etablissements
    Column
    Type
    Null
    Default
    ID
    int(50)
    No
    Nom
    varchar(250)
    No
    Statut
    varchar(250)
    No
    Contact
    varchar(250)
    No
    Adresse
    varchar(250)
    No
    Secteur
    varchar(250)
    No
    Ville
    varchar(250)
    No
    Province
    varchar(250)
    No
    CodePostal
    varchar(250)
    No
    telephone
    varchar(250)
    No
    Courriel
    varchar(250)
    No
    Ristournes
    varchar(250)
    No
    Montant
    varchar(250)
    No
    Renouvellement
    date
    No
    Circuit
    varchar(250)
    No
    Age
    varchar(250)
    No
    Age2
    varchar(250)
    No
    Pourcent1
    varchar(250)
    No
    Pourcent2
    varchar(250)
    No
    maxexpress1
    varchar(250)
    Yes
    aucun
    maxdigital1
    varchar(250)
    Yes
    aucun
    megamax1
    varchar(250)
    Yes
    aucun
    maxexpress2
    varchar(250)
    Yes
    0
    Hommes
    varchar(250)
    Yes
    0
    Femmes
    varchar(250)
    Yes
    0
    Neutres
    varchar(250)
    Yes
    0
    Handicapes
    varchar(250)
    Yes
    0
    Maxdigital2
    varchar(250)
    Yes
    0
    Megamax2
    varchar(250)
    Yes
    0
    MDhommes
    varchar(250)
    Yes
    NULL
    MDfemmes
    varchar(250)
    Yes
    NULL
    MDneutres
    varchar(250)
    Yes
    NULL
    Table structure for table Contrats
    Column
    Type
    Null
    Default
    Id
    int(250)
    No
    ContratID
    varchar(250)
    No
    Client
    varchar(250)
    No
    de
    date
    No
    a
    date
    No
    quantite
    varchar(250)
    No
    format
    varchar(250)
    No
    rayon
    varchar(250)
    No
    etablissement
    varchar(250)
    No
    Hommes
    varchar(250)
    Yes
    NULL
    Femmes
    varchar(250)
    Yes
    NULL
    Neutre
    varchar(250)
    Yes
    NULL
    Handicape
    varchar(250)
    Yes
    NULL
    Notes
    varchar(10000)
    No
    annule
    varchar(250)
    No
    As for the examples of the variables passed in the querystring, do you mean what is passed from my search form?

  • HP Pavilion DV7; System will not boot; Memory Test Failed using Advanced System Diagnostic​s

    Not sure exactly how, but I managed to contracted several variants of the nasty Rovnix virus and now my system will not even boot into Safe Mode after trying to restore to several different restore points.  Enabled bootlogging, but not sure how to retrieve the log.
    Currently am able to get into HP Advanced Diagnostics and began Start-Up Test.  Test failed on Memory Module:
    Failure ID: Q0AE6C-5LS79T-MFH15G-406N03
    Any next steps or directional assistance would be greatly appreciated.  Thank you in advance!

    Hello @GarrettBishop,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how your notebook computer has failed a memory test in the advanced system, and I would be happy to assist you in this matter!
    Since the Failure ID has come up with Q0AE6C-5LS79T-MFH15G-406N03, I recommend contacting our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assis​t.html
    I hope this helps!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Color the value in Advanced Table

    Hi,
    I have got a requirement to color value in advanced table based on condition.
    I have written a code in PR and it is working fine in jdeveloper and modified custom.xss file in $OA_HTML\cabo/styles folder.
    runtime i am setting a attribute value 'RedColor' in my attribute of a view object.
    when i deploy my code onto the server and copy custom.xss file into $OA_HTML\cabo/styles folder, bounce apache , clear browser cache. it is not working on instanace.
    below code which i have written in my processRequest of a controller.
    OAAdvancedTableBean tb = (OAAdvancedTableBean)webBean.findChildRecursive("RInstTable");
    OAColumnBean l_dueDateColumn = (OAColumnBean)tb.findChildRecursive("DueDatecol");
    OAMessageStyledTextBean dueDate = (OAMessageStyledTextBean)l_dueDateColumn.findIndexedChildRecursive("RDueDate"); //Job is the ID of column in table
    OADataBoundValueViewObject cssDueDate = new OADataBoundValueViewObject(dueDate,"DueDateColor");
    dueDate.setAttributeValue(UIConstants.STYLE_CLASS_ATTR, cssDueDate); //Setting Custom CSS
    below code whiich i have written in custom.xss file.
    <style selector=".RedColor">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">9pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#FF0000</property>
    <property name="text-indent">3px</property>
    </style>
    Can any one throw some points on this.
    Regards
    Hitesh

    Hi,
    Did you check that the data Bound Value returned the object as 'RedColor'.Since You are using OADataBoundValueViewObject,check what the value is returned?
    In Mozilla, there is a tool called firebug, You can install that plugin and check if the className is properly assigned to the styled text and the CSS definition of the same is present in the CSS tab of firebug.
    Regards,
    Guru Krishnan V.

  • HP QTP10 cannot read Automation values of Advanced DataGrid

    Hi everyone,
    We're an Automation functional testing team, testing a flex application with HP QTP v10. So far we've successfully automated many parts of the application. Now, we're struck at a serious issue.
    The issue is QTP cannot read automation values specified for an Advanced Datagrid (ADG).
    While trying to read row data of the ADG, the automation name of QTP shows like,
    "lblData | someGroup |  | ** |  |  |  |  |  |  |  |  |  | lblData"
    The screenshot of Object Spy while spying ADG is also attached.
    Other than the Automation Index, we are not able to populate any automation values of a row data.
    The ADG is a custom one. Our development team has customized it in some way, and we dont have access to the code. They are using an External renderer or Custom renderer to render values into the column.
    As there is no possiblity for value-based recording, we tried to access the ADG with index-based recording. Then, we 're able to perform operations like Click, but cannot read contents of the row/cell.
    We're using:
    HP Quick TestProfessional v10.0
    Flex plugin 4.5
    Internet Explorer 7
    Flash Player v10
    Our Questions are:
    How to get automation values for these custom ADG?
    Is there any other possible ways to access the custom ADG components other than these automation values?
    Do we need any patches/plugin upgradation to perform this?
    Is there any other tools in market that can recognize and access these custom ADGs?
    Without these automation values we're unable to proceed further work. Any replies/comments/help are welcome.
    Thank you!

    A sortCompareFunction would look something like:
    Function sortWithNullAtEnd(a:Object, b:Object, field:Array = null):int
        if (a.fieldName == null && b.fieldName == null) return 0;
        if (a.fieldName == null) return 1;
        if (b.fieldName == null) return –1;
        if (a.fieldName < b.fieldName)
            return –1;
        if (a.fieldName > b.fieldName)
            return 1;
        return 0;
    Note that this sort would be unstable so you might be better off using a second field to get stability.

  • Advanced recordset problem (DW inserting totalRows variable)

    Hi, i'm using DW CS4 and am working on my first database driven site. All keeps going well til I get to a certain task. I've recreated the site separately to make sure I'd not done anything silly but the same issue arises. I've created a recordset that takes a URL variable (orgname) and filters the information into a table no problem. I've put a series of links above the table that puts a second variable into the URL so it read something like this: "...orgdetail.php?orgname=BSMC&catname=S1"
    This kind of works for one link (where it picks up the default values in the variables I believe) but then falls apart. DW also inserts another variable 'totalRows' and screws the other variables up! I apologise for the vagueness of my query and hope to post a link up tomorrow to show more but can anyone shed any light on why DW would insert the totalRows variable??
    TIA...Andre

    I've uploaded the pages:
    http://pitlanepass.com/test/testindex.php
    http://pitlanepass.com/test/testorg.php
    I Think it may be an issue between default variable values and not every organisation has a rider of every category so it's dropping the URL variable?
    Heres a snippet of the code:
    $varOrgname_rsRiderdetail = "British Supermoto";
    if (isset($_GET['orgname'])) {
      $varOrgname_rsRiderdetail = $_GET['orgname'];
    $varCatname_rsRiderdetail = "S1";
    if (isset($_GET['catname'])) {
      $varCatname_rsRiderdetail = $_GET['catname'];
    mysql_select_db($database_connPitlane, $connPitlane);
    $query_rsRiderdetail = sprintf("SELECT riders.ridernumber, riders.riderfirst, riders.riderlast, riders.riderorganisation, riders.ridercat, riders.riderimage FROM riders WHERE riders.riderorganisation=%s  AND riders.ridercat=%s", GetSQLValueString($varOrgname_rsRiderdetail, "text"),GetSQLValueString($varCatname_rsRiderdetail, "text"));
    $rsRiderdetail = mysql_query($query_rsRiderdetail, $connPitlane) or die(mysql_error());
    $row_rsRiderdetail = mysql_fetch_assoc($rsRiderdetail);
    $totalRows_rsRiderdetail = mysql_num_rows($rsRiderdetail);
    $varOrgname_rsClassnavigation = "British Supermoto";
    if (isset($_GET['orgname'])) {
      $varOrgname_rsClassnavigation = $_GET['orgname'];
    mysql_select_db($database_connPitlane, $connPitlane);
    $query_rsClassnavigation = sprintf("SELECT categories.catname FROM categories WHERE categories.catorganisation=%s", GetSQLValueString($varOrgname_rsClassnavigation, "text"));
    $rsClassnavigation = mysql_query($query_rsClassnavigation, $connPitlane) or die(mysql_error());
    $row_rsClassnavigation = mysql_fetch_assoc($rsClassnavigation);
    $totalRows_rsClassnavigation = mysql_num_rows($rsClassnavigation);
    mysql_select_db($database_connPitlane, $connPitlane);
    $query_rsRiderdetails = "SELECT riders.ridernumber, riders.riderfirst, riders.riderlast, riders.riderID, riders.ridercat, riders.riderorganisation, riders.riderimage, riders.riderdescription FROM riders";
    $rsRiderdetails = mysql_query($query_rsRiderdetails, $connPitlane) or die(mysql_error());
    $row_rsRiderdetails = mysql_fetch_assoc($rsRiderdetails);
    mysql_select_db($database_connPitlane, $connPitlane);
    $query_rsRiderdetails = "SELECT riderID, riderfirst, riderlast, ridernumber, ridercat, riderorganisation, riderimage, riderdescription FROM riders";
    $rsRiderdetails = mysql_query($query_rsRiderdetails, $connPitlane) or die(mysql_error());
    $row_rsRiderdetails = mysql_fetch_assoc($rsRiderdetails);
    $query_rsRiderdetails = "SELECT riderID, riderfirst, riderlast, ridernumber, ridercat, riderorganisation, riderimage, riderdescription FROM riders ORDER BY ridernumber ASC";
    $rsRiderdetails = mysql_query($query_rsRiderdetails, $connPitlane) or die(mysql_error());
    $row_rsRiderdetails = mysql_fetch_assoc($rsRiderdetails);
    $totalRows_rsRiderdetails = mysql_num_rows($rsRiderdetails);
    ?>

  • Export Advanced Recordset from Database into XML

    I don't think I was clear on my previous post about my goal
    with Exporting an advanced MySQL query to an XML file.
    Simple example: I have a photo gallery that has pictures of
    various Architect Projects. The main page shows distinct images of
    various projects (like an index). When one clicks on this image to
    view the rest of the Project details, a detail page opens with more
    information and additional images within this project.
    I want to use Spry/Ajax to give the images nice dynamic
    effects on the detail page. Normally to get from an index page to a
    detail page using normal server-side procedures, one would have to
    set up a dynamic link to the detail page by passing the recordID
    thru a URL Parameter. The detail page would have a recordset query
    that would call the URL Parameter so that the distinct record
    chosen will be the only record displayed.
    When exporting this query from the database to XML, for some
    reason the following query only displays the <row> node in
    the schema when creating a Dataset. See the following sql query
    that I am trying to use on the detail page to create the dataset
    via XML:
    SELECT*
    FROM project_tbl
    WHERE projectID = [URL PARAM] projectID
    Why, when creating a dataset in Spry and exporting it into
    XML, will this query NOT work?
    What can I do to make this work? URGENT HELP will be kindly
    appreciated.

    Danilo,
    I do not have a link yet as the files are on my remote
    server. I have implemented the code you sent me but still no luck.
    Please see the code I have below:
    The XML Generating Page:
    <?php require_once('../Connections/plymouth.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $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";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    ?>
    <?php
    // Query the database and get the selected records from
    Project & Images
    $colname_rsProject = "-1";
    if (isset($_GET['projectID'])) {
    $colname_rsProject = (get_magic_quotes_gpc()) ?
    $_GET['projectID'] : addslashes($_GET['projectID']);
    mysql_select_db($database_plymouth, $plymouth);
    $query_rsProject = sprintf("SELECT * FROM projects_tbl WHERE
    projectID = %s", GetSQLValueString($colname_rsProject, "int"));
    $rsProject = mysql_query($query_rsProject, $plymouth) or
    die(mysql_error());
    $row_rsProject = mysql_fetch_assoc($rsProject);
    $totalRows_rsProject = mysql_num_rows($rsProject);
    // Send the headers
    header('Content-type: text/xml');
    header('Pragma: public');
    header('Cache-control: private');
    header('Expires: -1');
    ?>
    <?php echo('<?xml version="1.0"
    encoding="utf-8"?>'); ?>
    <root>
    <?php if ($totalRows_rsProject > 0) { // Show if
    recordset not empty ?>
    <?php do { ?>
    <row>
    <?php foreach ($row_rsProject as $column=>$value) {
    ?>
    <<?php echo $column; ?>><?php echo
    $row_rsProject[$column]; ?></<?php echo $column; ?>>
    <?php } ?>
    </row>
    <?php } while ($row_rsProject =
    mysql_fetch_assoc($rsProject)); ?>
    <?php } // Show if recordset not empty ?>
    </root>
    <?php
    mysql_free_result($rsProject);
    ?>
    --------------------------------------------here is the
    source code to the projecct_detail page to display the
    content--------
    The projectID from the category page is being passed via a
    URL parameter. When I pull up the Spry Dataset in this page to
    display the nodes, this is the error I received (Unable to locate
    or parse the XML source (-1,-1). No nodes are being displayed.
    <!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"><!--
    InstanceBegin template="/Templates/temp.dwt.php"
    codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <link href="global.css" rel="stylesheet" type="text/css"
    />
    <!-- InstanceBeginEditable name="head" -->
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new
    Spry.Data.XMLDataSet("xml/detail.php><?php echo(
    isset($_GET['projectID'])?$_GET['projectID']:'' ); ?>", "row");
    //-->
    </script>
    <!-- InstanceEndEditable -->
    </head>
    <body class="oneColFixCtr">
    <div id="container"><!-- InstanceBeginEditable
    name="Main Content" -->
    <div id="mainContent">
    <h1> </h1>
    <p> </p>
    <!-- end #mainContent -->
    </div>
    <!-- InstanceEndEditable -->
    <div id="footer">
    <img src="images/banner.gif" width="500" height="66"
    alt="Plymouth Road Architects" />
    <br />
    <div id="nav">
    <table width="500" border="0" cellspacing="2"
    cellpadding="2">
    <tr>
    <td><div align="center"><a href="
    http://plymouthroadarchitects.com">HOME</a></div></td>
    <td><div align="center"><img
    src="images/bullet.gif" width="8" height="8"
    /></div></td>
    <td><div align="center"><a
    href="company_info.php">ABOUT/CONTACT
    US</a></div></td>
    <td><div align="center"><img
    src="images/bullet.gif" alt="" width="8" height="8"
    /></div></td>
    <td><div align="center"><a
    href="new_homes.php">NEW HOMES</a></div></td>
    <td><div align="center"><img
    src="images/bullet.gif" alt="" width="8" height="8"
    /></div></td>
    <td><div align="center"><a
    href="additions.php">ADDITIONS</a></div></td>
    <td><div align="center"><img
    src="images/bullet.gif" alt="" width="8" height="8"
    /></div></td>
    <td><div align="center"><a
    href="main_street.php">MAIN
    STREET</a></div></td>
    </tr>
    </table>
    </div>
    </div>
    <!-- end #container --></div>
    </body>
    <!-- InstanceEnd --></html>
    Sorry for all the confusion and not submitting this code to
    you earlier on this forum. I really do appreciate your feedback and
    assistance

  • How to get the value from Advanced table

    Hi,
    In the Advanced table have 2 LOV fields, I need LOV field value dynamically in the controller to validate the save button, if iam not selected any value in lov save button will not allow to save the data. In the table i am using 'Add another row'. How to get the lov field value in the process form request??? and how to do this requirement
    Thanks
    Naresh

    1. You can specify required property on LOV field to "yes". For events where you wish to disable the client side validations, set the property disable client side validation to "true".
    2. If above behavior is not what you are looking for, then you need to handle in AM and not CO.
    a. Call an AM method from CO.
    b. In that AM method, get handle of VO.
    c. Iterate the VO Rows and check for your validation rules.
    -Prince
    http://www.princekapoor82.blogspot.com

  • How can I construct a list of text values in Table 2 from text values in Table 1:Column A, based upon a test value in Table 1:Column B?

    I am looking for a way to essentially import a select group of values from one table into another. If, for instance, I have a list of names in Column A and a list of colors in Column B, I would like to be able to compile a list of the names which coincide with each distinct color, and do so in a new table specific to that color. Probably an obvious solution, but I'm a relative newbie with Numbers and my spreadsheet experience is fairly limited so I apologize if this is embarrassingly rudimentary. Thanks in advance for any help you can give.

    You can extract a subset in a separate table by adding a helper index column to your table with the original data and using a formula in the separate table.
    But first, have you tried just using a filter on the table to view a subset of the data?  You would simply filter on a color in your Column B and would immediately see the names specific to that color in Column A.  And you could copy-paste those names elsewhere as needed.  No extra columns. No formulas. No fuss.
    SG

  • Get value from Table/Recordset Cell into a JSP variable

    Can anyone please help with this ?...
    I need to get a cell value from a selected row of a table into a variable to pass to a java bean.
    1 - The dynamic table is populated by a recordset named "rs" and has a submit button for each row .
    2 - The user clicks on the corresponding button to select the row.
    3 - The recordset retrieved the ID for that row in the query, but does not display it in the table.
    I have tried :
    <% String ID = rs.getString("bookid");%>
    <% Library.bookConfirm(ID);%>
    But this fails saying that it "cannot resolve variable rs..."
    Yet the recordset populates correctly and its name is "rs"
    Is there another way to do this perhaps ?... ie: put the id in a column of the table and get the cell value ?...
    What would be the syntax to get the ID cell value of that selected row on the button click ?...
    Your feed back would be greatly appreciated.
    Thank you.

    Create a new rs
    ResultSet rs1 = statement.executeQuery(query);
    and use getstring to access the individual cell.

  • How to capture the row  value in Advanced Table on OAF ?

    Hi:
    I was wondering, if anyone has any idea as to how to capture a row value on an advanced table on a OAF Page.
    I am currently trying to capture the Expense Report Number ( first column) on the Track Expenses Reports table on the page /oracle/apps/ap/oie/webui/HomePG.
    Any idea would be helpful ?
    Thank You

    Hi,
    856070 wrote:
    This is what I am looking for :
    Default Functionality
    On the expenses home page there is a table for the Submitted expenses Table ( advanced table) with multiple Expense Number rows , which has a link associated with every expense number. When the user clicks the expense number link , EBS takes you to a more detail information page. ---As per default functionality :::whene ever user clicks on link it will takes u to details info page based expense no right.
    ---Check the property of the Destination URL of the ExpensionNumber column.
    ---In this property u can find the page path and paramam ex:pexpencenumber.
    Customized functionality
    I would like to capture the Expense number on the detailed page to call another application based on the expense number. The expense number on the
    detailed page is not available on the request-parameter or on the VO.
    I was thinking of capturing the ExpenseNumber when the user clicks it and save the expense number on a >transientvalue to retrieve it on the detaile dpage..but unable to do so.---Here get the paramereter pexpencenumber and pass it to another appilcation.
    Regards
    Meher Irk

  • Problem in formatting Total Value in advanced table

    I want to format Total Value for each column to USD format i am able to do for Column values but for Total Value i am not able to make it, i reffered all the previous threads and tried nothing worked out, can any one help me out its very urgent
    Thanks
    Babu

    First thing is as Tapash has pointed out, How did you do it which is not working? Second point is that there is straight forward mention of this scenario in Advanced table section of the Dev guide. Have a look.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Default value in advanced  search

    Hi All,
              I want to give default values in "open advanced search" in opportunities.
    I need to give default as sy-datum in Validto field and start date of each quater as default for Validfrom field.
                     I have written  the code to generate Start date of each month.But i dont no where to incorporate this code.For validto field ,in field group structure ,I tried giving sy-datum ,but nothing is displayed.It is not accepting default value as sy-datum.
              Can any one tell me which method is called when we click on "open advanced search" ?
    Regards,
    Ruby.

    Hi,
    If you are not able to perform this thru personalization, then write the logic in controller class.
    Get the handle of LOV field using its Id in PR method of your controller. After this, set the default value you want to the LOV in the same PR method.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for