Recordset at localhost

Hi there.
I'm trying to create a site in DreamWeaver with a connection
to a MySQL DataBase. But i don't have much knowledge about PHP, My
Sql or Apache.
So, what i'm trying to do is, first of all, creating a
recordset. And all starts here. I'm working locally. When i have
things all set, then i upload it to the server via FTP.
I have Wamp installed, so Apache, PHP and MySql are running
(i have also a couple of sites running fine on this machine with
local MySql DB, tough they weren't created by me). When i try to
create a Recordset all goes well except the third step ("set up the
site's testing server"). When i define the directories and the URL
prefix and click ok, nothing happens. The 'Setup Instructions'
window just stay there showing the 3 steps with the first and
second step with a mark, except this last one.
My Site Definitions:
Local Info:
Site Name: 'mysite'
Local Root Folder: 'C:\wamp\www\mysite\'
Default Images: 'C:\wamp\www\mysite\images\'
HTTP Adress: '
http://localhost/mysite/'
Remote Info:
Access: 'Local/Network'
Remote Folder: 'C:\wamp\www\mysite\'
Testing Server
Server Model: 'PHP MySql'
Access: 'Local/Network'
Testing Server Folder: 'C:\wamp\www\mysite\'
URL Prefix: '
http://localhost/mysite/'
I have:
Apache version : Apache/1.3.33 (Win32)
PHP version : 5.0.4
MySQL version : 4.1.10a-nt - extension : mysqli
Windows XP Professional
Are these definitions right? Anybody can put me on the right
track?
Thanks for your attention ;)

I haven't used WAMP, but I have used XAMPP and the documents
have to be in
C:\Program Files\xampp\htdocs\nameofsite\ .. point being that
Apache uses
htdocs as the default for storing the displays on the server.
I'm surprised
if the default for Apache is www rather than htdocs.
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"tubarao21" <[email protected]> wrote in
message
news:[email protected]...
> Hi there.
>
> I'm trying to create a site in DreamWeaver with a
connection to a MySQL
> DataBase. But i don't have much knowledge about PHP, My
Sql or Apache.
> So, what i'm trying to do is, first of all, creating a
recordset. And all
> starts here. I'm working locally. When i have things all
set, then i
> upload it
> to the server via FTP.
> I have Wamp installed, so Apache, PHP and MySql are
running (i have also a
> couple of sites running fine on this machine with local
MySql DB, tough
> they
> weren't created by me). When i try to create a Recordset
all goes well
> except
> the third step ("set up the site's testing server").
When i define the
> directories and the URL prefix and click ok, nothing
happens. The 'Setup
> Instructions' window just stay there showing the 3 steps
with the first
> and
> second step with a mark, except this last one.
>
> My Site Definitions:
>
> Local Info:
> Site Name: 'mysite'
> Local Root Folder: 'C:\wamp\www\mysite\'
> Default Images: 'C:\wamp\www\mysite\images\'
> HTTP Adress: '
http://localhost/mysite/'
>
> Remote Info:
> Access: 'Local/Network'
> Remote Folder: 'C:\wamp\www\mysite\'
>
> Testing Server
> Server Model: 'PHP MySql'
> Access: 'Local/Network'
> Testing Server Folder: 'C:\wamp\www\mysite\'
> URL Prefix: '
http://localhost/mysite/'
>
> I have:
> Apache version : Apache/1.3.33 (Win32)
> PHP version : 5.0.4
> MySQL version : 4.1.10a-nt - extension : mysqli
> Windows XP Professional
>
> Are these definitions right? Anybody can put me on the
right track?
>
> Thanks for your attention ;)
>

Similar Messages

  • Requery Recordset

    I have another issue with my summary/update processing. I have a form where members can list themselves for either needing or wanting boat/crew/housing. Below the form is a listing of all associated requests:
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="../../Connections/ilcaData.asp" -->
    <!--#include file="../../Connections/eventCalendar.asp" -->
    <%
    Dim MM_editAction
    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
      MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
    End If
    ' boolean to abort record edit
    Dim MM_abortEdit
    MM_abortEdit = false
    %>
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
      If condition = "" Then
        MM_IIf = ifFalse
      Else
        MM_IIf = ifTrue
      End If
    End Function
    %>
    <%
    If (CStr(Request("MM_insert")) = "needavailadd") Then
      If (Not MM_abortEdit) Then
        ' execute the insert
        Dim MM_editCmd
        Set MM_editCmd = Server.CreateObject ("ADODB.Command")
        MM_editCmd.ActiveConnection = MM_eventCalendar_STRING
        MM_editCmd.CommandText = "INSERT INTO needAvail (naType, memName, city, [state], phone, email, info, eventID) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"
        MM_editCmd.Prepared = true
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("naType")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 32, Request.Form("memName")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 18, Request.Form("city")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 202, 1, 2, Request.Form("state")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param5", 202, 1, 12, Request.Form("phone")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 202, 1, 48, Request.Form("email")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param7", 202, 1, 75, Request.Form("info")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param8", 5, 1, -1, MM_IIF(Request.Form("eventID"), Request.Form("eventID"), null)) ' adDouble
        MM_editCmd.Execute
        MM_editCmd.ActiveConnection.Close
        ' append the query string to the redirect URL
        Dim MM_editRedirectUrl
        MM_editRedirectUrl = "eventneedavail.asp"
        If (Request.QueryString <> "") Then
          If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
            MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
          Else
            MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
          End If
        End If
        Response.Redirect(MM_editRedirectUrl)
      End If
    End If
    %>
    <%
    Dim rsStates
    Dim rsStates_cmd
    Dim rsStates_numRows
    Set rsStates_cmd = Server.CreateObject ("ADODB.Command")
    rsStates_cmd.ActiveConnection = MM_ilcaData_STRING
    rsStates_cmd.CommandText = "SELECT * FROM stateCodes"
    rsStates_cmd.Prepared = true
    Set rsStates = rsStates_cmd.Execute
    rsStates_numRows = 0
    %>
    <%
    Dim rsneedavailReq
    Dim rsneedavailReq_cmd
    Dim rsneedavailReq_numRows
    Set rsneedavailReq_cmd = Server.CreateObject ("ADODB.Command")
    rsneedavailReq_cmd.ActiveConnection = MM_eventCalendar_STRING
    rsneedavailReq_cmd.CommandText = "SELECT * FROM needAvailReq"
    rsneedavailReq_cmd.Prepared = true
    Set rsneedavailReq = rsneedavailReq_cmd.Execute
    rsneedavailReq_numRows = 0
    %>
    <%
    Dim rsneedAvail__MMColParam
    rsneedAvail__MMColParam = "0"
    If (Request.Querystring("ID")  <> "") Then
      rsneedAvail__MMColParam = Request.Querystring("ID")
    End If
    %>
    <%
    Dim rsneedAvail
    Dim rsneedAvail_cmd
    Dim rsneedAvail_numRows
    Set rsneedAvail_cmd = Server.CreateObject ("ADODB.Command")
    rsneedAvail_cmd.ActiveConnection = MM_eventCalendar_STRING
    rsneedAvail_cmd.CommandText = "SELECT * FROM eventneedAvail WHERE eventID = ?"
    rsneedAvail_cmd.Prepared = true
    rsneedAvail_cmd.Parameters.Append rsneedAvail_cmd.CreateParameter("param1", 5, 1, -1, rsneedAvail__MMColParam) ' adDouble
    Set rsneedAvail = rsneedAvail_cmd.Execute
    rsneedAvail_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    rsneedAvail_numRows = rsneedAvail_numRows + Repeat1__numRows
    %>
    <!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/mainLayout.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Welcome to the International Lightning Class</title>
    <meta name="Keywords" content="Lightning, lightning sailboat, lightning class, international lightning class, lightning class sailboat, lightning class association" />
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <link href="../../assets/favicon.ico" rel="shortcut icon" />
    <link href="../../css/mainLayout2.css" rel="stylesheet" type="text/css" />
    <link href="../../css/navMenu.css" rel="stylesheet" type="text/css" />
    <link href="../../css/ilcaStyles.css" rel="stylesheet" type="text/css" />
    <link href="../../css/document.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <!-- InstanceBeginEditable name="styles" -->
    <link href="../../css/needAvail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
    //-->
    </script>
    <!-- InstanceEndEditable -->
    <!-- InstanceParam name="setdatetype" type="text" value="" -->
    <!-- InstanceParam name="cleanup" type="text" value="" -->
    </head>
    <body onload="" onunload="">
    <%
    Response.Buffer = True
    If (Request.ServerVariables("HTTPS") = "on") Then
        Dim xredir__, xqstr__
        xredir__ = "http://" & Request.ServerVariables("SERVER_NAME") & _
                   Request.ServerVariables("SCRIPT_NAME")
        xqstr__ = Request.ServerVariables("QUERY_STRING")
        if xqstr__ <> "" Then xredir__ = xredir__ & "?" & xqstr__
        Response.redirect xredir__
    End if
    %>
    <div id="wrapper">
      <div id="header">
        <div id="hdrLink"><a href="../../index.asp"><img src="../../assets/images/mainTemplate/headerImg.png" width="839" height="183" border="0" /></a></div>
      </div>
      <div id="sidebar">
        <div id="navigation">
          <!-- menu script itself. you should not modify this file -->
          <script type="text/javascript" language="JavaScript" src="../../scripts/navMenu.js"></script>
          <!-- items structure. menu hierarchy and links are stored there -->
          <script type="text/javascript" language="JavaScript" src="../../scripts/navMenu_items.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu_items.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu2_items.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/storeMenu_items.js"></script>
          <!-- files with geometry and styles structures -->
          <script type="text/javascript" language="JavaScript" src="../../scripts/navMenu_tpl2.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu_tpl.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu2_tpl.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/storeMenu_tpl.js"></script>
          <script type="text/javascript" language="javascript">
    <!--//
    // Make sure the menu initialization is right above the closing &lt;/body&gt; tag
    // Moving it inside other tags will not affect the position of the menu on
    // the page. If you need this feature please consider Tigra Menu GOLD.
    // each menu gets two parameters (see demo files)
    // 1. items structure
    // 2. geometry structure
    new menu (MENU_ITEMS, MENU_TPL);
    // If you don't see the menu then check JavaScript console of the browser for the error messages
    // "Variable is not defined" error indicates that there's syntax error in that variable's definition
    // or the file with that variable isn't properly linked to the HTML document
    //-->
    </script>
        </div>
        <div id="sbar-image3"> <a href="http://www.facebook.com/pages/International-Lightning-Class-Association/197584991571" target="_blank"><img src="../../assets/images/mainTemplate/facebook.png" alt="Facebook ILCA link" width="36" height="36" border="0" /></a>  <a href="http://twitter.com/IntLightning" target="_blank"><img src="../../assets/images/mainTemplate/twitter.png" alt="Twitter ILCA link" width="36" height="36" border="0" /></a> Connect with us</span></span></span> <br />
        </div>
        <div id="sbarSearch">
          <!-- SiteSearch Google -->
          <FORM method=GET action="http://www.google.com/search">
            <input type=hidden name=ie value=UTF-8>
            <input type=hidden name=oe value=UTF-8>
            <TABLE width="126" align="center" bgcolor="#FFFFFF">
              <tr>
                <td width="135"><img src="../../assets/images/mainTemplate/google.jpg" width="68" height="21" alt="Google logo" /></td>
              </tr>
              <tr>
                <td><input type=text name=q size=20 maxlength=255 value="" />
                  <input type=submit name=btnG value="Google Search" />
                  <font size=-2>
                  <input type=hidden name=domains value="www.lightningclass.org">
                  <br>
                  <input type=radio
    name=sitesearch value="">
                  Web
                  <input type=radio name=sitesearch value="www.lightningclass.org" checked>
                  Site<br>
                  </font></td>
              </tr>
            </TABLE>
          </FORM>
          <!-- SiteSearch Google -->
        </div>
        <div id="sbarTranslate">
          <script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up _source_language=en&w=148&h=60&title=&border=&output=js"></script>
        </div>
        <div id="sbar-image1"><a href="http://www.guadalajara2011.org.mx/esp/01_inicio/index.asp"><img src="../../assets/images/mainTemplate/panAm.jpg" width="116" height="129" border="0" /></a></div>
        <div id="sbar-image2"><a href="../../membership/joinRenew/membershipOptions.asp"><img src="../../assets/images/mainTemplate/joinILCA.png" alt="Join the ILCA" width="113" height="113" border="0" /></a></div>
      </div>
      <div id="background">
        <div id="mainContent"> <!-- InstanceBeginEditable name="mainContent" -->
          <div id="docHdr"> Header </div>
          <div id="docBody">
            <div id="listMe">
              <form ACTION="<%=MM_editAction%>" METHOD="POST" name="needavailadd">
                <fieldset id="needavailAdd" name="needavailAdd">
                  <legend class="legend">Logistics-Add</legend>
                  <br />
                  <label for="naType">Request Type:</label>
                  <label>
                    <select name="naType" size="1" id="naType" tabindex="1">
                      <option value="Sel" <%If (Not isNull(" Select a request type")) Then If ("Sel" = CStr(" Select a request type")) Then Response.Write("selected=""selected""") : Response.Write("")%>> Select a request type</option>
                      <%
    While (NOT rsneedavailReq.EOF)
    %>
                      <option value="<%=(rsneedavailReq.Fields.Item("requestKey").Value)%>" <%If (Not isNull(" Select a request type")) Then If (CStr(rsneedavailReq.Fields.Item("requestKey").Value) = CStr(" Select a request type")) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsneedavailReq.Fields.Item("requestType").Value)%></option>
                      <%
      rsneedavailReq.MoveNext()
    Wend
    If (rsneedavailReq.CursorType > 0) Then
      rsneedavailReq.MoveFirst
    Else
      rsneedavailReq.Requery
    End If
    %>
                    </select>
                  </label>
                  <br />
                  <br />
                  <label>First and Last Name:
                    <input name="memName" type="text" id="memName" tabindex="2" onblur="MM_validateForm('memName','','R');return document.MM_returnValue" />
                  </label>
                  <br />
                  <br />
                  <label>City:
                    <input name="city" type="text" id="city" tabindex="3" onblur="MM_validateForm('city','','R');return document.MM_returnValue" />
                  </label>
                  <label>State: </label>
                  <label>
                    <select name="state" size="1" id="state" tabindex="4" onchange="MM_validateForm('phone','','NisNum');MM_validateForm('email','','NisEmail');ret urn document.MM_returnValue">
                      <option value="Sel" <%If (Not isNull(" Select a state")) Then If ("Sel" = CStr(" Select a state")) Then Response.Write("selected=""selected""") : Response.Write("")%>> Select a state</option>
                      <%
    While (NOT rsStates.EOF)
    %>
                      <option value="<%=(rsStates.Fields.Item("stateCode").Value)%>" <%If (Not isNull(" Select a state")) Then If (CStr(rsStates.Fields.Item("stateCode").Value) = CStr(" Select a state")) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsStates.Fields.Item("stateName").Value)%></option>
                      <%
      rsStates.MoveNext()
    Wend
    If (rsStates.CursorType > 0) Then
      rsStates.MoveFirst
    Else
      rsStates.Requery
    End If
    %>
                    </select>
                  </label>
                  <br />
                  <br />
                  <label>Telephone#:
                    <input type="text" name="phone" id="phone" tabindex="5" />
                  </label>
                  <br />
                  <br />
                  <label>Email:
                    <input name="email" type="text" id="email" tabindex="6" size="48" maxlength="48" />
                  </label>
                  <br />
                  <br />
                  <label>Additional Information:
                    <input name="info" type="text" id="info" tabindex="7" size="58" maxlength="255" />
                  </label>
                  <br />
                  <br />
                  <input type="submit" name="addButton" id="addButton" value="Add Me" tabindex="8" />
                  <input type="reset" name="reset" id="reset" value="Reset" />
                </fieldset>
                <input name="eventID" type="hidden" id="eventID" value="<%=Request.QueryString("ID")%>" />
                <input type="hidden" name="MM_insert" value="needavailadd" />
              </form>
            </div>
            <div id="nameList">
              <table width=640 align=left>
                <% if rsneedAvail.EOF then
       response.write "<strong>No Requests Yet</strong>"
      else
      response.write "<strong>" & (rsneedAvail_total) & "</strong>"
      response.write "<strong> Logistics Requests:</strong>"%>
              <p align="left"> </p>
              <% icat = rsneedAvail.Fields.Item("requestType").Value %>
                <tr>
                  <td colspan='2' class="eventMonths"><%=(rsneedAvail.Fields.Item("requestType").Value)%></td>
                </tr>
                <tr>
                  <td colspan='2'><hr width=250% align="center"/></td>
                </tr>
         <%rsneedAvail.Requery%>
                <% While ((Repeat1__numRows <> 0) AND (NOT rsneedAvail.EOF)) %>
                  <% If rsneedAvail.Fields.Item("requestType").Value <> icat then
        icat = rsneedAvail.Fields.Item("requestType").Value%>
                  <tr height="20">
                    <td colspan='2'></td>
                  </tr>
                  <tr>
                    <td colspan='2' class="eventMonths"><%=(rsneedAvail.Fields.Item("requestType").Value)%></td>
                  </tr>
                  <tr>
                    <td colspan='2'><hr width=250% align="center"/></td>
                  </tr>
                  <%End If %>
                  <tr>
                    <td width="165"><%=(rsneedAvail.Fields.Item("name").Value)%></td>
                    <td width="150"><%=(rsneedAvail.Fields.Item("location").Value)%></td>
                    <td width="100"><%=(rsneedAvail.Fields.Item("phone").Value)%></td>
                    <td width="265"><%=(rsneedAvail.Fields.Item("info").Value)%></td>
                    <td width="30" class="hpResults" aligm="left"><div align="center"><a href="eventneedavailUpdate.asp?ID=<%=(rsneedAvail.Fields.Item("recID").Value)%>"><span class="eventeditLink">Edit</span></a></div></td>
                    <td width="30" class="hpResults" aligm="left"><div align="center"><a href="eventupdateLogin.asp?ID=<%=(rsneedAvail.Fields.Item("recID").Value)%>"><span class="eventeditLink">Delete</span></a></div></td>
                  </tr>
                  <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      rsneedAvail.MoveNext()
    Wend
            end if
            %>
              </table>
            </div>
          </div>
          <!-- InstanceEndEditable --></div>
      </div>
      <div id="clear"></div>
      <div id="footer">
        <p><u><a href="../../membership/joinRenew/membershipOptions.asp" class="ftrLinks">Membership</a></u> | <u><a href="eventSelect.asp" class="ftrLinks">Racing</a></u> | <u><a href="../../classRules/documents/ilcaBylaws.asp" class="ftrLinks">Class Rules</a></u> | <u><a href="../../photoGallery/photos2008/index.asp" class="ftrLinks">Photo Gallery</a></u> | <u class="ftrLinks"><a href="../../marketplace/store/index.asp">Marketplace</a></u> | <u><a href="../../contacts/index.asp" class="ftrLinks">Contacts</a></u> | <u class="ftrLinks"><a href="../../siteMap.asp">Site Map</a></u><br />
          All Rights Reserved—International Lightning Class Association<br />
          <u><a href="mailto:[email protected]" class="ftrLinks">[email protected]</a></u><br />
          1528 Big Bass Drive, Tarpon Springs, Florida  34689— Phone: 727-942-7969 — Fax: 727-942-0173 — Skype: ilcaoffice</p>
      </div>
    </div>
    </body>
    <!-- InstanceEnd -->
    </html>
    <%
    rsStates.Close()
    Set rsStates = Nothing
    %>
    <%
    rsneedavailReq.Close()
    Set rsneedavailReq = Nothing
    %>
    <%
    rsneedAvail.Close()
    Set rsneedAvail = Nothing
    %>
    Entries may be updated. After the update, the page above is displayed. Sometimes the updated information displays, but more often it does not (????). I have tried a requery, but that is not working. How do I requery the recordset so that the current information always displays?
    Update page:
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="../../Connections/ilcaData.asp" -->
    <!--#include file="../../Connections/eventCalendar.asp" -->
    <%
    Dim MM_editAction
    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
      MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
    End If
    ' boolean to abort record edit
    Dim MM_abortEdit
    MM_abortEdit = false
    %>
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
      If condition = "" Then
        MM_IIf = ifFalse
      Else
        MM_IIf = ifTrue
      End If
    End Function
    %>
    <%
    If (CStr(Request("MM_update")) = "needavailUpdate") Then
      If (Not MM_abortEdit) Then
        ' execute the update
        Dim MM_editCmd
        Set MM_editCmd = Server.CreateObject ("ADODB.Command")
        MM_editCmd.ActiveConnection = MM_eventCalendar_STRING
        MM_editCmd.CommandText = "UPDATE needAvail SET naType = ?, memName = ?, city = ?, [state] = ?, phone = ?, email = ?, info = ? WHERE recID = ?"
        MM_editCmd.Prepared = true
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("naType")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 32, Request.Form("memName")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 18, Request.Form("city")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 202, 1, 2, Request.Form("state")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param5", 202, 1, 12, Request.Form("phone")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 202, 1, 48, Request.Form("email")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param7", 202, 1, 75, Request.Form("info")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param8", 5, 1, -1, MM_IIF(Request.Form("MM_recordId"), Request.Form("MM_recordId"), null)) ' adDouble
        MM_editCmd.Execute
        MM_editCmd.ActiveConnection.Close
        ' append the query string to the redirect URL
        Dim MM_editRedirectUrl
        MM_editRedirectUrl = "eventneedavail.asp?ID=" & Request.Form("eventID")
        If (Request.QueryString <> "") Then
          If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
            MM_editRedirectUrl = MM_editRedirectUrl
          Else
            MM_editRedirectUrl = MM_editRedirectUrl
          End If
        End If
        Response.Redirect(MM_editRedirectUrl)
      End If
    End If
    %>
    <%
    Dim rsStates
    Dim rsStates_cmd
    Dim rsStates_numRows
    Set rsStates_cmd = Server.CreateObject ("ADODB.Command")
    rsStates_cmd.ActiveConnection = MM_ilcaData_STRING
    rsStates_cmd.CommandText = "SELECT * FROM stateCodes"
    rsStates_cmd.Prepared = true
    Set rsStates = rsStates_cmd.Execute
    rsStates_numRows = 0
    %>
    <%
    Dim rsneedavailReq
    Dim rsneedavailReq_cmd
    Dim rsneedavailReq_numRows
    Set rsneedavailReq_cmd = Server.CreateObject ("ADODB.Command")
    rsneedavailReq_cmd.ActiveConnection = MM_eventCalendar_STRING
    rsneedavailReq_cmd.CommandText = "SELECT * FROM needavailReq"
    rsneedavailReq_cmd.Prepared = true
    Set rsneedavailReq = rsneedavailReq_cmd.Execute
    rsneedavailReq_numRows = 0
    %>
    <%
    Dim rsneedAvail__MMColParam
    rsneedAvail__MMColParam = "0"
    If (Request.QueryString("ID")  <> "") Then
      rsneedAvail__MMColParam = Request.QueryString("ID")
    End If
    %>
    <%
    Dim rsneedAvail
    Dim rsneedAvail_cmd
    Dim rsneedAvail_numRows
    Set rsneedAvail_cmd = Server.CreateObject ("ADODB.Command")
    rsneedAvail_cmd.ActiveConnection = MM_eventCalendar_STRING
    rsneedAvail_cmd.CommandText = "SELECT * FROM needAvail WHERE recID = ?"
    rsneedAvail_cmd.Prepared = true
    rsneedAvail_cmd.Parameters.Append rsneedAvail_cmd.CreateParameter("param1", 5, 1, -1, rsneedAvail__MMColParam) ' adDouble
    Set rsneedAvail = rsneedAvail_cmd.Execute
    rsneedAvail_numRows = 0
    %>
    <%
    Dim MM_paramName
    %>
    <%
    ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
    Dim MM_keepNone
    Dim MM_keepURL
    Dim MM_keepForm
    Dim MM_keepBoth
    Dim MM_removeList
    Dim MM_item
    Dim MM_nextItem
    ' create the list of parameters which should not be maintained
    MM_removeList = "&index="
    If (MM_paramName <> "") Then
      MM_removeList = MM_removeList & "&" & MM_paramName & "="
    End If
    MM_keepURL=""
    MM_keepForm=""
    MM_keepBoth=""
    MM_keepNone=""
    ' add the URL parameters to the MM_keepURL string
    For Each MM_item In Request.QueryString
      MM_nextItem = "&" & MM_item & "="
      If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
        MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
      End If
    Next
    ' add the Form variables to the MM_keepForm string
    For Each MM_item In Request.Form
      MM_nextItem = "&" & MM_item & "="
      If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
        MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
      End If
    Next
    ' create the Form + URL string and remove the intial '&' from each of the strings
    MM_keepBoth = MM_keepURL & MM_keepForm
    If (MM_keepBoth <> "") Then
      MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
    End If
    If (MM_keepURL <> "")  Then
      MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
    End If
    If (MM_keepForm <> "") Then
      MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
    End If
    ' a utility function used for adding additional parameters to these strings
    Function MM_joinChar(firstItem)
      If (firstItem <> "") Then
        MM_joinChar = "&"
      Else
        MM_joinChar = ""
      End If
    End Function
    %>
    <!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/mainLayout.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Welcome to the International Lightning Class</title>
    <meta name="Keywords" content="Lightning, lightning sailboat, lightning class, international lightning class, lightning class sailboat, lightning class association" />
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <link href="../../assets/favicon.ico" rel="shortcut icon" />
    <link href="../../css/mainLayout2.css" rel="stylesheet" type="text/css" />
    <link href="../../css/navMenu.css" rel="stylesheet" type="text/css" />
    <link href="../../css/ilcaStyles.css" rel="stylesheet" type="text/css" />
    <link href="../../css/document.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <!-- InstanceBeginEditable name="styles" -->
    <link href="../../css/needAvail.css" rel="stylesheet" type="text/css" />
    <!-- InstanceEndEditable -->
    <!-- InstanceParam name="setdatetype" type="text" value="" -->
    <!-- InstanceParam name="cleanup" type="text" value="" -->
    </head>
    <body onload="" onunload="">
    <%
    Response.Buffer = True
    If (Request.ServerVariables("HTTPS") = "on") Then
        Dim xredir__, xqstr__
        xredir__ = "http://" & Request.ServerVariables("SERVER_NAME") & _
                   Request.ServerVariables("SCRIPT_NAME")
        xqstr__ = Request.ServerVariables("QUERY_STRING")
        if xqstr__ <> "" Then xredir__ = xredir__ & "?" & xqstr__
        Response.redirect xredir__
    End if
    %>
    <div id="wrapper">
      <div id="header">
        <div id="hdrLink"><a href="../../index.asp"><img src="../../assets/images/mainTemplate/headerImg.png" width="839" height="183" border="0" /></a></div>
      </div>
      <div id="sidebar">
        <div id="navigation">
          <!-- menu script itself. you should not modify this file -->
          <script type="text/javascript" language="JavaScript" src="../../scripts/navMenu.js"></script>
          <!-- items structure. menu hierarchy and links are stored there -->
          <script type="text/javascript" language="JavaScript" src="../../scripts/navMenu_items.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu_items.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu2_items.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/storeMenu_items.js"></script>
          <!-- files with geometry and styles structures -->
          <script type="text/javascript" language="JavaScript" src="../../scripts/navMenu_tpl2.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu_tpl.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/boatgrantMenu2_tpl.js"></script>
          <script type="text/javascript" language="JavaScript" src="../../scripts/storeMenu_tpl.js"></script>
          <script type="text/javascript" language="javascript">
    <!--//
    // Make sure the menu initialization is right above the closing &lt;/body&gt; tag
    // Moving it inside other tags will not affect the position of the menu on
    // the page. If you need this feature please consider Tigra Menu GOLD.
    // each menu gets two parameters (see demo files)
    // 1. items structure
    // 2. geometry structure
    new menu (MENU_ITEMS, MENU_TPL);
    // If you don't see the menu then check JavaScript console of the browser for the error messages
    // "Variable is not defined" error indicates that there's syntax error in that variable's definition
    // or the file with that variable isn't properly linked to the HTML document
    //-->
    </script>
        </div>
        <div id="sbar-image3"> <a href="http://www.facebook.com/pages/International-Lightning-Class-Association/197584991571" target="_blank"><img src="../../assets/images/mainTemplate/facebook.png" alt="Facebook ILCA link" width="36" height="36" border="0" /></a>  <a href="http://twitter.com/IntLightning" target="_blank"><img src="../../assets/images/mainTemplate/twitter.png" alt="Twitter ILCA link" width="36" height="36" border="0" /></a>
          Connect with us</span></span></span>
           <br />
        </div>
        <div id="sbarSearch">
    <!-- SiteSearch Google -->
    <FORM method=GET action="http://www.google.com/search">
    <input type=hidden name=ie value=UTF-8>
    <input type=hidden name=oe value=UTF-8>
    <TABLE width="126" align="center" bgcolor="#FFFFFF"><tr><td width="135"><img src="../../assets/images/mainTemplate/google.jpg" width="68" height="21" alt="Google logo" />
    </td></tr>
    <tr>
    <td><input type=text name=q size=20 maxlength=255 value="" />
      <input type=submit name=btnG value="Google Search" />
      <font size=-2>
    <input type=hidden name=domains value="www.lightningclass.org"><br><input type=radio
    name=sitesearch value=""> Web
    <input type=radio name=sitesearch value="www.lightningclass.org" checked>
    Site<br>
    </font>
    </td></tr></TABLE>
    </FORM>
    <!-- SiteSearch Google -->
        </div>
        <div id="sbarTranslate">
          <script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up _source_language=en&w=148&h=60&title=&border=&output=js"></script>
        </div>
        <div id="sbar-image1"><a href="http://www.guadalajara2011.org.mx/esp/01_inicio/index.asp"><img src="../../assets/images/mainTemplate/panAm.jpg" width="116" height="129" border="0" /></a></div>
        <div id="sbar-image2"><a href="../../membership/joinRenew/membershipOptions.asp"><img src="../../assets/images/mainTemplate/joinILCA.png" alt="Join the ILCA" width="113" height="113" border="0" /></a></div>
      </div>
      <div id="background">
        <div id="mainContent"> <!-- InstanceBeginEditable name="mainContent" -->
          <div id="docHdr"> Header </div>
          <div id="docBody">
            <div id="listMe">
              <form ACTION="<%=MM_editAction%>" METHOD="POST" name="needavailUpdate">
                <fieldset id="needavailUpdate" name="needavailUpdate">
                  <legend class="legend">Need/Available</legend>
                  <br />
                  <label for="naType">Request Type:</label>
                  <label>
                    <select name="naType" id="naType" tabindex="1">
                      <option value="" <%If (Not isNull((rsneedAvail.Fields.Item("naType").Value))) Then If ("" = CStr((rsneedAvail.Fields.Item("naType").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>></option>
                      <%
    While (NOT rsneedavailReq.EOF)
    %>
                      <option value="<%=(rsneedavailReq.Fields.Item("requestKey").Value)%>" <%If (Not isNull((rsneedAvail.Fields.Item("naType").Value))) Then If (CStr(rsneedavailReq.Fields.Item("requestKey").Value) = CStr((rsneedAvail.Fields.Item("naType").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsneedavailReq.Fields.Item("requestType").Value)%></option>
                      <%
      rsneedavailReq.MoveNext()
    Wend
    If (rsneedavailReq.CursorType > 0) Then
      rsneedavailReq.MoveFirst
    Else
      rsneedavailReq.Requery
    End If
    %>
                    </select>
                  </label>
                  <br />
                  <br />
                  <label>First and Last Name:
                    <input name="memName" type="text" id="memName" tabindex="2" value="<%=(rsneedAvail.Fields.Item("memName").Value)%>" />
                  </label>
                  <br />
                  <br />
                  <label>City:
                    <input name="city" type="text" id="city" tabindex="3" value="<%=(rsneedAvail.Fields.Item("city").Value)%>" />
                  </label>
                  <label>State: </label>
                  <label>
                    <select name="state" id="state" tabindex="4">
                      <option value="" <%If (Not isNull((rsneedAvail.Fields.Item("state").Value))) Then If ("" = CStr((rsneedAvail.Fields.Item("state").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>></option>
                      <%
    While (NOT rsStates.EOF)
    %>
                      <option value="<%=(rsStates.Fields.Item("stateCode").Value)%>" <%If (Not isNull((rsneedAvail.Fields.Item("state").Value))) Then If (CStr(rsStates.Fields.Item("stateCode").Value) = CStr((rsneedAvail.Fields.Item("state").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsStates.Fields.Item("stateName").Value)%></option>
                      <%
      rsStates.MoveNext()
    Wend
    If (rsStates.CursorType > 0) Then
      rsStates.MoveFirst
    Else
      rsStates.Requery
    End If
    %>
                    </select>
                  </label>
                  <br />
                  <br />
                  <label>Telephone#:
                    <input name="phone" type="text" id="phone" tabindex="5" value="<%=(rsneedAvail.Fields.Item("phone").Value)%>" />
                  </label>
                  <br />
                  <br />
                  <label>Email:
                    <input name="email" type="text" id="email" tabindex="6" value="<%=(rsneedAvail.Fields.Item("email").Value)%>" size="48" maxlength="48" />
                  </label>
                  <br />
                  <br />
                  <label>Additional Information:
                    <input name="info" type="text" id="info" tabindex="7" value="<%=(rsneedAvail.Fields.Item("info").Value)%>" size="58" maxlength="255" />
                  </label>
                  <br />
                  <br />
                  <input type="submit" name="addButton" id="addButton" value="Update Me" tabindex="5" />
                  <input type="reset" name="reset" id="reset" value="Reset" />
                </fieldset>
                <input type="hidden" name="MM_update" value="needavailUpdate" />
                <input type="hidden" name="MM_recordId" value="<%= rsneedAvail.Fields.Item("recID").Value %>" />
                <input type="hidden" name="eventID" value="<%= rsneedAvail.Fields.Item("eventID").Value %>" />
              </form>
            </div>
          </div>
          <!-- InstanceEndEditable --></div>
      </div>
      <div id="clear"></div>
      <div id="footer">
        <p><u><a href="../../membership/joinRenew/membershipOptions.asp" class="ftrLinks">Membership</a></u> | <u><a href="eventSelect.asp" class="ftrLinks">Racing</a></u> | <u><a href="../../classRules/documents/ilcaBylaws.asp" class="ftrLinks">Class Rules</a></u> | <u><a href="../../photoGallery/photos2008/index.asp" class="ftrLinks">Photo Gallery</a></u> | <u class="ftrLinks"><a href="../../marketplace/store/index.asp">Marketplace</a></u> | <u><a href="../../contacts/index.asp" class="ftrLinks">Contacts</a></u> | <u class="ftrLinks"><a href="../../siteMap.asp">Site Map</a></u><br />
          All Rights Reserved—International Lightning Class Association<br />
          <u><a href="mailto:[email protected]" class="ftrLinks">[email protected]</a></u><br />
          1528 Big Bass Drive, Tarpon Springs, Florida  34689— Phone: 727-942-7969 — Fax: 727-942-0173 — Skype: ilcaoffice</p>
      </div>
    </div>
    </body>
    <!-- InstanceEnd --></html>
    <%
    rsStates.Close()
    Set rsStates = Nothing
    %>
    <%
    rsneedavailReq.Close()
    Set rsneedavailReq = Nothing
    %>
    <%
    rsneedAvail.Close()
    Set rsneedAvail = Nothing
    %>

    Thank you for your attention and diligence. I know it was overwhelming. I've uploaded my new pages and found that they seem to be working as designed - whereas they weren't working totally correctly on localhost. I believe I'm good for now. If I run into more problems, I'll find a simpler way to present the problem. Thank you, again.

  • Multi page recordset output from ASP page on Spry Tabbed Panel Widget

    I am using a simple Spry Tabbed panel set on my asp page to show the output from different ASP pages, inside the tabbed panels. The tabbed panels on the page under consideration (destination page) display the output from different asp pages (source pages). The source asp pages generate multi page outputs which are paginated on the source page itself and pagination links are displayed on the source page itself.
    However, we dont want to display the source page outside of the tabbed panel, but instead the output content from the source asp pages should show inside the tabbeed panels only. The first page generated by the source asp page displays correctly inside the tabbed panel. However, when the user clicks on the links for the next page generated by the source asp page, but which is being displayed inside the destination page tabbed panel, they dont display the next page inside the tabbed panel. Instead the source asp page displays the output outside the tabbed panel destination  page.
    Please advise on how to ensure that the user can page through the recordset generated by the source asp page by clicking on the pagination links at the bottom of the records, while ensuring that the output displays within the tabbed panels on the destination asp page.
    I am enclosing the source code being used to generate the spry tabbed panel widget and also updating it with the output from the source asp page. In this case, the code given below is from the main page containing the widget and the source asp page is "sample.asp", which generates multi page output.
    Please note that I am not too keen on using xml data sets output from the source asp page, but would be more comfortable with directly using the asp pages to fill the tabbed panel content.
    Please help
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script language="javascript" src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('two','sample.asp?page=' <%=i%>); Spry.Data.initRegions();" >Tab 1</li>
           <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=two class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>

    I fully agree that the problem does not lie with tthe tabbed panels.
    The solution would probably be first required to be tried using ajax on any div tab.
    Then the same code would have to be used on Sprytabbed panel. Hence, the following may be advised:
    1. Sample code for server side pagination and displaying inside any div tag and refreshing it using ajax. the update link would also lie inside the div tag which would show the next/ previous page without reloading the page.
    2. Then adapting the refresh technique using ajax in the Spry Tabbed panel using the inbuilt updatecontent method of the Spry Tabbed panels.
    In order to achieve the above, I am getting the recordset output in the tab content as expected. The recordset is also getting the pagination links from server side asp as required.
    However, it is also generating the following error.
    Webpage error details
    Message: Unterminated string constant
    Line: 9
    Char: 56
    Code: 0
    URI: http://localhost/test/test5.asp
    The sourcecode is as given below. If you can help with the error indicated above, my problem would probably get solved.
    <html><head>
    <title>Untitled Document</title>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    <script src="/SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="/SpryAssets/xPath.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('one','untitled-5.asp');">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0" >Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=one class="TabbedPanelsContent">Content 1</div>
        <div id ="two" class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>

  • Recordset data 'not retrieving'

    Hi,
         I'm following a 'Building your first dynamic website' tutorial
    (Tutorial: http://192.150.8.60/devnet/dreamweaver/articles/first_dynamic_site_pt1.html)
    for which all Dreamweaver files are supplied, and when I get to creating a 'Recordset' and selecting the required table
    the table data (which has been supplied/created) doesn't appear.
    (Recordset section: http://192.150.8.60/devnet/dreamweaver/articles/first_dynamic_site_pt2_03.html)
    When I click the test button I get a 'MySQL Error 1142 – SELECT command denied to user 'user'@'localhost' for table 'tablename'.
    However when I click the 'define' button, the connections for the site dialogue box appears and when I edit the table and test it through the MySQL Connection dialogue I get a 'Connection successful' message.
    I assume it's to do with permissions, of sorts?
    Any guidance greatly appreciated,
    Many thanks in advance...

    Hi
    The error is caused by the user name for the database not having the permissions set correctly.
    Log into your mysql database admin program using the master user, user name and password and set the privileges for the user you are using in the dreamweaver connection.
    PZ
    www.pziecina.com

  • Recordset connections help

    I am trying to create a page that is based off my computer
    (localhost) (.asp files) and I am having trouble with the recordset
    connections. I do not understand the connection string. I've got
    the DataSource right, just not the Provider. Could someone please
    help?

    make the DT as
    DT_Flat_File
    -Root
    name
    address
    id
    etc
    so that name, id etc comes under root
    Now your recordset is root.
    In the other case;
    DT_Flat_File
    -name
    -address
    -id
    you will not be able to provide a recordset and it wudnt be possible to read the file using content conversion.

  • Problem updating rows of recordset with repeat region

    Hi,
    So here's what I'm trying to do - I have a repeat region displaying a series of rows from a recordset. Each row has an "id" value and a "Votes" value. The id value is just an identifier, and the Votes value is the total number of votes. The rows are then organized by the Votes column in descending order (so that the row with the "most Votes" is displayed at the top). The whole thing is set up in kind of a table, so each row has a "Vote" button. When a user clicks the button it is supposed to increase that row's Votes by 1 - in effect creatign a Digg-style system.
    I'm having two problems-
    1. How can I get id value for the current row when using repeat region? I would assume that I first have to figure out the row, but how would I got about this?
    2. This is probably a much simpler problem, but how do I add to a mysql integer instead of just replacing the number? Is there any add function? Or can I do it the "BASIC way" (x = x + y)?
    Now for my code. What is here right now is a pretty simple "frame" of a website using PHP for the server-side scripting and MySQL for the database. Also, most of the PHP is generated by Dreamweaver, since I'm pretty novice when it comes to PHP.
    Here is my "repeat region" section alone-
    <?php do { ?>
        <table width="780" border="0">
          <tr>
            <td width="195"><?php echo $row_all['Title']; ?></td>
            <td width="195"><?php echo $row_all['Genre']; ?></td>
            <td width="130"><?php echo $row_all['Year']; ?></td>
            <td width="130"><?php echo $row_all['Votes']; ?></td>
            <td width="65"><a href=<?php
              $id1 = $row_all['id'];
    $con = mysql_connect("localhost","root","");
    if (!$con)
      die('Could not connect: ' . mysql_error());
    mysql_select_db("dig", $con);
    mysql_query("UPDATE list SET Votes =300 WHERE id = '$id1'");
    mysql_close($con);
    ?> >+1</a></td>
            <td width="65">-1</td>
          </tr>
        </table>
        <?php } while ($row_all = mysql_fetch_assoc($all)); ?>
    And, for the sake of completition, here is the entire file-
    BANNER
    MENU
    CONTENT
      LIST                                                                     
    +1
    -1
    Just let me know if you need any more info, and thanks in advance!
    -B

    Hi David,
    I read your reply and thankyou, but I am not sure I fully
    understand. Could
    you be a little more specific please.
    "David Powers" <[email protected]> wrote in message
    news:e9vsg2$ljd$[email protected]..
    > JED wrote:
    >> Why is this and what can I do?
    >
    > Answered your duplicate post in the main Dreamweaver
    forum.
    >
    > --
    > David Powers
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "Foundation PHP 5 for Flash" (friends of ED)
    >
    http://foundationphp.com/

  • Dreamweaver MySQL recordset connection problem

    Hi,
    I'm trying to create a recordset for the first time in
    Dreamweaver MX but am having problems getting the connection with
    the database to work.
    I have set up a MySQL database on my server (which I have
    checked and is OK), checked that PHP is running and have connected
    Dreamweaver to the server successfully ( in "Edit Sites" the
    "remote info" & "testing server" tests show a successful
    connection).
    When I try to connect to the database I get this sequence of
    events:
    1. Dialigue box: "Retrieving information from public_html"
    2. Dialigue box: "Waiting for server" (with progress bar)
    3. Dialigue box: "Dreamweaver cannot determine the remote
    server time. The Select Newer and Synchronise commands will not be
    available."
    4. Spinning ball for a few minutes (I'm using Mac OSX)
    5. back to "Waiting for server" dialogue box which remains
    for ages, eventually I click "cancel"
    6. "An unexpected error occurred"
    If anyone can shed any light on what I might be missing I
    would appreciate it greatly.
    Thanks - Zaphodz

    I am a newby to databases and am having a similar problem
    with asp and my remote sql database. My hosting provider told me to
    use this script:
    <%
    Dim DBName,DBUser,DBPass,objRS,objConn
    DBName="cham_members"
    DBUser="cham_member"
    DBPass="mypassword"
    Set objConn=Server.CreateObject("ADODB.Connection")
    objConn.ConnectionString="DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database="&DBName&";UID="&DBUser&";pwd="&DBPass&";"
    objConn.Open
    Set objRS=Server.CreateObject("ADODB.Recordset")
    %>
    Since that code doesn't work with DreamWeaver's Databases
    panel Custom Connection String dialogue box I came up with this
    one:
    DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database=cham_members;UID=cham_member;PWD=mypassword;objConn.Ope n
    Set objRS=Server.CreateObject(ADODB.Recordset)
    It connected but doesn't show my tables. I followed all the
    advice I found here;
    1. Connect using the "Use passive FTP"
    2. Corrected a few illegal hyphens in my database.
    3. Tried MySQL 127.0.0.1:3306 which would not connect at all
    4. Remove Connection Scripts. No change.
    5. I have been running DreamWeaver 7.01 update.
    I noticed the database connection names come up in the
    "Connections" folder so I opened the file it had just created and
    pasted in the script my hosting company gave me. Still no luck. I
    am determined to learn to create dynamic websites so I really
    appreciate your help.
    Thanks, Ann Y.

  • SQL error: Error creating fake recordset:

    Hello, I have this problem with a login page but only in the server, in local (wamp) I have no problem. Someone can help me? Thanks
    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /httpdocs/includes/common/lib/db/KT_Connection.class.php on line 71
    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /httpdocs/includes/common/lib/db/KT_Connection.class.php on line 71
    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in httpdocs/includes/common/lib/db/KT_Connection.class.php on line 92
    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in httpdocs/includes/common/lib/db/KT_Connection.class.php on line 105
    Errore:
    Errore interno.
    Developer Details:
    tNG_fields.getFakeRecordset:
    SQL error: Error creating fake recordset:
    SQL:
    SELECT '' AS kt_login_user, '' AS kt_login_password, '0' AS kt_login_rememberme (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW
    tNG_login.executeTransaction
    STARTER.Trigger_Default_Starter
    tNG_login.getRecordset
    tNG_login.getLocalRecordset
    tNG_login.getFakeRecordset* (in red)

    -----
    These are the privileges. They are ok to create temporary tables?
    yes, as "all privileges" also includes granting the "CREATE TEMPORARY TABLES" privilege.
    Granting each and every possible privilege is of course pretty insecure, and I would never do that on a public webserver -- that said, you can also narrow down the privileges like this:
    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE TEMPORARY TABLES ON database.* TO username@'localhost' IDENTIFIED BY 'password';
    please see a list of possible privileges and their meaning here: http://kb.mediatemple.net/questions/788/HOWTO:+GRANT+privileges+in+MySQL
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Recordset per message in Sender File Adapter

    Hi Friends
    I have configured a sender file adapter to pick up *.txt files from a specific path, Since the file is having thousands of records it is failing to process the file at  PI level . In order to avoid the problem I have kept Recordset Set Per Message as 10 , but still PI is processing all the records into a single message. Please help me in troubleshooting it.
    Regards
    Suman.

    Hi Suman,
      Go thru these threads for troubleshooting...
    Massive file
    Processing huge file loads through XI
    Processing of huge no of Inbound xml files
    Bottleneck in Large file processing
    How to process large data files in XI  ?  100 MB files ?
    Regds,
    Pinangshuk.

  • When I try to create a Recordset i get Javascript runtime error

    Please help i am working with Php and trying to create a
    recordset query to access my table etc. this is what i get when i
    click + Recordset from the Server Behaviors window:
    JavaScript error while loading RecordSet.htm:
    At line 1111 of file: "C:\Program
    Files\Macromedia\Dreamweaver
    8\Configuration\ServerBehaviors\PHP_MySQL\Recordset.js" : theStr =
    theStr.replace(/(?>)*/gi, ''''); //remove close tags
    SyntaxError: Invalid Quantifier ?

    i restarted it i am gonna restart the computer
    also went here
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19105&sliceId=1#dat
    didnt really help

  • ERROR       partner 'localhost:sapgw00' not reached

    Hi,
    i have BI system with portal. when i am trying to connetct portal with url http://<hostnaem>/<ip>:<portnumber>/irj/portal ---it is displaying as 500 internel server error with java.lang.NullPointerException: null .
    i am keeping  here two logfiles 1.dev_jrfc.trc 2.defaulttrace.trc here under for your reference.
    1..dev_jrfc.trc  --log
    Error> occured  >Tue Feb 17 04:52:46,483<
    RfcException:
        message: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=localhost SYSNR=00 GWHOST=localhost GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       partner 'localhost:sapgw00' not reached
    TIME        Tue Feb 17 04:52:46 2009
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -10
    MODULE      nixxi.cpp
    LINE        2513
    DETAIL      NiPConnect
    SYSTEM CALL connect
    ERRNO       146
    ERRNO TEXT  Connection refused
    COUNTER     10
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    Error> occured  >Tue Feb 17 04:52:46,503<
    RfcException:
        message: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=localhost SYSNR=00 GWHOST=localhost GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       partner 'localhost:sapgw00' not reached
    TIME        Tue Feb 17 04:52:46 2009
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -10
    MODULE      nixxi.cpp
    LINE        2513
    DETAIL      NiPConnect
    SYSTEM CALL connect
    ERRNO       146
    ERRNO TEXT  Connection refused
    COUNTER     12
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
    2.DefaultTrace.trc --log
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.3.7185 - 630]/>
    <!NAME[./log/defaultTrace.trc]/>
    <!PATTERN[defaultTrace.trc]/>
    <!FORMATTER[com.sap.tc.logging.ListFormatter]/>
    <!ENCODING[UTF8]/>
    <!FILESET[14, 20, 10485760]/>
    <!PREVIOUSFILE[defaultTrace.13.trc]/>
    <!NEXTFILE[defaultTrace.15.trc]/>
    <!LOGHEADER[END]/>
    #1.5 #00144FAC097C006C000000550000723800045E43F3A75D87#1229545850494#com.sap.engine.services.security#sap.com/tcjetrace~app#com.sap.engine.services.security#J2EE_GUEST#0##n/a##2f24ad50cc6c11dd974500144fac097c#SAPEngine_Application_Thread[impl:3]_9##0#0#Error#1#/System/Security#Java#security_3031##Cannot get run_as identity for the security role "admnistrator".#1#admnistrator#
    #1.5 #00144FAC097C006C000000560000723800045E43F3A776EC#1229545850500#com.sap.engine.services.security#sap.com/tcjetrace~app#com.sap.engine.services.security#J2EE_GUEST#0##n/a##2f24ad50cc6c11dd974500144fac097c#SAPEngine_Application_Thread[impl:3]_9##0#0#Error#1#/System/Audit#Java###Exception #1#com.sap.engine.services.security.exceptions.BaseSecurityException: Cannot get run_as identity for the security role "admnistrator".
         at com.sap.engine.services.security.roles.SecurityRoleContextImpl.getRunAsIdentity(SecurityRoleContextImpl.java:662)
         at com.sap.engine.services.security.roles.SecurityRoleReference.getRunAsIdentity(SecurityRoleReference.java:183)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.SessionServletContext.getSubject(SessionServletContext.java:598)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.ApplicationContext.getSubject(ApplicationContext.java:893)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.destroyServlets(WebComponents.java:720)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadDestroyer.run(ApplicationThreadDestroyer.java:62)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.security.api.PrincipalNotAccessibleException: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=localhost SYSNR=00 GWHOST=localhost GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       partner 'localhost:sapgw00' not reached
    TIME        Wed Dec 17 15:30:50 2008
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -10
    MODULE      nixxi.cpp
    LINE        2513
    DETAIL      NiPConnect
    SYSTEM CALL connect
    ERRNO       146
    ERRNO TEXT  Connection refused
    COUNTER     16
         at com.sap.security.core.imp.AbstractPrincipal.getPrincipalDatabagValues(AbstractPrincipal.java:1787)
         at com.sap.security.core.imp.Principal.setDirectChildrenInternal(Principal.java:501)
         at com.sap.security.core.imp.AbstractPrincipalSet.getUserMembersInternal(AbstractPrincipalSet.java:393)
         at com.sap.security.core.imp.AbstractPrincipalSet.getUserMembers(AbstractPrincipalSet.java:210)
         at com.sap.security.core.imp.AbstractPrincipalSet.getUserMembers(AbstractPrincipalSet.java:129)
         at com.sap.security.core.imp.GroupWrapper.getUserMembers(GroupWrapper.java:29)
         at com.sap.security.core.server.userstore.GroupInfoUME.engineGetUsersInGroup(GroupInfoUME.java:181)
         at com.sap.security.core.server.userstore.GroupContextUME.engineGetUsersOfGroup(GroupContextUME.java:379)
         at com.sap.engine.services.security.userstore.context.GroupContext.getUsersOfGroup(GroupContext.java:191)
         at com.sap.engine.services.security.roles.SecurityRoleContextImpl.getUserFromGroup(SecurityRoleContextImpl.java:775)
         at com.sap.engine.services.security.roles.SecurityRoleContextImpl.getUserFromRole(SecurityRoleContextImpl.java:763)
         at com.sap.engine.services.security.roles.SecurityRoleContextImpl.generateValidRunAsPrincipal(SecurityRoleContextImpl.java:719)
         at com.sap.engine.services.security.roles.SecurityRoleContextImpl.getRunAsIdentity(SecurityRoleContextImpl.java:610)
         ... 9 more
    #1.5 #002128049C66006D00000049000023EF0004631BF918D17E#1234871701262#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/irj#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#0##n/a##ce792bd0fce911dda3de002128049c66#SAPEngine_Application_Thread[impl:3]_12##0#0#Error##Plain###application [irj] Processing HTTP request to servlet [gateway] finished with error. The error is: java.lang.NullPointerException
         at com.sap.portal.navigation.Gateway.service(Gateway.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    #1.5 #002128049C66006D0000004B000023EF0004631BF918E565#1234871701267#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/irj#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#0##n/a##ce792bd0fce911dda3de002128049c66#SAPEngine_Application_Thread[impl:3]_12##0#0#Error#1#/System/Server/WebRequests#Plain###application [irj] Processing HTTP request to servlet [gateway] finished with error.
    The error is: java.lang.NullPointerException: null
    Exception id: [002128049C66006D00000049000023EF0004631BF918D17E]#
    #1.5 #002128049C66007200000033000023EF0004631BFBCDBE0A#1234871746674#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/irj#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#0##n/a##e98aa520fce911ddb1ff002128049c66#SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###application [irj] Processing HTTP request to servlet [gateway] finished with error. The error is: java.lang.NullPointerException
         at com.sap.portal.navigation.Gateway.service(Gateway.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    #1.5 #002128049C66007200000035000023EF0004631BFBCFAC76#1234871746800#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/irj#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#0##n/a##e98aa520fce911ddb1ff002128049c66#SAPEngine_Application_Thread[impl:3]_18##0#0#Error#1#/System/Server/WebRequests#Plain###application [irj] Processing HTTP request to servlet [gateway] finished with error.
    The error is: java.lang.NullPointerException: null
    Exception id: [002128049C66007200000033000023EF0004631BFBCDBE0A]#
    #1.5 #002128049C66006700000026000023EF0004631DEA2AFCFF#1234880040729#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/irj#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#J2EE_GUEST#0##n/a##392f0090fcfd11ddbd79002128049c66#SAPEngine_Application_Thread[impl:3]_26##0#0#Error##Plain###application [irj] Processing HTTP request to servlet [gateway] finished with error. The error is: java.lang.NullPointerException
         at com.sap.portal.navigation.Gateway.service(Gateway.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    #1.5 #002128049C66006700000028000023EF0004631DEA2B0507#1234880040731#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/irj#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#J2EE_GUEST#0##n/a##392f0090fcfd11ddbd79002128049c66#SAPEngine_Application_Thread[impl:3]_26##0#0#Error#1#/System/Server/WebRequests#Plain###application [irj] Processing HTTP request to servlet [gateway] finished with error.
    The error is: java.lang.NullPointerException: null
    Exception id: [002128049C66006700000026000023EF0004631DEA2AFCFF]#
    please help on this issue

    Hi,
    Somewhere the address is not getting resolved. I would suggest you to enter IP address instead of the hostname in the RFC (SM59).
    Hope this helps.
    Manoj Chintawar

  • Cannot deploy to localhost:7001  / how to remove the IPV6 from Jdeveloper ?

    Hi,
    Who could help on a deployment issue?
    I have a Weblogic admin server running on http://localhost:7001 and have access to the admin console.
    I developed a test application and deployed it on the Integrated Weblogic server (port 7101) and is running.
    When I try to deploy on the managed admin server, the deployment is correct but it generates an IPV6 addresse
    ( http://[2001:0:4137:9e76:2cd9:2c5e:af7f:ae32]:7001/GoogleMapApp )
    that I cannot use, as I don't use such addresses on the development laptop.
    I want to get the addresses
    http://127.0.0.1:7001/GoogleMapApp
    or
    http://localhost:7001/GoogleMapApp
    Thanks
    [07:23:17 PM] ---- Deployment started. ----
    [07:23:17 PM] Target platform is (Weblogic 10.3).
    [07:23:18 PM] Retrieving existing application information
    [07:23:18 PM] Running dependency analysis...
    [07:23:18 PM] Building...
    [07:23:21 PM] Deploying 2 profiles...
    [07:23:21 PM] Wrote Web Application Module to C:\JDeveloper\mywork\GoogleMap\ViewController\deploy\GoogleMap_ViewController_webapp1.war
    [07:23:21 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\GoogleMap\deploy\GoogleMap_application1.ear
    [07:23:22 PM] Redeploying Application...
    [07:23:28 PM] [Deployer:149192]Operation 'deploy' on application 'GoogleMap_application1' is in progress on 'AdminServer'
    [07:23:34 PM] [Deployer:149194]Operation 'deploy' on application 'GoogleMap_application1' has succeeded on 'AdminServer'
    [07:23:34 PM] Application Redeployed Successfully.
    [07:23:34 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [07:23:34 PM] http://[2001:0:4137:9e76:2cd9:2c5e:af7f:ae32]:7001/GoogleMapApp
    [07:23:34 PM] Elapsed time for deployment: 17 seconds
    [07:23:34 PM] ---- Deployment finished. ----
    ------------------

    HI,
    In your JDeveloper Init file please set the following JAVA_OPTION to disable IPv6
    -Djava.net.preferIPv4Stack=true"
    You can enable above option in the following file of JDeveloper: *"jdeveloper\jdev\bin\jdev.boot"*
    compiler.vmargs = -Xmx1024m   -Djava.net.preferIPv4Stack=trueThanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic/ (Middleware Magic Is Here)

  • Multiple tables in a recordset.

    Hi all,
    I have got a bit stuck with creating an advanced recordset that calls from multiple sub tables. I have created the SQL statement below (originally used inner joins but the code got too long and still didn't work).
    SELECT *
    FROM Main_Table, Table_1, Table_2, Table_3, Table_4, Table_5, Table_6, Table_7, Table_8, Table_9, Table_10, Table_11, Table_12, Table_13, Table_14, Table_15
    WHERE
    (((((((((((((((((Main_Table.ID_1 = Table_1.ID_1),
    Main_Table.ID_2 = Table_2.ID),
    Main_Table.ID_3 = Table_3.ID),
    Main_Table.ID_4 = Table_4.ID),
    Main_Table.ID_5 = Table_5.ID),
    Main_Table.ID_6 = Table_6.ID),
    Main_Table.ID_7 = Table_7.ID),
    Main_Table.ID_8 = Table_8.ID),
    Main_Table.ID_9 = Table_9.ID),
    Main_Table.ID_10 = Table_10.ID),
    Main_Table.ID_10 = Table_11.ID),
    Main_Table.ID_11 = Table_12.ID),
    Main_Table.ID_11 = Table_13.ID),
    Main_Table.ID_11 = Table_14.ID),
     Main_Table.ID_12 = Table_15.ID),
    AND cust_id = colname
    The idea is to get some text values from the sub tables by passing through the relevant ID of the main table to the sub tables ID. To add to the complexity the "cust_id = colname" is a passthrough from a prior page that only brings up a specific record from the main table. Further complexity may come where the two bolded sections are using a single ID from the main table to call from multiple sub tables.
    Ideally at the end of this I just want to pull the value from the recordset and drop into the page design. The page is PHP and the database/web server is using WAMP, if that helps?
    I feel i'm so close (but i'm probably nowhere near!). Can anyone help me before I lose my hair and develop a nervous tick? Unfortunately, I am still a bit of a novice with these things, so if it's my syntax or a coding issue please could you explain it in noob terms for me?
    Thank you in advance!

    The database was an access DB of 1 main table and 15 related tables that was then converted to MYSQL. The idea is that it will serve two purposes from web pages setup to point to it;
    1) To add records to the main database with dropdowns. Certain data will be shown depending on the dropdown selected.
    2) To show a data-only details screen.
    The data is complicated survey data and it was decided that the main table would store the variables and the sub tables would store the constants (Between 2 to 6 records) using the ID to link them.
    e.g.
    Name = Main table.name
    Address = Main table.address
    Position = Table 2.position
    Department = Table 2.Department
    etc...
    Have tried the AND statement above but the system just times out.
    Would it be easier to create multiple recordsets (15 recordsets of 1 main table and 1 sub table) and link it somehow to the cust_id? If so, how would I best set each up so only the relevant fields are pulled from the sub table for each recordset? Or am I being to adventerous and should I just give up and flatten the tables to 1 single table?
    Am starting to thin up top with this one! lol!

  • Recordsets with multiple options - AND, OR If Else and the "Any" Rule

    Hi,
    Been trying to get this to work for days now... I have a form with drop down lists that feeds through variables to a search page... The Recordset Jobsearch2 shown below works great so long as a user chooses and option that has info in the DB.... ie all fields must be present. I cannot seem to work out how to achieve and Any rule?...
    I have had 2 options suggested to me...
    a) the code below...
    if(isset($searchsector) && $searchsector !== "") {
    $query_jobsearch2 .= ' AND Sector LIKE "%' . mysql_real_escape_string($searchsector) . '%"';
    putting this in for each option..... but If Im told I have to add this in before the "$jobsearch2 = mysql_query" line... but when I do this the recordset disappears\is deleted...
    b) Using an Array and "Implode" -  this wouldbe great I'm sure if I had any clue how to do this and what it meant.
    MY CURRENT CODE
    <?php require_once('Connections/steelbakercouk_473245_db1.php'); ?>
    <?php
    $searchsector = $_POST['Sector'];
    $searchlocation = $_POST['clocation'];
    $searchmin = $_POST['minsalary'];
    $searchmax = $_POST['maxsalary'];
    $searchtype = $_POST['Type'];
    ?>
    <?php
    mysql_select_db($database_steelbakercouk_473245_db1, $steelbakercouk_473245_db1);
    $query_jobsearch2 = "SELECT jobs.clocation, jobs.Ref_id, jobs.RefCode, jobs.jobtitle, jobs.blurb, jobs.Consultant, jobs.Salary, jobs.tlocation, jobs.Sector, jobs.Type FROM jobs WHERE jobs.Salary BETWEEN '$searchmin' AND '$searchmax' AND clocation = '$searchlocation' AND jobs.Sector  = '$searchsector' AND jobs.Type = '$searchtype'";
    $jobsearch2 = mysql_query($query_jobsearch2, $steelbakercouk_473245_db1) or die(mysql_error());
    $row_jobsearch2 = mysql_fetch_assoc($jobsearch2);
    $totalRows_jobsearch2 = mysql_num_rows($jobsearch2);
    ?>
    Please help... ... pulling my hair out!
    Thanks

    Ok.. I've tried all methods and still not getting anywhere..
    David... following the link you gave me... and to the letter.. apart from GetSQLValueString()which does not seem to exist.
    All it does is return all the records (as per the basic recordset)
    Heres the code.... please please tell me where I am going wrong.... downloaded your book Foundation PHP but struggaling.,
    <?php require_once('Connections/steelbakercouk_473245_db1.php'); ?>
    <?php
    $searchsector = $_POST['Sector'];
    $searchlocation = $_POST['clocation'];
    $searchmin = $_POST['minsalary'];
    $searchmax = $_POST['maxsalary'];
    $searchtype = $_POST['Type'];
    $any = $_POST['any'];
    ?>
    <?php
    $currentPage = $_SERVER["PHP_SELF"];
    mysql_select_db($database_steelbakercouk_473245_db1, $steelbakercouk_473245_db1);
    $expected = array('Sector' => 'text',
                      'clocation'         => 'text',
                      'minsalary'          => 'int',
                      'maxsalary'      => 'int');
    $query_jobsearch2 = "SELECT jobs.clocation, jobs.Ref_id, jobs.RefCode, jobs.jobtitle, jobs.blurb, jobs.Consultant, jobs.Salary, jobs.tlocation, jobs.Sector, jobs.Type FROM jobs";
    $where = false;
    // Loop through the associatiave array of expected search values
    foreach ($expected as $var => $type) {
      if (isset($_GET[$var])) {
        $value = trim(urldecode($_GET[$var]));
        if (!empty($value)) {
          // Check if the value begins with > or <
          // If so, use it as the operator, and extract the value
          if ($value[0] == '>' || $value[0] == '<') {
            $operator = $value[0];
            $value = ltrim(substr($value, 1));
          } elseif (strtolower($type) != 'like') {
            $operator = '=';
          // Check if the WHERE clause has been added yet
          if ($where) {
            $query_search .= ' AND ';
          } else {
            $query_search .= ' WHERE ';
            $where = true;
          // Build the SQL query using the right operator and data type
          $type = strtolower($type);
          switch($type) {
            case 'like':
              $query_search .= "`$var` LIKE " . GetSQLValueString('%' .
    $value . '%', "text");
              break;
            case 'int':
            case 'double':
            case 'date':
              $query_search .= "`$var` $operator " .
    GetSQLValueString($value, "$type");
              break;
            default:
            $query_search .= "`$var` = " . GetSQLValueString($value,
    "$type");
    $jobsearch2 = mysql_query($query_jobsearch2, $steelbakercouk_473245_db1) or die(mysql_error());
    $row_jobsearch2 = mysql_fetch_assoc($jobsearch2);
    $totalRows_jobsearch2 = mysql_num_rows($jobsearch2);
    $queryString_jobsearch2 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_jobsearch2") == false &&
            stristr($param, "totalRows_jobsearch2") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_jobsearch2 = "&" . htmlentities(implode("&", $newParams));
    $queryString_jobsearch2 = sprintf("&totalRows_jobsearch2=%d%s", $totalRows_jobsearch2, $queryString_jobsearch2);
    ?>

  • Default value in recordset variable

    Hi,
    I am using Dreamweaver 8.
    I am not sure that I understand the function of the default
    value in the variable area of the recordset. I'm using a search box
    and sending the result on through the url. If the person types
    something that is not in either of the two fields searched, is the
    default value supposed to kick in? I have tried entering a value of
    something that is actually in the field, but get a broken image
    (x)...I'm displaying images.
    What I would actually do is to display an error message on a
    different page. Is there a SQL statement that could be put after
    the search statement such &quot;if not....go to url or
    something&quot;? If not, I was thinking of creating a blank
    image with wording stating that there was no match.
    Current recordset code:
    SELECT*
    FROM images
    WHERE description LIKE %colname% OR picturenum = colname2
    ORDER BY picturenum ASC
    Name:colname
    Type:Text
    Default Value: montana (an actual word in the database)
    Run-Time Value: $_GET['description']
    Name:colname2
    Type:Text
    Default Value: A091 (an actual image in the database)
    Run-Time Value: $_GET['description']
    Current code works perfectly thanks to some direction by
    David Powers....thanks David.
    Any help would be appreciated.
    Thanks,
    Cliff

    The best way to accomplish this is to build the WHERE clause dynamically, or else have a different WHERE clause that you use in these situations. In other words, test the value of the querystring variables and if they are empty,  use a different WHERE clause that does not include the address  condition.
    Also, this question belongs in the app dev forum.

Maybe you are looking for

  • How can I reload 3.6 on my pc, I don't like v. 4.0

    I recently upgrade to Firefox 4.0 from 3.6 but would like to delete 4.0 and go back to 3.6. Not pleased with the changed format.

  • Launching Adobe AIR application installer

    I'd like to start this installer up from an ant script but there is no documentation on the command line arguments. Are there any? Specifying simply the name of the air app as the first argument produces: unexpected error: ArgumentError: Error #2004

  • Youtube/Vimeo Video Milky (video levels)

    Youtube and Vimeo videos are rendered with video levels, and not full range. Therefore all videos look washed out. Is there a fix for this?

  • Download speed of drivers from Creative

    '? Well, I just bought the Creative WoW Wireless Headset which I know was a mistake. I'll return it when I get the chance of course. But I'd at least like to try it for a few days. So now I'm trying to download the drivers for it but the download spe

  • Problems saving .tiff file

    I am trying to save a .psd to a .tiff file. My .psd has a couple layers and a drop shadow effect. When I save the file seems to be fine until i veiw it in any Windows or Microsoft view, thumbnail view or application such as word, it looks squeezed an