Recordset Navigation in Dreamweaver8

Dreamweaver8 has changed the way recordsets are created from
the ADODB.Recordset method to the ADODB.Command method. This seems
by default to create a recordset with a forward only moving cursor.
I would like to be able to move backwards and forwards in the
recordset serverside as necessary. Does anybody know if there is an
easy way to do this other than creating the recordset by hand
coding?
Pete

I haven't been brave enough to update to 8.0.2 yet, but I
think the new
recordsets use the command object and code like:
Set MM_Cmd = Server.CreateObject("ADODB.Command")
MM_Cmd.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;
Data Source= "
& Server.MapPath("/test/db/CharonCart3.mdb")
MM_Cmd.CommandText = "select * from Products"
set RS=MM_Cmd.Execute
So, instead of creating the recordset:
set RS=MM_Cmd.Execute
one could have
Set RS = Server.CreateObject("ADODB.Recordset")
RS.CursorType = 0
RS.CursorLocation = 2
RS.LockType = 1
RS.Open MM_Cmd
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004

Similar Messages

  • Cannot get recordset navigation to work

    I've created a search results page with a recordset titled
    rsPhoneList. Here is the code for it that DW created:
    SELECT *
    FROM DistrictPhoneList
    WHERE EmpName LIKE %colname%
    When I run a test on it, it displays 17 of my records when I
    put in a few letters for a name and indeed there are 17 records.
    That works great. For the repeat region, I changed it to show 10
    records at a time. When I do the search, it comes up with 10
    records.
    However, the navigation bar will not work. I go to Insert,
    Dynamic Data, Recordset Paging, Recordset Navigation. It created my
    recordset navigation bar. I save and upload. When I do the search
    it shows me the first 10 records. When I click Next, it shows me an
    empty table with the correct headings, but no records. Nothing
    works, the previous, next, last. Here is the code it created:
    <table border="0">
    <tr>
    <td><?php if ($pageNum_rsPhoneNames > 0) { //
    Show if not first page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, 0, $queryString_rsPhoneNames);
    ?>">First</a>
    <?php } // Show if not first page ?>
    </td>
    <td><?php if ($pageNum_rsPhoneNames > 0) { //
    Show if not first page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, max(0, $pageNum_rsPhoneNames - 1),
    $queryString_rsPhoneNames); ?>">Previous</a>
    <?php } // Show if not first page ?>
    </td>
    <td><?php if ($pageNum_rsPhoneNames <
    $totalPages_rsPhoneNames) { // Show if not last page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, min($totalPages_rsPhoneNames, $pageNum_rsPhoneNames +
    1), $queryString_rsPhoneNames); ?>">Next</a>
    <?php } // Show if not last page ?>
    </td>
    <td><?php if ($pageNum_rsPhoneNames <
    $totalPages_rsPhoneNames) { // Show if not last page ?>
    <a href="<?php printf("%s?pageNum_rsPhoneNames=%d%s",
    $currentPage, $totalPages_rsPhoneNames, $queryString_rsPhoneNames);
    ?>">Last</a>
    <?php } // Show if not last page ?>
    </td>
    </tr>
    </table>
    What am I doing wrong or what can I do to get it to work
    correctly and show me the rest of the records in the recordset.
    Thanks,
    --Linda

    On the search page, using Post doesn't seem to work with the
    Recordset Paging, Insert Navigation bar. I did some further reading
    and saw that someone else had the issue as well and changed to GET.
    I did that and now everything works.

  • Recordset navigation code bug

    If you insert a Recordset Navigation Bar for a recordset called (say) Images the following code is generated (by CS6 and previous, at least):
    if (isset($_GET['totalRows_rsImages'])) {
      $totalRows_rsImages = $_GET['totalRows_rsImages'];
    } else {
      $all_rsImages = mysql_query($query_rsImages);
      $totalRows_rsImages = mysql_num_rows($all_rsImages);
    If you later rely on a Show if Recordset is Empty/Not Empty behaviour then there is an opportunity for a (potentially malicious) command line alteration to return an incorrect result, e.g. that the recordset is not empty when it actually is. In otherwords, if someone changes or adds a url parameter called totalRows_rsImages the above code will set $totalRows_rsImages above to that value, whether or not the query has returned records.
    A subsequent call to:
    if ($totalRows_rsImages == 0) { // Show if recordset empty
    will show the region, even if the recordset is empty.
    This caught me out, and Adobe should fix it by renaming $totalRows_rsImages to something else where appropriate.

    This caught me out, and Adobe should fix it by renaming
    $totalRows_rsImages to something else where appropriate.
    Yeah, or re-check to make sure it's within range. Not sure how that could be exploited. Forget about Adobe fixing it - they've completely discontinued support of server behaviors.

  • Please Help... Recordset Navigation

    I am using a PHP/MySQL database to incorporate dynamic data
    in my website. In particular, I have a gallery of photo thumbnails
    (the thumbnails are displayed via a Recordset). When clicked on,
    each thumbnail link opens a pop-up window, which displays the name
    and full-size image of the record desired. I've tried to insert a
    Repeated Region server behavior within the pop-up to display one
    full-size picture at a time and a Recordset navigation bar to click
    through the different images. However, I can't seem to figure it
    out.
    Operating System: Mac OS X (v10.3)
    Web Server: Apache
    Browser: N/A
    Database type: MYSQL
    Application server: PHP

    Thanks for your advice, Steve! I'm not sure about the form,
    though. I'm fairly new to PHP...
    Here's the PHP code from the thumbnails page:
    <?php require_once('../../Connections/CSA.php'); ?>
    <?php
    mysql_select_db($database_CSA, $CSA);
    $query_Rides = "SELECT * FROM Rides ORDER BY id ASC";
    $Rides = mysql_query($query_Rides, $CSA) or
    die(mysql_error());
    $row_Rides = mysql_fetch_assoc($Rides);
    $totalRows_Rides = mysql_num_rows($Rides);
    ?>
    <table align="center" cellpadding="0" cellspacing="10"
    style="padding: 5px;">
    <tr>
    <?php
    $Rides_endRow = 0;
    $Rides_columns = 6; // number of columns
    $Rides_hloopRow1 = 0; // first row flag
    do {
    if($Rides_endRow == 0 && $Rides_hloopRow1++ != 0)
    echo "<tr>";
    ?>
    <td>
    <a href="display_ride.php?id=<?php echo
    $row_Rides['id']; ?>" target="_blank" alt="<?php echo
    $row_Rides['name']; ?>" title="<?php echo $row_Rides['name'];
    ?>"><img src="pictures/<?php echo $row_Rides['thumb'];
    ?>" class="ride" /></a></td>
    <?php $Rides_endRow++;
    if($Rides_endRow >= $Rides_columns) {
    ?>
    </tr>
    <?php
    $Rides_endRow = 0;
    while ($row_Rides = mysql_fetch_assoc($Rides));
    if($Rides_endRow != 0) {
    while ($Rides_endRow < $Rides_columns) {
    echo("<td> </td>");
    $Rides_endRow++;
    echo("</tr>");
    }?>
    </table>
    <?php
    mysql_free_result($Rides);
    ?>
    And here's the code from the popup window:
    <?php require_once('../../Connections/CSA.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;
    $currentPage = $_SERVER["PHP_SELF"];
    $colname_current_Ride = "-1";
    if (isset($_GET['id'])) {
    $colname_current_Ride = $_GET['id'];
    mysql_select_db($database_CSA, $CSA);
    $query_current_Ride = sprintf("SELECT * FROM Rides WHERE id =
    %s", GetSQLValueString($colname_current_Ride, "int"));
    $current_Ride = mysql_query($query_current_Ride, $CSA) or
    die(mysql_error());
    $row_current_Ride = mysql_fetch_assoc($current_Ride);
    $totalRows_current_Ride = mysql_num_rows($current_Ride);
    $colname_next_Ride = "-1";
    if (isset($_GET['id'])) {
    $colname_next_Ride = $_GET['id'];
    mysql_select_db($database_CSA, $CSA);
    $query_next_Ride = sprintf("SELECT * FROM Rides WHERE id >
    %s ORDER BY id ASC", GetSQLValueString($colname_next_Ride, "int"));
    $next_Ride = mysql_query($query_next_Ride, $CSA) or
    die(mysql_error());
    $row_next_Ride = mysql_fetch_assoc($next_Ride);
    $totalRows_next_Ride = mysql_num_rows($next_Ride);
    $colname_previous_Ride = "-1";
    if (isset($_GET['id'])) {
    $colname_previous_Ride = $_GET['id'];
    mysql_select_db($database_CSA, $CSA);
    $query_previous_Ride = sprintf("SELECT * FROM Rides WHERE id
    < %s ORDER BY id DESC",
    GetSQLValueString($colname_previous_Ride, "int"));
    $previous_Ride = mysql_query($query_previous_Ride, $CSA) or
    die(mysql_error());
    $row_previous_Ride = mysql_fetch_assoc($previous_Ride);
    $totalRows_previous_Ride = mysql_num_rows($previous_Ride);
    $queryString_current_Ride = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
    $params = explode("&", $_SERVER['QUERY_STRING']);
    $newParams = array();
    foreach ($params as $param) {
    if (stristr($param, "pageNum_current_Ride") == false
    stristr($param, "totalRows_current_Ride") == false) {
    array_push($newParams, $param);
    if (count($newParams) != 0) {
    $queryString_current_Ride = "&" .
    htmlentities(implode("&", $newParams));
    $queryString_current_Ride =
    sprintf("&totalRows_current_Ride=%d%s",
    $totalRows_current_Ride, $queryString_current_Ride);
    ?>
    <h1 class="rideTitle" style="position: relative; top:
    10px"><?php echo $row_current_Ride['name']; ?></h1>
    <area shape="rect" coords="4,3,48,47"
    href="display_ride.php?id=<?php echo $row_previous_Ride['id'];
    ?>" id="Previous Ride" name="Previous Ride" />
    <area shape="rect" coords="47,3,99,47"
    href="display_ride.php?id=<?php echo $row_next_Ride['id'];
    ?>" id="Next Ride" name="Next Ride" />
    <area shape="rect" coords="851,3,897,47" href="#"
    onclick="self.close();" id="Close Window" name="Close Window" />
    <img src="pictures/<?php echo
    $row_current_Ride['image']; ?>" alt="<?php echo
    $row_current_Ride['image']; ?>" title="<?php echo
    $row_current_Ride['image']; ?>" class="ride" style="position:
    relative; top: -15px" />
    <!-- Hide the caption <?php echo
    $row_current_Ride['caption']; ?> -->
    <?php
    mysql_free_result($current_Ride);
    mysql_free_result($next_Ride);
    mysql_free_result($previous_Ride);
    ?>
    Again, I have a decent sense of what to do with PHP, but I'll
    use any help that I can receive. Thanks!
    Kevin

  • Cant add recordset navigation / paging...ERROR HELP

    I have the above recordset below
    $query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, LEFT(tk_job_desc,200) as truncated_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %%"text")%% OR tk_job_salary LIKE %s", GetSQLValueString("%" . $var_tk_job_title_Recordset1 . "%", "text"),GetSQLValueString($var_tk_job_location_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    a syntax error is being shown on the top line
    when i tried to add a recordset navigation (below)
    <table border="0">
                      <tr>
                        <td><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>">First</a>
                            <?php } // Show if not first page ?></td>
                        <td><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, max(0, $pageNum_Recordset1 - 1), $queryString_Recordset1); ?>">Previous</a>
                            <?php } // Show if not first page ?></td>
                        <td><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>">Next</a>
                            <?php } // Show if not last page ?></td>
                        <td><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
                            <a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, $totalPages_Recordset1, $queryString_Recordset1); ?>">Last</a>
                            <?php } // Show if not last page ?></td>
                      </tr>
                  </table>

    I have the same problem. Sorry I can't add any help. Trying
    to figure this out as well.

  • Recordset Navigation bar

    Hi There,
    I'm looking for a way to run the navigation through the pages smoothly. Right now it's "jumpy" and annoying.
    On this page:
    http://martinique.org/martiniquenew/discovery/towns-villages.php
    you will see the page jumping when we navigate through the towns table.
    I understand that the page re-loads itself naturally when using the Recordset Navigation Bar.
    I have added a javascript function in the buttons navigation links to make the page staying at the same level instead of going back to the top.
    Is there a way to make the page not to reload so I could have a smooth navigation?
    I would still like to insert the data from the database.
    Thanks for your help!

    boloco wrote:
    Is there a way to make the page not to reload so I could have a smooth navigation?
    I would still like to insert the data from the database.
    You would need to use Ajax to refresh the page content without reloading. One way of doing this would be to use a recordset to load all the database results into an HTML table, and then use a Master/Detail Spry Data Set. You can see an example of this in action on my website at http://foundationphp.com/dwcs4/gallery_select.php. Even on a fast connection, you will probably notice that the page first loads into a table, and immediately rebuilds. Then, whenever you click one of the descriptions on the left, the page refreshes without reloading. Dreamweaver CS4 builds most of the code automatically.

  • Recordset Navigation

    Afternoon all,
    I am in search of a good tutorial to help me make better
    recordset navigation using CS3. I currently use the standard
    << first < previous > next > last >> type, but
    would like to do it like the pro sites, where its numbered as well
    as the next/previous links.
    I have found a nice extension by Tom Muck, which will be my
    last point of call if I can not find a good tuturial.
    Cheers,
    Steve

    Dooza,
    There are help items that help out with the display of "page
    # of #" etc. Try this out:
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7971.html
    This also might help
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7973.html
    If those links don't work use the help in DW and navigate to:
    Making pages dynamic/Displaying database records/Custom
    recordset navigation bars
    Hope that helps. I've been having trouble getting the
    fwd,back,prvs, first buttons to work at all. Not sure what I'm
    doing wrong.

  • Recordset Navigation Help

    Good Afternoon
    Experts:
    I have quite the dilemna this afternoon.  My application performs a simple select all records from a table to initialize navigation...previous, next, first and last. 
    However, I now have added a routine to load the last viewed record, by the
    logged on User,  in the recordset.  This now causes the original navigation
    to not be in order. 
    My Question:
    Is it possible to perform the select all records and then position a "cursor/index/reference starting point" to a value in that recordset?
    Example:
    Recordset returns:1,2,3,4,5,6,7,8,9...etc
    LastViewed = 5 so base all navigation off of 5...6 next record, 4 is previous record
    Thanks,
    Ed

    Hi Ed!
    This is impossible to implement your issue using DI-RecordSet object, but as an option i could suggest you to implement it by stored procedure (T-SQL query) and execute it by DoQuery().
    To do it you have to:
    - be able to get the last viewed record by code (or T-SQL)
    - use IDENTITY function to build an order you want
    - use UNION operator to get <i>5,6,7,8,9,1,2,3,4</i> instead of <i>1,2,3,4,5,6,7,8,9</i>

  • Ajax recordset navigation

    Hello, I'm looking for ajax code to navigate recordset
    without reload the
    page.
    I use php and asp, any suggestion ?

    Thankyou very much Massimo, I try now.
    "Massimo Foti" <[email protected]> wrote in
    message
    news:er8v79$7cm$[email protected]..
    > "EdIT" <[email protected]> wrote in message
    > news:er86ff$b4o$[email protected]..
    >> Hello, I'm looking for ajax code to navigate
    recordset without reload the
    >> page.
    >> I use php and asp, any suggestion ?
    >
    > I made this for Spry (Adobe's Ajax framework):
    >
    http://www.massimocorner.com/libraries/spry/spry_paging/sample.htm
    >
    >
    > --
    > ----------------------------
    > Massimo Foti, web-programmer for hire
    > Tools for ColdFusion and Dreamweaver developers:
    >
    http://www.massimocorner.com
    > ----------------------------
    >
    >

  • How do I get a recordset to display three images horizontally?

    Hi,
    I'm using DWCS3 with MAMP.
    I want to display three images horizontally in a recordset. I have downloaded Tom Muck's extension horizontal looper and followed the instructions.
    However when I tried to add the recordset navigation bar I ran into some problems.
    If I add a repeat region to Tom Muck's extension then the page doesn't load.
    If I don't add a repeat region to Tom's extension everything works really well except only one image displays rather than three.
    Here is all of my code for the page. 
    Could someone help me please.
    <?php require_once('Connections/connQuery.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;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_rshlimgs = 1;
    $pageNum_rshlimgs = 0;
    if (isset($_GET['pageNum_rshlimgs'])) {
      $pageNum_rshlimgs = $_GET['pageNum_rshlimgs'];
    $startRow_rshlimgs = $pageNum_rshlimgs * $maxRows_rshlimgs;
    mysql_select_db($database_connQuery, $connQuery);
    $query_rshlimgs = "SELECT * FROM image";
    $query_limit_rshlimgs = sprintf("%s LIMIT %d, %d", $query_rshlimgs, $startRow_rshlimgs, $maxRows_rshlimgs);
    $rshlimgs = mysql_query($query_limit_rshlimgs, $connQuery) or die(mysql_error());
    $row_rshlimgs = mysql_fetch_assoc($rshlimgs);
    if (isset($_GET['totalRows_rshlimgs'])) {
      $totalRows_rshlimgs = $_GET['totalRows_rshlimgs'];
    } else {
      $all_rshlimgs = mysql_query($query_rshlimgs);
      $totalRows_rshlimgs = mysql_num_rows($all_rshlimgs);
    $totalPages_rshlimgs = ceil($totalRows_rshlimgs/$maxRows_rshlimgs)-1;
    $queryString_rshlimgs = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rshlimgs") == false &&
            stristr($param, "totalRows_rshlimgs") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rshlimgs = "&" . htmlentities(implode("&", $newParams));
    $queryString_rshlimgs = sprintf("&totalRows_rshlimgs=%d%s", $totalRows_rshlimgs, $queryString_rshlimgs);
    ?><!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=UTF-8" />
    <title>Untitled Document</title>
    <link href="styles/orderlist3.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="lightbox_assets/css/lightbox.css" type="text/css" media="screen" />
    <script src="lightbox_assets/js/prototype.js" type="text/javascript"></script>
    <script src="lightbox_assets/js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="lightbox_assets/js/lightbox.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    a:link {
    color: #999966;
    a:visited {
    color: #FFFFFF;
    a:hover {
    color: #006600;
    a:active {
    color: #666699;
    -->
    </style></head>
    <body class="oneColFixCtrHdr" onload="initLightbox()">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="mainContent">
        <h3>Image catalog</h3>
        <p> </p>
        <table >
          <tr>
            <?php
    $rshlimgs_endRow = 0;
    $rshlimgs_columns = 3; // number of columns
    $rshlimgs_hloopRow1 = 0; // first row flag
    do {
        if($rshlimgs_endRow == 0  && $rshlimgs_hloopRow1++ != 0) echo "<tr>";
       ?>
            <td><p><a href="images/weddingprivate/mr_and_mrs_lowe_18_15.jpg" title="Mr and Mrs Lowe_18_15" rel="lightbox"><img src="<?php echo $row_rshlimgs['imagethumb_url']; ?>" alt="The bride to be getting ready" longdesc="http://The bride to be with her hairdresser" width="100" height="150" /></a></p>
                <p><?php echo $row_rshlimgs['caption']; ?> <img src="images/Untitled-1.gif" alt="spacer" width="170" height="1" /></p>
              <p> </p>
              <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                  <input type="hidden" name="cmd" value="_s-xclick" />
                  <input type="hidden" name="hosted_button_id" value="6782561" />
                  <table>
                    <tr>
                      <td><input type="hidden" name="on0" value="Sizes" />
                        Sizes</td>
                    </tr>
                    <tr>
                      <td><select name="os0">
                          <option value="6x4">6x4 £3.00 </option>
                          <option value="7x5">7x5 £5.00 </option>
                          <option value="12x8">12x8 £6.50 </option>
                        </select>
                      </td>
                    </tr>
                  </table>
                <input type="hidden" name="currency_code" value="GBP" />
                  <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online." />
                  <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
              </form></td>
            <?php  $rshlimgs_endRow++;
    if($rshlimgs_endRow >= $rshlimgs_columns) {
      ?>
          </tr>
    <?php
    $rshlimgs_endRow = 0;
    } while ($row_rshlimgs = mysql_fetch_assoc($rshlimgs));
    if($rshlimgs_endRow != 0) {
    while ($rshlimgs_endRow < $rshlimgs_columns) {
        echo("<td> </td>");
        $rshlimgs_endRow++;
    echo("</tr>");
    }?>
        </table>
        <table border="0">
          <tr>
            <td><?php if ($pageNum_rshlimgs > 0) { // Show if not first page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, 0, $queryString_rshlimgs); ?>"><img src="images/First.gif" border="0" /></a>
                  <?php } // Show if not first page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs > 0) { // Show if not first page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, max(0, $pageNum_rshlimgs - 1), $queryString_rshlimgs); ?>"><img src="images/Previous.gif" border="0" /></a>
                  <?php } // Show if not first page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs < $totalPages_rshlimgs) { // Show if not last page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, min($totalPages_rshlimgs, $pageNum_rshlimgs + 1), $queryString_rshlimgs); ?>"><img src="images/Next.gif" border="0" /></a>
                  <?php } // Show if not last page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs < $totalPages_rshlimgs) { // Show if not last page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, $totalPages_rshlimgs, $queryString_rshlimgs); ?>"><img src="images/Last.gif" border="0" /></a>
                  <?php } // Show if not last page ?>
            </td>
          </tr>
        </table>
        <p> </p>
            <p> </p>
      <!-- end #mainContent --></div>
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html>
    <?php
    mysql_free_result($rshlimgs);
    ?>

    Hi Charles,
    Use [Dr%] Variable formula as =if(IsNull([Dr%]);0;[DR%])
    Here IsNull returns the Boolean value of variable [Dr%] if its true then inserts 0 else the percentage values of failed tests based on the  total number of assembly tests performed.
    I Hope this is what you want to achieve....
    Thanks....
    Pratik

  • RecordSet in JSP page with MySQL database

    I want to create a recordset for my jsp page but i don't know how to do it at all. I know that I need a connection , a statement and a RecordSet. But after that I am Lost.
    I want "First" "Previous" "Next" "Last" to be shown as hyperlinks into my webpage

    Sorry when I say Recondset I mean <b >RecordSet Navigator</b>

  • Recordset Nav Problem

    I have a recordset that returns several results in a repeat region. It works fine until I try and insert a recordset navigation. I keep getting mysql_num_rows supplied argument is not a valid mysql result resource error on line 121 (which is: $totalRows_rsSearch = mysql_num_rows($all_rsSearch);). Is this one of the occasions that I need to move the recordset code somewhere? I know sometimes DW puts code after the fact which returns an error. I know I have results in this page, which show until I add navigation. Anyone familiar with this? It is a lot of code...so I didn't want to post it. I can though if I need to. Thanks!

    This was a problem with POST as soon as I changed it all to
    GET the problem went away. I haven't a clue why this happened. Went
    back a few times and the same thing happened everytime.
    Using POST on other pages in my website no problems.

  • Spry Tabbed Panel Defaults to home page with recordset paging

    I have Spry ver. 1.6.1.  A Spry Tabbed Panel titled "Check Ride Activity Report" (Tab 6)  accesses a mysql database and shows the records in a table format.  Instead of having all the records display at once I want to limit the records displayed to a few at a time. e.g. 5 per page.   I added a recordset navigation bar and set the $maxRows_GetChkRideRecs = 5;  It works but each time the navigation bar "Next" or "Last" or "First" or "Previous" is clicked the page reloads with the default Home page Tab displayed.  The user then has to click on Tab 6  to view the new results.  The url where this can be viewed is at http://Training.reliantair.com.  Is there a way to code this tab so that Tab 6 remains the default tab once it is selected until the user selects another tab?
    I want to avoid putting another  button on the page to accomplish this as shown in the spry utils samples where the user clicks to set the default tab.
    Can this be done within the recordset paging code similar to how it is done on a form submit to keep the focus on the current tab?

    I didn't try the cookie method suggested.  The tab method listed in spry utils does work but requires an additional button, so I came up with this solution.
    In the Head of the HTML document I put this code.  It searches for the query string in the HREF when any of the record paging buttons is pressed.
    <script type="text/javascript" src="SpryURLUtils.js"></script>
    <script type="text/javascript">
    var params = Spry.Utils.getLocationParamsAsObject();
    if (location.href.indexOf("GetChkRideRecs") != -1  && location.href.indexOf("tab") == -1)
      location.href +="&tab=5#TabbedPanels1"; 
    </script>
    Then in the body of the HTML document at the bottom of the page  the tabbed panel widget is changed like this:
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1",{defaultTab: (params.tab ? params.tab:0)});
    The first time a recordset paging link is  clicked the HREF attribute of &tab=5#TabbedPanels1 is added to the location HREF.  Subsequent clicks of any of the links do not change the HREF because the code looks for "tab" and does nothing if it is found.

  • Form values not carried over to subsequent recordset displays

    Example
    of the problem
    (Input the name "hruska" and then attempt to get the second
    page of 30 results.)
    This is a form which inserts the variable of "last_name" into
    a query for records from my db. Using the DW CS3 server behaviors
    (with some modification), I'm displaying the rows in a table 30 to
    a page and have a recordset navigation bar below my results table
    to advance to subsequent result displays.
    The first 30 results display but when I click the "next"
    arrow/button to call up the next 30 results, I only get the table
    headers and the recordset navigation bar. The page says I'm
    displaying the next 30 results from the db, but they don't show.
    However, if I re-enter the last name and re-submit, voila, there
    are my next 30 results.
    I understand why this is happening, but I don't understand
    the best way to fix it so my recordset paging works without having
    to resubmit the variable for each subsequent result display.
    I appreciate any help anyone can offer.
    Code follows:

    Hi,
    as this forum is focused on the Adobe Dreamweaver Developer Toolbox (ADDT) - extension and its usage, I'd suggest asking your question in the "Dreamweaver Application Development" forum
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Search Result Recordset Paging

    The standard Dreamweaver Recordset Navigation Bar works well
    with the listing recordset.
    But when I tried to use it with my search result recordset, I
    had the following error message (searchgallery is the name of the
    TextField of my search bar):
    Variable SEARCHGALLERY is undefined.
    The error occurred in
    C:\ColdFusion8\wwwroot\visual_cornucopia\stunninglygorgeous.com\www\gallery.cfm:
    line 90
    88 : SELECT *
    89 : FROM image_img
    90 : WHERE image_img.filename_img LIKE '%#searchgallery#%'
    91 : OR image_img.description_img LIKE '%#searchgallery#%'
    92 : </cfquery>
    Please Help !
    Amanda Nguyen

    This was a problem with POST as soon as I changed it all to
    GET the problem went away. I haven't a clue why this happened. Went
    back a few times and the same thing happened everytime.
    Using POST on other pages in my website no problems.

Maybe you are looking for

  • Sloooow file browsing....

    Hi all Just got a new Mac Pro (YAY!).... One thing kind of bugging me is how slow it is when displaying the contents of folders. I keep my windows in columns view. When I click on a folder, there is a lag of 2 or 3 full seconds before the contents of

  • Curve levels in Motion 3.0

    Hi(Bonjour)! What is the equivalent of curve levels in Motion ? Michel Boissonneault

  • "Rasterize before proceeding.  BTW, you won't be able to edit"

    "This smart object must be rasterized before proceeding.  Edit Contents will no longer be available.  Rasterize the smart object?" I am given only two choices:      (1) Rasterize and forget about editing.      (2) Do nothing. How do I fix this? I wan

  • IPod constantly pauses during use

    very frustrating. it pauses constantly. i am not touching it and it pauses. i put it on hold while playing and it pauses. it's only two months old. i am using the headphones that it came with. they work fine. HELP!!!

  • Accumulating Button Actions

    I need some advice with a problem I'm having trying to make a VERY simple set of actions work in the new version of Flash CS3 with ActionScript 3.0. All I'm trying to do is make a set of buttons that perform simple play, stop, next and back functions