SQL syntax error when creating record insertion form

Good day,
I was hoping someone could help me.  I am trying to create a record insertion form on a website to insert data into a database table.  When attempting to create the form, I am getting the following error: 
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1
Not sure what is going on.  I am running windows 8 and DW cs5 w/ MYSQL.  I am testing on a local server prior to pushing to the remote server.
Thank you for your assistance and please advise any code you would like me to send.

Here is all the code from this particular webpage.  I apologize, I am too stupid to realize which parts are SQL vice PHP vice HTML:
<?php require_once('Connections/group4.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
   if (PHP_VERSION < 6) {
     $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
     case "text":
       $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
       break;   
     case "long":
     case "int":
       $theValue = ($theValue != "") ? intval($theValue) : "NULL";
       break;
     case "double":
       $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
       break;
     case "date":
       $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
       break;
     case "defined":
       $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
       break;
   return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
   $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
   $insertSQL = sprintf("INSERT INTO individual (Grade, LastName, FirstName, M.I., Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMailing Address`, Citizenship, Designation, IATrainingComplete, IADate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                        GetSQLValueString($_POST['Grade'], "text"),
                        GetSQLValueString($_POST['LastName'], "text"),
                        GetSQLValueString($_POST['FirstName'], "text"),
                        GetSQLValueString($_POST['MI'], "text"),
                        GetSQLValueString($_POST['Organization'], "text"),
                        GetSQLValueString($_POST['Office'], "text"),
                        GetSQLValueString($_POST['Department'], "text"),
                        GetSQLValueString($_POST['Phone'], "double"),
                        GetSQLValueString($_POST['EmailAddress'], "text"),
                        GetSQLValueString($_POST['JobTitle'], "text"),
                        GetSQLValueString($_POST['OfficialMailing_Address'], "text"),
                        GetSQLValueString($_POST['Citizenship'], "text"),
                        GetSQLValueString($_POST['Designation'], "text"),
                        GetSQLValueString($_POST['IATrainingComplete'], "text"),
                        GetSQLValueString($_POST['IADate'], "text"));
  mysql_select_db($database_group4, $group4);
   $Result1 = mysql_query($insertSQL, $group4) or die(mysql_error());
  $insertGoTo = "index.php";
   if (isset($_SERVER['QUERY_STRING'])) {
     $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
     $insertGoTo .= $_SERVER['QUERY_STRING'];
   header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_group4, $group4);
$query_rsIndividual = "SELECT * FROM individual ORDER BY IndividualNumber ASC";
$rsIndividual = mysql_query($query_rsIndividual, $group4) or die(mysql_error());
$row_rsIndividual = mysql_fetch_assoc($rsIndividual);
$totalRows_rsIndividual = mysql_num_rows($rsIndividual);
?>
<!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>Contact Us</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.header {
  font-size: 36px;
  text-decoration: underline;
.quote {
  font-size: 18px;
  font-style: italic;
.tablethisone {
  margin: 5px;
  padding: 25px;
  border: medium none #000;
  text-align: center;
</style>
</head>
<body>
<p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
</span></p>
<ul id="MenuBar1" class="MenuBarHorizontal">
   <li><a href="index.php">Home</a>  </li>
   <li><a href="search.php">Search</a></li>
   <li><a href="contact.php">Contact Us</a>  </li>
</ul>
<p> </p>
<p>PRIVACY ACT STATEMENT</p>
<p>Executive Order 10450, 9397; and Public Law 99-474, the Computer Fraud and Abuse Act.
   To record names, signatures, and other identifiers for the purpose of validating the trustworthiness of individuals requesting
   access to Department of Defense (DoD) systems and information. NOTE: Records may be maintained in both electronic
   and/or paper form.</p>
<p> </p>
<p> </p>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
   <table align="center">
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Grade:</td>
       <td><input type="text" name="Grade" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">LastName:</td>
       <td><input type="text" name="LastName" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">FirstName:</td>
       <td><input type="text" name="FirstName" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">M.I.:</td>
       <td><input type="text" name="MI" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Organization:</td>
       <td><input type="text" name="Organization" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Office:</td>
       <td><input type="text" name="Office" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Department:</td>
       <td><input type="text" name="Department" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Phone:</td>
       <td><input type="text" name="Phone" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">EmailAddress:</td>
       <td><input type="text" name="EmailAddress" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">JobTitle:</td>
       <td><input type="text" name="JobTitle" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">OfficialMailing Address:</td>
       <td><input type="text" name="OfficialMailing_Address" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Citizenship:</td>
       <td><input type="text" name="Citizenship" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">Designation:</td>
       <td><input type="text" name="Designation" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">IATrainingComplete:</td>
       <td><input type="text" name="IATrainingComplete" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right">IADate:</td>
       <td><input type="text" name="IADate" value="" size="32" /></td>
     </tr>
     <tr valign="baseline">
       <td nowrap="nowrap" align="right"> </td>
       <td><input type="submit" value="Insert record" /></td>
     </tr>
   </table>
   <input type="hidden" name="MM_insert" value="form1" />
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Disclosure of this information is voluntary; however, failure to provide the requested information may impede, delay or
prevent further processing of this request.</p>
<p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
<p> </p>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html>
<?php
mysql_free_result($rsIndividual);
?>

Similar Messages

  • Dreamweaver Error when using Record Insertion Form Wizard

    This is the error I'm getting:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following JavaScript error(s) occured:
    At line 283 of file "C:Program Files (x86)\Adobe\Adobe Dreamweaver CS4\Configuration\Commands\ServerObject-FormCmnPHP.js":
    invalid array length
    The strange thing is, that I've added a form using the wizard before and had no problems. But I deleted the form and wanted to create a new one using the wizard again. And that's when I got the error. I tried this on another computer and got the same error.
    Please help, this is very aggrevating.
    *Also, I've done the same thing on multiple computers and get the same error.
    I've tried deleting the file cache in the configuration folder as instructed by an individual who was talking about JavaScript errors and it still doesn't work.
    Message was edited by: PJP2123

    I know its 4 years later but I just got the same error. after several hours of debugging i found the issue was in my database.
    I have fields named - length, width, height, weight.
    I fixed it by changing them to Lamplength, lampwi   etc
    hope that helps anyone else in the future.

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Loyalty application error when creating records.

    I am new in Siebel world and we have just installed Siebel loyalty and the Siebel Customer eLoyalty Portal on a sandbox to learn the product features.
    The database has no data yet so I would like to create records.
    So I start Siebel Loyalty 8.2.1 client, connect to the server, go to Loyalty Program Administration and click new to create a new program. I put a entry for the Name field and I have nothing to select from the Program owner pick channel window because I did not create a partner yet. So I start the Siebel Partner manager ENU application 8.2.1, connect to the server. I go in the partner tab and try to create a new partner entering a partner name.
    Then I get this error when I press enter:
    An error has occurred writing to a record.
    Please continue or ask your systems administrator to check your application configuration if the problem persists. (SQL-DBC-00111) ORA-01400 cannot insert NULL into ("SIEBEL"."S_ACCNT_POSTN"."POSITION_ID")
    I have Siebel admiinistrator access.
    What I am missing here to be able to enter data. The only field mandatory is the Partner name...
    Thank you for your help

    You probably want to create an account, link a partner to the account and then create the program.
    - Hashim

  • Syntax error when creating database

    Not sure if this is the correct forum, but here goes..
    Using a sample at:
    Technet Link
    I get a "Syntax error near GO" when I try to execute the following SQL Command.
    USE master
    GO
    CREATE DATABASE testdb
    ON
    ( NAME = testdb,
    FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\testdb.mdf' )
    GO
    I am using a function to create this database.  It is a temporary database that gets recreated or altered frequently.
    The code checks for SQL Server, gets it's version number in order to use the default SQL Server path.  If SQL Server isn't available, ACE / OLEDB is used to create and manage the database (this part works fine).
    The code used to check for and create the database follows.
    private Boolean CheckForSQLServer()
    SqlConnection cnx = null;
    Int32 dbExists = 1;
    SqlCommand sql;
    String SSData = String.Empty;
    // Check for SQL Server. If it exists, use it.
    String login = UserPrincipal.Current.UserPrincipalName;
    login = login.Substring(0, login.IndexOf("@"));
    try {
    cnx = new SqlConnection(
    String.Format("server={0};user={1};Trusted_Connection=Yes;", Prop.SQLConnection, login));
    cnx.Open();
    hasSQLServer = true;
    } catch (Exception) {
    hasSQLServer = false;
    return true;
    if (hasSQLServer) {
    try {
    String ServerVersion = cnx.ServerVersion;
    String SSPath = String.Format(@"C:\Program Files\Microsoft SQL Server\MSSQL{0}.MSSQLSERVER\MSSQL\DATA\",
    ServerVersion.Substring(0, ServerVersion.IndexOf('.')));
    SSData = String.Format(
    "USE master\nGO\nCREATE DATABASE {0}\nON\n( NAME = '{1}',\nFILENAME = '{2}{1}.mdf' )\nGO",
    Prop.SQLDBName, Prop.SQLDBName, SSPath);
    String s = String.Format(
    "SELECT COUNT(*) FROM (SELECT DB_ID('{0}') AS DbID) t WHERE DbID IS NOT NULL", Prop.SQLDBName);
    sql = new SqlCommand(s, cnx);
    SqlDataReader sr = sql.ExecuteReader();
    if (sr.Read())
    dbExists = (Int32)sr[0];
    sr.Close();
    } catch (Exception) { }
    if (dbExists == 0) {
    try {
    sql = new SqlCommand(SSData, cnx);
    sql.ExecuteNonQuery();
    } catch (Exception) { }
    } else {
    try {
    sql = new SqlCommand(String.Format("drop database {0};", Prop.SQLDBName), cnx);
    sql.ExecuteNonQuery();
    sql = new SqlCommand(SSData, cnx);
    sql.ExecuteNonQuery();
    } catch (Exception) { }
    cnx.Close();
    return false;
    Comparing the generated SQL string to sample E at the link above shows them to be identical except for the database name and file pathname, but the paths do exist although the files do not.
    The SQL Exception occurs at the first
    sql = new SqlCommand(SSData, cnx);
    statement in the code.  I would think this can be done as a single string even though a .sql file is referenced in the article.
    Andy

    Works correctly in SQL Server 2014 Management Studio:
    USE master
    GO
    CREATE DATABASE testdb
    ON
    ( NAME = testdb,
    FILENAME = 'F:\temp\testdb.mdf' )
    GO
    DROP DATABASE testdb
    GO
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Syntax error when creating input-ready query

    Hi,
    When creating an input-ready query, I set the key-figure to 'Data can be changed by user entries or Planning Functions' in the Planning Properties in the query designer.
    When I execute the query, I get the following error:
    Syntax Error in : CL_RSR_RRK0_KEYFIGURE
    In se24, the class has a syntax error in its Constructor method.
    The error is not occuring when I change the Planning property to 'Data Cannot be changed' or 'Data can be changed via Planning Functions'.
    Has anyone encountered such an error. If yes, how to proceed further?
    Anything do with the the ABAP Patches. Currently I am in Patch13.
    Thanks,
    Balaji

    Hi,
    Plz apply the notes 1042924 and 1043103.After appling the notes regenerate the
    query.
    This should solve the error.
    Regards,
    Srikanth.

  • Getting syntax error when i using INSERT command

    Hi,
    i am using MS Access DB. Table name is "Timesheet". the table has the following Fields,
    uname - Text
    date - Text
    intime - Text
    outtime - Text
    duration - Text
    desc - Text
    i am using preparedStatment,
    String accessDBURLPrefix = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    String accessDBURLSuffix = ";DriverID=22;READONLY=false}";
    String filename="D:\\TimeSheet\\TimeDB.mdb"
    String databaseURL = accessDBURLPrefix + filename + accessDBURLSuffix;
    Connection con = DriverManager.getConnection(databaseURL);
    PreparedStatment st = con.prepareStatement("INSERT INTO (uname, date, intime) TimeSheet VALUES (?,?,?)");
    st.setString(1,user);
    st.setString(2,date);
    st.setString(3,intime);
    st.executeUpdate();
    }if i am going to compile this code i will get SQLException
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136)
         at TimeSheetDemo.writeToDB(TimeSheetDemo.java:84)
         at TimeSheetDemo.main(TimeSheetDemo.java:37)
    Really i have tired to figure out this problem. please help me anyone.
    thank you

    Thank you. it was my careless mistake. i changed that mistake. but still it is not working, get same exception.
    st = con.prepareStatement("INSERT INTO  TimeSheet (uname, date, intime) VALUES (?,?,?)");suppose, if i will give values for all fields, it will work fine, example
    st = con.prepareStatement("INSERT INTO  TimeSheet  VALUES (?,?,?,?,?,?)");
    st.setString(1,user);
    st.setString(2,date);
    st.setString(3,intime);
    st.setString(4,outtime);
    st.setString(5,duration);
    st.setString(6,descrip);
    st.executeUpdate();But my problem is i want to insert the values for only 3 fields.
    give me the solution for inserting values for specified fields

  • Syntax error when creating Overwrite method - implicit enhancement

    Hi,
    I am working at a customer site, and need to implicitly enhance certain methods. I would like to create an Overwrite Method for the following class/method:
    CL_CRM_MKTDEF_DEFAULTS_PERSIST -> HEADER_WITH_KEY_EXITS_IN_DBASE( )
    I proceeded in the following way:
    Open class CL_CRM_MKTDEF_DEFAULTS_PERSIST in class builder (SE24)
    Select menu path Class -> Enhance
    Create, or select, enhancement implementation ZCRM_MKTDEF_PRD
    Select method HEADER_WITH_KEY_EXITS_IN_DBASE, select menu path Edit -> Enhancement Operation -> Add Overwrite Method
    Click on u201CNavigation to Overwrite Exitu201D
    After navigating to the Overwrite Exit, I click on "Check" to perform a syntax check (notice, I have not yet implemented any code. Everything so far has been done by the wizard).
    Now, I get the following error:
    Enhancement Implementation ZCRM_MKTDEF_PRD
    Unable to interpret "IS_DEFAULTS_ATTR". Possible causes: Incorrect
    spelling or grammar.
    When I create Overwrite methods for any other method in the same class, the same error does NOT occur. As far as I can tell, there is nothing special about this method that should cause this error.
    I would greately appreciate any help that any of you could give me on this one.
    thank you and best regards,
    - Marius
    PS: Here is my code (which was generated after I followed the outlined steps above) for your reference:
    CLASS LCL_ZCRM_MKTDEF_PRD DEFINITION.
    PUBLIC SECTION.
    CLASS-DATA OBJ TYPE REF TO LCL_ZCRM_MKTDEF_PRD.
    DATA CORE_OBJECT TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST .
    INTERFACES  IOW_ZCRM_MKTDEF_PRD.
      METHODS:
       CONSTRUCTOR IMPORTING CORE_OBJECT
         TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST OPTIONAL.
    ENDCLASS.
    CLASS LCL_ZCRM_MKTDEF_PRD IMPLEMENTATION.
    METHOD CONSTRUCTOR.
      ME->CORE_OBJECT = CORE_OBJECT.
    ENDMETHOD.
    METHOD IOW_ZCRM_MKTDEF_PRD~HEADER_WITH_KEY_EXITS_IN_DBASE.
    *" Declaration of Overwrite-method, do not insert any comments here please!
    *"methods HEADER_WITH_KEY_EXITS_IN_DBASE
    *"  importing
    *"    !IS_DEFAULTS_ATTR type CRMS_MKTDEF_DEFAULTS_DATA
    *"  returning
    *"    value(EV_EXISTS) type CRMT_BOOLEAN
    *"  exceptions
    *"    FAILURE .
    ENDMETHOD.
    ENDCLASS.

    Note 1256889

  • Declare @p1 variable error when creating multiple search form to show database info

    Hi, all help is incredibly appreciated,
    i have been trying to make a multiple filtered search form for a database in asp / vbscript. I want to be able to select from THIS database table, all info on the rows which id is BETWEEN x and x AND date is BETWEEN x and x AND securitynumber is BETWEEN x and x
    what would be the best way to do this?
    this is what ive got so far, which gives me the error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC SQL Server Driver][SQL Server]Must declare the variable '@P1'.
    <%
    Dim rsBundleR__p_selectedDB
    rsBundleR__p_selectedDB = request.form("selectedDataBase")
    If (request.form("selectedDataBase") <> "") Then
      rsBundleR__p_selectedDB = request.form("selectedDataBase")
    End If
    %>
    <%
    Dim rsBundleR__p_idFrom
    rsBundleR__p_idFrom = request.form("bundleIdFrom")
    If (request.form("bundleIdFrom")  <> "") Then
      rsBundleR__p_idFrom = request.form("bundleIdFrom")
    End If
    %>
    <%
    Dim rsBundleR__p_idTo
    rsBundleR__p_idTo = request.form("bundleIdTo")
    If (request.form("bundleIdTo") <> "") Then
      rsBundleR__p_idTo = request.form("bundleIdTo")
    End If
    %>
    <%
    Dim rsBundleR__p_dateFrom
    rsBundleR__p_dateFrom = request.form("fromDate")
    If (request.form("fromDate") <> "") Then
      rsBundleR__p_dateFrom = request.form("fromDate")
    End If
    %>
    <%
    Dim rsBundleR__p_dateTo
    rsBundleR__p_dateTo = request.form("toDate")
    If (request.form("toDate") <> "") Then
      rsBundleR__p_dateTo = request.form("toDate")
    End If
    %>
    <%
    Dim rsBundleR__p_ssFrom
    rsBundleR__p_ssFrom = request.form("fromSS")
    If (request.form("fromSS") <> "") Then
      rsBundleR__p_ssFrom = request.form("fromSS")
    End If
    %>
    <%
    Dim rsBundleR__p_ssTo
    rsBundleR__p_ssTo = request.form("toSS")
    If (request.form("toSS") <> "") Then
      rsBundleR__p_ssTo = request.form("toSS")
    End If
    %>
    <%
    Dim rsBundleR
    Dim rsBundleR_cmd
    Dim rsBundleR_numRows
    Set rsBundleR_cmd = Server.CreateObject ("ADODB.Command")
    rsBundleR_cmd.ActiveConnection = MM_PHPSQL_STRING
    rsBundleR_cmd.CommandText = "SELECT * FROM ? WHERE id BETWEEN ? AND ?  AND fecha_solicitado BETWEEN ? AND ?  AND seguro_social BETWEEN ? AND ? ORDER BY id ASC"
    rsBundleR_cmd.Prepared = true
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param1", 200, 1, 255, rsBundleR__p_selectedDB) ' adVarChar
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param2", 5, 1, -1, rsBundleR__p_idFrom) ' adDouble
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param3", 5, 1, -1, rsBundleR__p_idTo) ' adDouble
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param4", 135, 1, -1, rsBundleR__p_dateFrom) ' adDBTimeStamp
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param5", 135, 1, -1, rsBundleR__p_dateTo) ' adDBTimeStamp
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param6", 200, 1, 255, rsBundleR__p_ssFrom) ' adVarChar
    rsBundleR_cmd.Parameters.Append rsBundleR_cmd.CreateParameter("param7", 200, 1, 255, rsBundleR__p_ssTo) ' adVarChar
    Set rsBundleR = rsBundleR_cmd.Execute
    rsBundleR_numRows = 0
    %>
    someone, please help, this is very important!

    allright i think thats what i did here:
      <% While ((Repeat1__numRows <> 0) AND (NOT rsBundleR.EOF)) %>
    <table align="center" border="1">
              <tr>
                <td align="left" width="50%">id</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("id").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">seguro_social</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("seguro_social").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">numero_estudiante</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("numero_estudiante").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">nombre</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("nombre").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">apellido</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("apellido").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">telefono</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("telefono").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">celular</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("celular").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_postal</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_postal").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_postal_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_postal_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">email_pupr</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("email_pupr").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">ciudad</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("ciudad").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">estado</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("estado").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">zona_postal</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("zona_postal").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_fisica</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_fisica").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_fisica_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_fisica_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">email_personal</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("email_personal").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">ciudad_fisica</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("ciudad_fisica").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">estado_fisica</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("estado_fisica").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">zona_postal_fisica</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("zona_postal_fisica").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">tipo_estudiante</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("tipo_estudiante").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">termino_prestamo</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("termino_prestamo").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">nombre_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("nombre_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">apellido_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("apellido_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">telefono_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("telefono_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_postal_1_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_postal_1_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_postal_2_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_postal_2_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">ciudad_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("ciudad_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">estado_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("estado_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">zona_postal_referencia_1</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("zona_postal_referencia_1").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">nombre_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("nombre_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">apllido_refencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("apllido_refencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">telefono_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("telefono_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_postal_1_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_postal_1_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">direccion_postal_2_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("direccion_postal_2_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">ciudad_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("ciudad_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">estado_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("estado_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">zona_postal_referencia_2</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("zona_postal_referencia_2").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">tipo_de_prestamo</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("tipo_de_prestamo").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">cantidad_prestamo</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("cantidad_prestamo").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">subsidiado</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("subsidiado").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">no_subsidiado</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("no_subsidiado").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">autorizo_pupr</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("autorizo_pupr").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">fecha_solicitado</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("fecha_solicitado").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">estatus</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("estatus").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">revisado_por</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("revisado_por").Value)%></td>
              </tr>
              <tr>
                <td align="left" width="50%">nota_personal</td>
                <td align="left" width="50%"><%=(rsBundleR.Fields.Item("nota_personal").Value)%></td>
              </tr>
            </table>
      <br /><br />
        <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      rsBundleR.MoveNext()
    Wend
    %>
    , no error is given BUT still, no information is showing.
    However, i dont see the "." either :/
    I made it create a table for each record,
    is it the way i called the information?
    or is the query not finding anything?
    ( there is information in the database )

  • Error when creating record from portal into MDM using MDM API's

    Hi All,
    When trying to create a new record from Portal we are getting the below error. It is working fine till yesterday.
    We are using MDM API's from webdynpro java for creating.
    What could be the reason for this. Not sure whether this error is ocuring for all the users or for single user.
    "Exception: CommandException com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Database command execution error. A SQL statement failed to execute. The actual error may have been written to a log file."
    Please help to resovle this.
    Thanks
    Satish

    Hello Satish
    Suppose your Portal was upgrated
    if it right -  search and deploy new mdm packages
    Regards
    Kanstantsin

  • Error when creating new XML-Form

    Hi everybody!
    We are using XML-Forms to create/edit/display FAQs out of the KM-Content. We have created our own XMLForms for that and it worked fine. After our last upgrade (NW 7.0 SP-Stack 16) we have the following problem:
    clicking the "new FAQ" link in the portalruntime doesn't start the XML-Form anymore but displays an java error:
    java.lang.RuntimeException: Context is unavailable!
         at com.sap.pct.plm.dmsrmconnectorforkm.DMSRMConnection.(DMSRMConnection.java:83)
         at com.sap.pct.plm.dmsrmconnectorforkm.DMSRMR3FunctionCalls.getGenericValueList(DMSRMR3FunctionCalls.java:6598)
         at com.sap.pct.plm.dmsrmconnectorforkm.DMSRMR3FunctionCalls.getLaboratoryList(DMSRMR3FunctionCalls.java:6426)
         at com.sap.pct.plm.dmsrmconnectorforkm.DMSRMR3FunctionCalls.getLaboratoryDescription(DMSRMR3FunctionCalls.java:6451)
         at com.sap.pct.plm.dmsrmconnectorforkm.DMSRMLaboratoryValueProvider.getValueLabel(DMSRMLaboratoryValueProvider.java:47)
         at com.sapportals.wcm.service.propertyconfig.config.MetaValue.getValueLabel(MetaValue.java:53)
         at com.sapportals.wcm.service.propertyconfig.config.MetaValue.getValueLabel(MetaValue.java:79)
         at com.sapportals.wcm.service.xmlforms.validation.PropertyLocalizer.getLocalizedPropertyValue(PropertyLocalizer.java:294)
         at com.sapportals.wcm.service.xmlforms.validation.PropertyLocalizer.localize(PropertyLocalizer.java:208)
         at com.sapportals.wcm.service.xmlforms.transformation.TransformationHelper.localizeProperties(TransformationHelper.java:64)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.render(Transformation.java:438)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.renderTemplate(Transformation.java:318)
         at com.sapportals.wcm.service.xmlforms.transformation.Transformation.renderItemOrTemplate(Transformation.java:332)
         at com.sapportals.wcm.app.xmlforms.EditServlet.doGetAction(EditServlet.java:348)
         at com.sapportals.wcm.app.xmlforms.XFBaseServlet.doGet(XFBaseServlet.java:241)
    I don't have that behaviour when i try to edit an existign FAQ. But I have the same problem with any other XML-form i'm using to create KM-docs.
    to me it seems that the creation-context is somehow not valid. But what does that mean? and what can I do about it?
    Regrads, Alex

    Hi Alexander
    I think this thread might help you as it helped me, and it is the exact same error that you get
    https://www.sdn.sap.com/irj/sdn/thread?messageID=2943423#2943423
    Best regards,
    Martin Søgaard

  • Syntax Error after creating enhancements for subroutine

    Problem:
    Creating enhancement sections gives a syntax error when creating enhancement options and implementations for a subroutine and then ceating enhancement options and implementations for the call to that same subroutine.
    <p>
    Syntax Error:
    "Different number of parameters in FORM and PERFORM (routine: SET_LAYOUT, number of formal parameters: 2, number of actual parameters: 1)
    </p>
    <p>
    Here's the following scenario:
    </p>
    <p>
    A subroutine is defined in a program.
    The subroutine is called within the same program.
    </p>
    <p>
    I then executed these steps:
    <br>     1. Defined an enhancement section around the subroutine definition
    <br>     2. Defined an enhancement section around the subroutine call.
    <br>     3. Implemented the enhancement section around the subroutine definition and add an additional parameter.
    </p>
    <p>
         Currently, this gives a syntax error as expected, since the call to the subroutine needs 1 more parameter.
    </p>
    <p>
         4. Implemented the enhancement section for the subroutine call.  I change the call in the implementation so it passes the new parameter.
    </p>
    <p>
    A syntax check to this gives an error.  The syntax checker is not only checking the new implementation, but also the original subroutine that should have been overwritten.
    </p>
    <p>
    The enhancement sections use the same enhancement spot, and the enhancement implementations use the same implementation.
    </p>
    <p>
    I tried various combinations of using different enhancement spots and/or implementations, but all give the same syntax error.  I tried separating the subroutine in a different include and  retried my testing, but it still gave the same syntax error.
    </p>
    <p>
    Here's the sample code I first created to try troubleshooting the problem:
    </p>
    <p>
    <pre>
    ENHANCEMENT-SECTION ZEP_Z_MICHAEL_02 SPOTS ZES_Z_MICHAEL .
         PERFORM set_layout
              CHANGING
              wa_layout.
    END-ENHANCEMENT-SECTION.
    $$-Start: ZEP_Z_MICHAEL_02----
    $$
    ENHANCEMENT 2  ZEI_TEST_SECTIONS.
         "inactive version
         PERFORM set_layout
         using 'X'
              CHANGING
              wa_layout.
    ENDENHANCEMENT.
    $$-End:   ZEP_Z_MICHAEL_02----
    $$
    ENHANCEMENT-SECTION ZEP_Z_MICHAEL_01 SPOTS ZES_Z_MICHAEL STATIC .
    FORM set_layout
    CHANGING p_wa_layout TYPE slis_layout_alv.
    p_wa_layout-zebra = 'X'.
    wa_layout-no_colhead = 'X'..
    p_wa_layout-colwidth_optimize ='X'.
    wa_layout-window_titlebar = 'Woot'.
    ENDFORM. "set_layout
    END-ENHANCEMENT-SECTION.
    $$-Start: ZEP_Z_MICHAEL_01----
    $$
    ENHANCEMENT 1  ZEI_TEST_SECTIONS.
         "inactive version
    FORM set_layout
    using p_test type boolean
    CHANGING p_wa_layout TYPE slis_layout_alv.
    p_wa_layout-zebra = 'X'.
    wa_layout-no_colhead = 'X'..
    p_wa_layout-colwidth_optimize ='X'.
    wa_layout-window_titlebar = 'Woot'.
    ENDFORM. "set_layout
    ENDENHANCEMENT.
    $$-End:   ZEP_Z_MICHAEL_01----
    $$
    </pre>
    </p>
    <p>
    Please let me know if you think I am doing something wrong. 
    </p>
    <p>
    Thanks, <br>
    Mike
    </p>
    Edited by: Michael Herman on Mar 8, 2010 8:11 PM

    Yes, Sandra.  That is what did and it worked with no syntax errors!
    I'm not sure if this is getting off topic or not, but the SAP documentation(taken from the SAP help after pressing F1 on the keyword static in ERP6) seems misleading:
    "The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding."
    I would think the enhancement section ZEP_Z_MICHAEL_02 would fall under the category of executable code, while the enhancement section ZEP_Z_MICHAEL_01 would fall under the category of declarative code.
    Unfortunately, all the SAP enhancement sections I come accross are dynamic.  The SAP help explains the reasoning for this:
    "In contrast to the statement ENHANCEMENT-POINT, the addition STATIC of the statement ENHANCEMENT-SECTION can only be used with maximum caution for changes of data declarations, because a replacement and no completion is carried out. Especially application development within SAP should not use the addition STATIC at all with ENHANCEMENT-SECTION as the change will be active in the entire customer system. "
    I do not know what the word "completion" means in the previous quote, so I can't determine why it would matter.  Regardless, if a developer wanted to change a standard subroutine declaration, they would also have to mod an enhancement section to change it to static.  This seems to defeat the purpose of using enhancements, but maybe this scenario is not what enhancements were intended for.

  • Error in Forms while creating the trigger- WHEN-CREATE-RECORD

    Hello,
    Right now I am using 11g client side and 10g database.
    I am constantly getting an error while creating triggers in 11g.
    I have created a sequence in SQL developer using the following code:
    create sequence loc_id_sequence
    start with 14;
    After creating the sequence. I am trying to write the PL/SQL code in forms builder for the trigger WHEN-CREATE-RECORD
    declare
    loc_id number;
    begin
    loc_id := loc_id_sequence.nextval;
    end;
    But I have been getting the following error constantly. Can anyone please help me?
    "Error 0 at line 5, column 4
    SQL statement ignored".
    Can anyone please tell me why I am getting that error

    In fact, even I thought there might be some problem with the connectivity with the 10g database and 11g client but the other DB related code works.
    I just have the problem with using sequence for the trigger WHEN-CREATE-RECORD.
    In fact I also tried using WHEN-NEW-RECORD-INSTANCE smart trigger instead of WHEN-CREATE-RECORD for the same sequence. But even that doesn't work.
    Do u have any idea of what that error means?
    "Error 0 at line 5, column 4
    SQL statement ignored"
    Edited by: Pooja 1985 on Feb 26, 2013 5:43 PM
    Edited by: Pooja 1985 on Feb 26, 2013 5:44 PM

  • Dreamweaver CS4 - Record Insertion Form js error

    Hi
    I'm dreamweaver cs4 and started using the Record Insertion form, I was mainly experimenting with it and just seeing what it could do.
    However when I get to the wizard i have to wait a few seconds for it to connect to the database and then I get an error message that says:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following Javascript error(s) occured:
    At line 283 of the file "Macintosh HD:Application:Adobe Dreamweaver
    CS4:Configuration:Commands:ServerObject-FormCmnPHP.js":
    invalid array length
    I was just wondering if this was a common problem, or I've messed something up either in Dreamweaver, or in the SQL database that I'm using.
    I've also noticed that its the same for Update and Delete Records Wizards aswell.
    Any help would be greatly appreciated
    Aaron Kennedy

    I see it's your first post. Welcome to the forum.
    A good place to start looking for answers is the Dreamweaver FAQ. You'll find the answer to your question under "Crashes, installation, JavaScript, and unexplained problems".

  • Error when creating a FDM application on SQL Server 2005

    Hi,
    we are getting this error when creating a FDM application on SQL Server 2005
    Error: EPMCSS-07003: Failed to validate identity. Invalid identity . Check identity.[SET_ROLES_LIST]
    We are using Windows System Integration although we have also tested with sa user.
    Any ideas?
    Thanks

    Based on the error message it appears to be having a Shared Services issue. Verify that the "ADMIN" account is being used for the HSS connection and that you are using "ADMIN" to create the application and see if the same error is returned.

Maybe you are looking for

  • To get information message(dialogue box) in screen program

    Hi Friends, Plese do the neededful help asap. When try to switch between the tabs during data entry before save, data is getting lost. A message should be displayed during “ADD” and “CHANGE” mode. The warning message could be “Data will be lost if re

  • How  applet write file in local system by URL instead of FileOutputStream()

    hi, how can applet write a file in local system through URL instead of FileOupStream() plz.....plz.....plz...... URL url = new URL(" file://c:/temp.txt"); in this url how applet can write plz....

  • Connecting Sony HDR-CX130 to IMac?

    I've bought the above mentioned handycam. It's Manual says PMB software cannot be connected to IMac How can I transfer the movie clips to IMovie?

  • Script Error on gotoNetPage

    Hi All, This is driving me crazy. I'm using a simple gotoNetPage script to link to users website. I've done this a million times before without any problem but now when I create the projector I get the "Script Error" prompt when I click on the link.

  • HOW I CAN USE LOGIC TO BURN AUDIO CD?

    I BEEN USING LOGIC FOR LONG TIME,I'M TRYING TO BURN THE MIX (AIFF) TO A REGULAR CD AUDIO BUT I CANT SO MANY PROBLEMS!!! IF SOMEONE CAN GIVE A HAND ON THIS! THANKS