Copying formulas among different  tables

I have a sheet with multiple tables in it.  When I copy a formula from table b to table c, any formulas that are in table b continue to reference table a instead of changing to reference table b.   All formula values are relative and I would assume that copying to table c from b would cause these formulas to reallocate their positions.
Any help on how to do this?

Hi Jason
If the reference to the table is adjusted on the iPad, it's a huge change in the application.
In Numbers4mac, the pasted formula continue to point to the table to which it pointed in the source table.
The formula =Table A :: B2 in table B
remains
=Table A :: B2 when we paste it in table C
The reference to a table or a sheet is always absolute.
Only references of cells in a table may be relative.
Given that,
If cell A3 of table B contains the formula = Table A :: A2,
if we copy the formula and paste it in cell A3 of table C the new formula will be
  = Table A :: A2
If we paste in cell B6 of table C, the new formula will be :
=Table A :: B5
It's a  logical behavior.
Yvan KOENIG (VALLAURIS, France) lundi 25 avril 2011 19:46:18

Similar Messages

  • How to dynamically copy cells from different tables?

    Hi,
    I've created an invoice and have 2 different tables. First is at top with Recipient information, the invoice number, their address, etc. Below that, I have a 2nd table laying out the items they are being charged for.
    I would like to copy the invoice number from the 1st table, to a cell in the 2nd table or a 3rd table I will create later on. I know how to copy cells in 1 table, ie. =D4. But not sure how to target a different table altogether.
    Also, is it possible to copy a cell from 1 table to a text box field?
    Thanks!!

    Yvan's point is true.  Please use the User Guides first; they're actually pretty readable.
    However, there's a very quick & easy way to try it out as well.  Go to the cell where you want your data to end up.  Type "=" (without quotes) to indicate you're going to input a formula of some kind.  Then without clicking inside any tables, use the list of sheets and tables to the left to get to your source table and click on the cell that contains the data you want to copy.  Presto!  Go back to your destination cell, and the formula is now filled in, following the scheme Yvan provided.
    Vince

  • Copying formula using different sheet but same cells

    How can I copy this incredibly long formula into different cells but change the sheet that it's referencing without typing in the sheet name in every instance it occurs (at least 28 times right now).
    Is this something I'm going to have to use an outside editor (ie text edit, pages) to find & replace?

    I don't know which is the "incredibly long formula" but I know that Jerrold described the required scheme in the late 48 hours !
    In one fixed cell of your table (A1 is a good choice), store the name of the sheet to address.
    Then, in the formulas, use the function INDIRECT to compute the cell's reference grabbing the sheet name from the cell A1 (with an absolute reference : $A$1)
    This way, when you will paste the formula in an other table, it will grab the sheet name from the cell A1 of this new table.
    Yvan KOENIG (VALLAURIS, France) mardi 24 mai 2011 22:18:11
    Please :
    Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Copying column from different table

    I want to copy the column of one table1 to table2 column with the condition to add the existing data not to replace
    Regards

    Sure ->
    satyaki>>
    satyaki>> CREATE TABLE emp_source
      2  AS
      3     SELECT * FROM emp;
    Table created.
    satyaki>>
    satyaki>> SELECT COUNT(*) FROM emp_source;
      COUNT(*)
            14
    satyaki>>
    satyaki>> CREATE TABLE emp_target
      2  AS
      3     SELECT * FROM emp WHERE ROWNUM <= 8;
    Table created.
    satyaki>>
    satyaki>> SELECT COUNT(*) FROM emp_target;
      COUNT(*)
             8
    satyaki>>
    satyaki>> BEGIN
      2     MERGE INTO emp_target et
      3        USING ( SELECT * FROM emp_source ) es
      4        ON    ( et.empno = es.empno )
      5     WHEN MATCHED THEN
      6     UPDATE
      7        SET et.ename  = es.ename
      8        ,   et.sal    = es.sal
      9        ,   et.mgr    = es.mgr
    10        ,   et.deptno = es.deptno
    11     WHEN NOT MATCHED THEN
    12     INSERT
    13        ( et.empno, et.ename, et.sal, et.mgr, et.deptno )
    14        VALUES
    15        ( es.empno, es.ename, es.sal, es.mgr, es.deptno );
    16 
    17     DBMS_OUTPUT.PUT_LINE(TO_CHAR(SQL%ROWCOUNT) || ' rows merged.');
    18  END;
    19  /
    14 rows merged.
    PL/SQL procedure successfully completed.Hope this will help.
    Regards.
    Satyaki De.

  • How to copy data of a table to the same but on a DIFFERENT MACHINE?

    Hello experts,
    I want to copy all entries of table TE422 to the same, but on a <u>different machine</u>. I created a transport request (workbench request using TABU) intending to copy the entire table data from QA into DEV environment.
    However, this is not working, because, in our installation, QA is on one server, and DEV on another! So, in a way, each machine seem to be transparent to the other and I cannot, or, do not know, how to specify the DEV environment as target.
    I was told that I have to do something at the OS level. That is to say, have some kind of SQL query which collects data from one and uploads it onto the other.
    Now my question is: Is there a SAP way to do this, that is to say, forget the SQL thingy and do it with some SAP transaction? If yes, how? If not, do you have a sample code which does this please?
    Your help is greatly appreciated.
    Goharjou

    Method 1:
    You can transport using ALE/IDOC, Write a simple outbound function moule in Source System and Develop a Inbound function module in target system.
    Method 2:
    Download the entire table contents into a flat file from source system by developing a simple report using WS_DOWNLOAD function module. Then Develop a report using WS_UPLOAD in target system and upload thd flat file.
    Thanks & Regards,
    Vijay

  • How do I copy content from an entire row into a different table?

    How do I copy content from an entire row of one table into a different table?  When I try to copy/paste the selected row into a row of the same size  and configuration in another table in the same document, the cells change width, the formatting and border thicknesses change, and the text gets squeezed.  When I was working with tables in Microsoft Word, there was no problem selecting text from a row in one table and placing it into a similar row and configuration in another table.

    Hi Christopher Morgan
    And welcome to apple discussions. With regard to your main question ....
    Q: Can this be done?
    A: It can but not easily (in that you may take a hit in quality). Apps like MpegStream Clip or DVDXDV may help:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.products.htm
    It converts it back to a QT file for use with iDvd (or iMovie).
    Hope this helps but if not just come on back.
    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software / products that may be mentioned in this topic. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information above at your own discretion.

  • Copying data between two tables with different structures

    I have two tables. second table has three extra fields at the end. How can I copy data from first table to the other? I tried the following but it does not seem to work:
    INSERT INTO second_table ((select * from first_table),'text','text',5)
    Please help. Thanks

    INSERT INTO second_table SELECT col1, col2, col3, .., 'text', 'text', 5 FROM first_table;
    Cheers!
    r@m@

  • Difference among different pricing procedure

    Hi,
    I want to know that, what is the difference among different pricing procedure,Like
    Standard,return,sample,scrap and credit memo.
    Please reply soon.
    Regards
    prabudh

    Hell tiwari,
    <b>**Please Do reward if it helps**</b>
    sales org + dist chan + div + document pric proc + cust pric proc --- > Pric Proc.
    we determine the pric procedure. So, just have a different document pricing procedure for sales order document type and invoice document type. You can have a different pricing procedure with this change.
    There are two simple reasons for making any Pricing Procedure in SAP  SD Modules.
    1) Business Reason. What are the pricing aspects or strategies you want to apply for the client requirement in order to sell their
    goods or render services, is all about the reason for various pricing procedures.
    Eg: Domestic sales pricing procedure,
    - Export Pricing Procedure,
    - A rebate pricing procedure or
    - A High Discount oriented pricing Procedures.
    - A repair pricing procedures.
    You have your own conditions intended to few transactions only. Put all this conditions as a set defining your own Procedures. It may even include special requirements and formulas applied for such Pricing Procedures.
    2) A special pricing procedures, in order to facilitate added functionalities of SAP pricing architecture, we must define new
    pricing procedure. SAP Standard programmes checks these special Indicators in-order to do some required functions.
    As a example 1, you need to have a Pricing procedure for condition supplement inorder to use the condition supplements. The condition supplement pricing procedure must be given in the condition type definitions (v/06) of the Pricing Condition where you need to supplement, without which SAP SD Condtion Supplements functionality doesnt work.
    As a example 2, you need to have a Pricing procedure for Inter Company Billing Conditions(IV01 & IV02) inorder to be active for Inter Company Billing specific transactions. Thus make sure that, the procedure wouldnot apply for non-Inter company transactions.
    Eg: KA0000 for Condition Supplement for KA00
    - PR0000 for Condition Supplement for PR00
    - ICAA01 for Inter-Company Billing
    In V/08 of defining a new Pricing Procedure, in main screen, you have a field called TSPP (Transaction Specific Pricing Procedure). This has to be ticked on for Intercompany Billings.
    The SAP help reads for this field as Under: Transaction-specific pricing procedure
    Pricing procedure transaction-specific indicator
    Before Release 4.0A, no special pricing procedures were used for intercompany billing and rebate credit memos, programs were just set accordingly to deal with these situations. As of Release 4.0A you are offered greater flexibility in the form of the option to define special pricing procedures for intercompany billing and rebate credit memos. For reasons of future compatability, you will still be able to use the old program specifications. For this reason, you must set this indicator if you want to create a special pricing procedure. This is to prevent the program settings being used.
    This indicator is also used as of Release 4.0A to redetermine the condition class and the statistical condition indicator when copying from a reference document.
    Example:
    You copy prices from a shipment document to the billing document. The prices should lead to a surcharge in the billing document. This is guaranteed by the redetermination of the condition class in the pricing procedure.
    Same case with Standard Pricing procedure or Inter Company Pricing Procedure.
    Regards
    AK

  • Copying formula sheets to new files

    Hello all! Thank you for your time and expertise This is the first major problem I have had with Numbers and it has me stumped.
    I have 12 separate files named Q1 - Q12. Each contains sheets named A - I.
    I am trying to create a new file named A which contains each A sheet from files Q1 to Q12. Briefly, I copy sheet A from file Q1 and paste it into file A and rename it Q1 (since it was originally named A). I then copy sheet A from file Q2 and paste it into file A and rename it Q2 (since it was also originally named A). This pattern continues until file A contains sheets Q1 - Q12. I then do the same with file B until it contains Q1 - Q12, etc. I have also created a sheet named Score which contains formulas that have sheets Q1 - Q12 referenced.
    The problem occurs when I try to copy the Score sheet from file A to file B. Since it has formulas referencing sheets Q1-Q12, I figured it would still work (since file B has sheets also named Q1-Q12), however all formulas paste as =#REF! (i.e. the formula is completely gone and replaced with =#REF!).
    This puzzles me as I used this strategy when creating scoring sheets in the original files Q1-Q12 containing sheets A-I. Copying and pasting the scoring sheet between those files worked just fine. The only thing I can think of is that renaming the sheets may have something to do with it. Has anyone else ever had this problem? Any ideas on how to fix it? Thank you so much for your time!

    I do mean "sheets" when I described sheets; I actually simplified the original post to keep it short(ish). For the sake of berevity, I didn't mention that each sheet actually had 9 different tables in it. I just figured that added an extra layer of unneeded complexity.
    Since the two files have the same layout (i.e. sheets named the same, same number of tables per sheet, etc.), I was confident that my sheet containing formulas (Score) referencing other sheets by name would be able to be copied to other files without problem. But I was wrong...
    Trying your idea, it does appear to work but is a bit more labor-intensive than I had hoped it would be. Thank you for the suggestion - I do appreciate it! This solution is definitely better than the alternative I had come up with, so I'll keep it in mind if no one else has experienced this problem and has a solution. Thank you

  • Numbers: Copy/Paste from multiple tables into 1 single Table?

    I would appreciate some guidance in creating a copy/paste script from multiple numbers tables into a different single table within the same numbers document.
    The columns in the source table are in different positions to the destination table.
    So for example, i would want to copy…
    Sheet 1, Table 1 Cell A3  copy to Sheet 2 Table Z Cell B2
    Sheet 1, Table 1 Cell B3  copy to Sheet 2 Table Z Cell C2
    Sheet 1, Table 1 Cell C3  copy to Sheet 2 Table Z Cell E2
    Sheet 1, Table 1 Cell D3  copy to Sheet 2 Table Z Cell F2
    Sheet 1, Table 1 Cell E3  copy to Sheet 2 Table Z Cell G2
    Sheet 1, Table 1 Cell G3  copy to Sheet 2 Table Z Cell I2
    Sheet 1, Table 1 Cell J3  copy to Sheet 2 Table Z Cell H2
    and repeat the copy/paste on subsequent rows of each table until there is an empty row in Sheet 1 Table 1 (or if this is difficult, say set the repeat to a max of 30 rows).
    The script would then need to move on to Sheet 1 Table 2, and do the same copying to Sheet 2 Table Z (from where the previous copy/paste finished in Table Z).
    Repeat process would finalise with Sheet 1 Table 6.
    The Paste part would need to be pasting values, as the cells in the source tables do contain some formulas.
    At the moment this is all done manually and does take some to to undertake.
    If anyone can help, i would be very grateful.
    Thanks,
    Colin

    Interceptor,
    are you trying to aggregate data from severl tables into a single table?  If so you whould be able to do this without a script.  The function indirect() will allow you to construct the proper formula, which you may fill over (in the same row) to the appropriate cells, then fill down.
    Here is a small example:
    There are three data tables ("Table 1", "Table 2", and "Table 3").  And a summary "Table Z"
    In table Z make the first row a header (as shown):
    Use column A to enter the Sheet name and colomn B to enter the table name.
    In row 1 (the header), enter the cells you want to get
    in cell C2 type (or copy and paste from here) the formula:
    =INDIRECT($A2&"::"&$B2&"::"&C$1)
    now select cell C2, copy now select cell C2 thru H2, paste
    now select the cells C2 thu H2, hover the corsor over the bottom edge of the selection, and drag the yellow cirlc down as needed to fill the formula down.
    Update the sheet and table names as needed for each row

  • How to add a cell from 2 different tables in 2 different Matrix(s) that reside on the same rdlc report?

    Hello Community
        Using Visual Studio 2008 I have created a Windows Forms Application in which I created
    Embedded Reports (rdlc).
        The embedded reports (rdlc) uses Matrix(s).
        Now on this one rdlc I have dragged 2 Matrix(s) onto the body.
        One of the Matrix datasource dataset name and table name is "DataSet1_Table1.
        A cells in the Matrix has a total column on the end as follows:
    =FormatNumber(Sum(Fields!fld1.Value)+Sum(Fields!fld2.Value)+Sum(Fields!fld3.Value)+Sum(Fields!fld4.Value)+Sum(Fields!fld5.Value),"0")
        The other Matrix datasource dataset name and table name is "DataSet2_Table2.
        The cell in this Matrix has a total column on the end as follows:
    =Sum(Fields!fld1.Value)+Sum(Fields!fld2.Value)+Sum(Fields!fld3.Value)+Sum(Fields!fld4.Value)+Sum(Fields!fld5.Value)
        As you can see each Matrix has a different table.
        I would like to add the total columns from each table in each Matrix but I haven't been
    able to do it successfully. If I have to drag another Matrix or a Textbox on the
    body to do it that is okay and/or add another/different formula to a cell onto the body that is
    okay too.
        So my question is how can I add the contents of the total in cell from each table in each matrix
    which will create the "grand total"?
        Thank you
        Shabeaut

    It is possible to reference SSRS elements directly using the ReportItems collection. If your total tablix cell is outside of yoour matrix groups, you can use this collection to accomplish what you want:
    =ReportItems!Matrix1Total.Value + ReportItems!Matrix2Total.Value
    where Matrix1Total and Matrix2Total is the name of the cell that contains your totals. Note that for this to work, the cell name must be unique. If the total cell is inside a group, it will be repeated once for each instance of the group and will not be
    unique.
    You may be able to do it using the Sum aggregate and specifying the dataset for the scope variable:
    =Sum(Fields!fld1.Value, "DataSet1")+Sum(Fields!fld2.Value,
    "DataSet1")+Sum(Fields!fld3.Value,
    "DataSet1")+Sum(Fields!fld4.Value,
    "DataSet1")+Sum(Fields!fld5.Value,
    "DataSet1")+Sum(Fields!fld1.Value,
    "DataSet2")+Sum(Fields!fld2.Value,
    "DataSet2")+Sum(Fields!fld3.Value,
    "DataSet2")+Sum(Fields!fld4.Value,
    "DataSet2")+Sum(Fields!fld5.Value,
    "DataSet2")
    This will work as long as you are not filtering the dataset in your Matrix properties. If you are, those
    filters will not apply to this expression and the numbers will not total correctly.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Cannot copy and paste a table

    The Thunderbird text editor does not consistently allow copying and paste a table from Word. More generally, its text editor is full of bugs and anomalies, such as arbitrarily setting text to a different font.

    As recently as December 30, 2013, I was able to copy LibreOffice calc data and paste it w/o problems into Tbird messages. Formatting, merged cells, all came across perfectly. I've been doing this for a long time (over a year at the least) without problems.
    Now when I copy and try pasting nothing at all happens ... as in literally nothing changes in the email.
    It's really frustrating when something this basic gets broken. If you know what version I'd have to revert to until it's fixed (and where to get the download), that would be great.
    Don't know if it helps having the following, but just in case:
    * Win 7 Pro 64-bit SP1
    * Tbird 24.3.0
    * LibreOffice 4.2.0.4

  • Sending different table id's into user table using a form

    hello, this is a lead up to another discussion that has not been resolved. i am getting pretty desperate now. i am sure it cant be that hard and really need help i am using MySQL php
    i have created a input form that when submitted sends the data to 3 different tables
    i have a tenant table. guarantor table and landlord table all in the database. i also have a property table that is already populated by another form on the website. on the input form though the property table is a dynamic drop down menu that when selected populates fields on the top of the input form
    i have the understanding that because the guarantorID, landlordID and propertyID are all inputting new data these will be input commands, however the property is already in the table so this will be an update command?
    what i need to do is when the form is submitted the guarantorID, landlordID and propertyID all are sent to columns in the tenant table. this is called join i believe?
    i have provided the unformatted code below that all works, but what i need to know how to do is the above. Link them all togeather and send all the id from the  guarantorID, landlordID and propertyID to the tenant table so they can all be reference when i create new pages
    can this be done?
    <?php require_once('Connections/nameprop.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 name_tenant (Title, `First Names`, Surname, DOB, DOBMonth, DOBYear, Nationality, Marital_Status, DayNumber, EvenNumber, MobNumber, Smoker, CurrentAdd, Status, PreviousAdd, Student, FinancialCCj, FinancialArrears, FinancialBankR, FinancialNone, BankName, AccountNum, SortCode, BankDuration, DebitCCCard, Electoral, `next of kin`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Title'], "text"),
                           GetSQLValueString($_POST['First_Names'], "text"),
                           GetSQLValueString($_POST['Surname'], "text"),
                           GetSQLValueString($_POST['DOB'], "text"),
                           GetSQLValueString($_POST['DOBMonth'], "text"),
                           GetSQLValueString($_POST['DOBYear'], "text"),
                           GetSQLValueString($_POST['Nationality'], "text"),
                           GetSQLValueString($_POST['Marital_Status'], "text"),
                           GetSQLValueString($_POST['DayNumber'], "double"),
                           GetSQLValueString($_POST['EvenNumber'], "double"),
                           GetSQLValueString($_POST['MobNumber'], "double"),
                           GetSQLValueString($_POST['Smoker'], "text"),
                           GetSQLValueString($_POST['CurrentAdd'], "text"),
                           GetSQLValueString($_POST['Status'], "text"),
                           GetSQLValueString($_POST['PreviousAdd'], "text"),
                           GetSQLValueString($_POST['Student'], "text"),
                           GetSQLValueString($_POST['FinancialCCj'], "text"),
                           GetSQLValueString($_POST['FinancialArrears'], "text"),
                           GetSQLValueString($_POST['FinancialBankR'], "text"),
                           GetSQLValueString($_POST['FinancialNone'], "text"),
                           GetSQLValueString($_POST['BankName'], "text"),
                           GetSQLValueString($_POST['AccountNum'], "double"),
                           GetSQLValueString($_POST['SortCode'], "double"),
                           GetSQLValueString($_POST['BankDuration'], "text"),
                           GetSQLValueString($_POST['DebitCCCard'], "text"),
                           GetSQLValueString($_POST['Electoral'], "text"),
                           GetSQLValueString($_POST['next_of_kin'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO name_guarantor (FullName, Title, DOBday, DOBMonth, DOBYear, Sex, MaritalStatus, DaytimeNumber, EveningNumber, MobileNumber, Email, CurrentAddress, PreviousAddress, BankName, AccountNum, SortCode, BankDuration, CCDebitCard, ElectoralRoll, Profession, AnnualWages, PayrollNum, EmpName, EmpAddress, EmpContName, EmpContNumber, EmpEmail, EmpFinaHist, EmpDate, EmpDisclaimer) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['FullName'], "text"),
                           GetSQLValueString($_POST['Title'], "text"),
                           GetSQLValueString($_POST['DOBday'], "double"),
                           GetSQLValueString($_POST['DOBMonth'], "text"),
                           GetSQLValueString($_POST['DOBYear'], "text"),
                           GetSQLValueString($_POST['Sex'], "text"),
                           GetSQLValueString($_POST['MaritalStatus'], "text"),
                           GetSQLValueString($_POST['DaytimeNumber'], "double"),
                           GetSQLValueString($_POST['EveningNumber'], "double"),
                           GetSQLValueString($_POST['MobileNumber'], "double"),
                           GetSQLValueString($_POST['Email'], "text"),
                           GetSQLValueString($_POST['CurrentAddress'], "text"),
                           GetSQLValueString($_POST['PreviousAddress'], "text"),
                           GetSQLValueString($_POST['BankName'], "text"),
                           GetSQLValueString($_POST['AccountNum'], "double"),
                           GetSQLValueString($_POST['SortCode'], "double"),
                           GetSQLValueString($_POST['BankDuration'], "text"),
                           GetSQLValueString($_POST['CCDebitCard'], "text"),
                           GetSQLValueString($_POST['ElectoralRoll'], "text"),
                           GetSQLValueString($_POST['Profession'], "text"),
                           GetSQLValueString($_POST['AnnualWages'], "text"),
                           GetSQLValueString($_POST['PayrollNum'], "double"),
                           GetSQLValueString($_POST['EmpName'], "text"),
                           GetSQLValueString($_POST['EmpAddress'], "text"),
                           GetSQLValueString($_POST['EmpContName'], "text"),
                           GetSQLValueString($_POST['EmpContNumber'], "double"),
                           GetSQLValueString($_POST['EmpEmail'], "text"),
                           GetSQLValueString($_POST['EmpFinaHist'], "text"),
                           GetSQLValueString($_POST['EmpDate'], "double"),
                           GetSQLValueString($_POST['EmpDisclaimer'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
      header(sprintf("Location: %s", $insertGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO name_landlord (name, `telephone number`, mobileNumber, email, address, dateday, datemonth, dateyear, terms) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['name'], "text"),
                           GetSQLValueString($_POST['telephone_number'], "text"),
                           GetSQLValueString($_POST['mobileNumber'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['address'], "text"),
                           GetSQLValueString($_POST['dateday'], "text"),
                           GetSQLValueString($_POST['datemonth'], "text"),
                           GetSQLValueString($_POST['dateyear'], "text"),
                           GetSQLValueString($_POST['terms'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
      $insertGoTo = "pay-online.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_nameprop, $nameprop);
    $query_rsApplyNow = "SELECT * FROM name_editprop";
    $rsApplyNow = mysql_query($query_rsApplyNow, $nameprop) or die(mysql_error());
    $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    $totalRows_rsApplyNow = mysql_num_rows($rsApplyNow);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script type="text/javascript">
    function loadFields(theValue) {
             var props = theValue.split("|");
              var prop_id = props[0];
              var propAdd = props[1] ;
              var propPrice = props[2];
                          var town = props[3]
                          var postcode = props[4]
              document.getElementById('prop_id').value=prop_id;
              document.getElementById('Add1').value=propAdd;
                          document.getElementById('town').value=town;
                          document.getElementById('postcode').value=postcode;
              document.getElementById('RentalPrice').value='£' + propPrice +'/ per month';
    </script>
    </head>
    <body>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <input type="hidden" name="MM_insert" value="form1" />
    <!-- Place the following code where you want to show the result of the property selection --><table width="100%" border="0" cellpadding="0">
      <tr>
        <td width="23%"><!-- the following code is just copied from your code -->
          <select name="Select Property" id="Select Property" onchange="loadFields(this.value)">
            <option value="select your property">select your property</option>
            <?php
    do {
    ?>
            <option value="<?php echo $row_rsApplyNow['prop_id'] . '|' . $row_rsApplyNow['prop_add1'] . '|' . $row_rsApplyNow['rental_price'] . '|' . $row_rsApplyNow['town'] . '|' . $row_rsApplyNow['postcode'];?>"><?php echo $row_rsApplyNow['prop_id'] . " , " . $row_rsApplyNow['prop_add1']; ?></option>
            <?php
    } while ($row_rsApplyNow = mysql_fetch_assoc($rsApplyNow));
      $rows = mysql_num_rows($rsApplyNow);
      if($rows > 0) {
          mysql_data_seek($rsApplyNow, 0);
                $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    ?>
          </select></td>
        <td width="77%"> </td>
      </tr>
      <tr>
        <td>Property ID:</td>
        <td><input type="text" name="prop_id" id="prop_id" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Address</td>
        <td><input type="text" name="Add1" id="Add1" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Town</td>
        <td><input type="text" name="town" id="town" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Postcode</td>
        <td><label for="postcode"></label>
          <input type="text" name="postcode" id="postcode" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Rent</td>
        <td><input type="text" name="RentalPrice" id="RentalPrice" readonly="readonly" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="0">
          <tr>
            <td>tenant</td>
            <td>gaurantor</td>
            <td>landlord</td>
          </tr>
          <tr>
            <td><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Title:</td>
                <td><input type="text" name="Title" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">First Names:</td>
                <td><input type="text" name="First_Names" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Surname:</td>
                <td><input type="text" name="Surname" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOB:</td>
                <td><input type="text" name="DOB" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBMonth:</td>
                <td><input type="text" name="DOBMonth" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBYear:</td>
                <td><input type="text" name="DOBYear" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Nationality:</td>
                <td><input type="text" name="Nationality" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Marital_Status:</td>
                <td><input type="text" name="Marital_Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DayNumber:</td>
                <td><input type="text" name="DayNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EvenNumber:</td>
                <td><input type="text" name="EvenNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobNumber:</td>
                <td><input type="text" name="MobNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Smoker:</td>
                <td><input type="text" name="Smoker" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CurrentAdd:</td>
                <td><input type="text" name="CurrentAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Status:</td>
                <td><input type="text" name="Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PreviousAdd:</td>
                <td><input type="text" name="PreviousAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Student:</td>
                <td><input type="text" name="Student" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialCCj:</td>
                <td><input type="text" name="FinancialCCj" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialArrears:</td>
                <td><input type="text" name="FinancialArrears" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialBankR:</td>
                <td><input type="text" name="FinancialBankR" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialNone:</td>
                <td><input type="text" name="FinancialNone" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankName:</td>
                <td><input type="text" name="BankName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AccountNum:</td>
                <td><input type="text" name="AccountNum" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">SortCode:</td>
                <td><input type="text" name="SortCode" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankDuration:</td>
                <td><input type="text" name="BankDuration" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DebitCCCard:</td>
                <td><input type="text" name="DebitCCCard" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Electoral:</td>
                <td><input type="text" name="Electoral" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Next of kin:</td>
                <td><input type="text" name="next_of_kin" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td> </td>
              </tr>
            </table></td>
            <td><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FullName:</td>
                <td><input type="text" name="FullName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Title:</td>
                <td><input type="text" name="Title2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBday:</td>
                <td><input type="text" name="DOBday" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBMonth:</td>
                <td><input type="text" name="DOBMonth2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBYear:</td>
                <td><input type="text" name="DOBYear2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Sex:</td>
                <td><input type="text" name="Sex" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MaritalStatus:</td>
                <td><input type="text" name="MaritalStatus" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DaytimeNumber:</td>
                <td><input type="text" name="DaytimeNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EveningNumber:</td>
                <td><input type="text" name="EveningNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobileNumber:</td>
                <td><input type="text" name="MobileNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Email:</td>
                <td><input type="text" name="Email" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CurrentAddress:</td>
                <td><input type="text" name="CurrentAddress" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PreviousAddress:</td>
                <td><input type="text" name="PreviousAddress" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankName:</td>
                <td><input type="text" name="BankName2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AccountNum:</td>
                <td><input type="text" name="AccountNum2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">SortCode:</td>
                <td><input type="text" name="SortCode2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankDuration:</td>
                <td><input type="text" name="BankDuration2" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CCDebitCard:</td>
                <td><input type="text" name="CCDebitCard" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">ElectoralRoll:</td>
                <td><input type="text" name="ElectoralRoll" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Profession:</td>
                <td><input type="text" name="Profession" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AnnualWages:</td>
                <td><input type="text" name="AnnualWages" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PayrollNum:</td>
                <td><input type="text" name="PayrollNum" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpName:</td>
                <td><input type="text" name="EmpName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpAddress:</td>
                <td><input type="text" name="EmpAddress" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpContName:</td>
                <td><input type="text" name="EmpContName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpContNumber:</td>
                <td><input type="text" name="EmpContNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpEmail:</td>
                <td><input type="text" name="EmpEmail" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpFinaHist:</td>
                <td><input type="text" name="EmpFinaHist" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpDate:</td>
                <td><input type="text" name="EmpDate" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EmpDisclaimer:</td>
                <td><input type="text" name="EmpDisclaimer" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td> </td>
              </tr>
            </table></td>
            <td><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Name:</td>
                <td><input type="text" name="name" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Telephone number:</td>
                <td><input type="text" name="telephone_number" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobileNumber:</td>
                <td><input type="text" name="mobileNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Email:</td>
                <td><input type="text" name="email" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Address:</td>
                <td><input type="text" name="address" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Dateday:</td>
                <td><input type="text" name="dateday" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Datemonth:</td>
                <td><input type="text" name="datemonth" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Dateyear:</td>
                <td><input type="text" name="dateyear" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Terms:</td>
                <td><input type="text" name="terms" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td><input type="submit" value="Insert record" /></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        </tr>
    </table>
    </form>
    <p> </p>
    <p> </p>
    </form>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($rsApplyNow);
    ?>

    basically it isnt coming up with an error code just not sending the information across and not redirecting to the next page
    here is the full code for the temp for i am working on.
    <?php require_once('Connections/nameprop.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 name_tenant (Title, `First Names`, Surname, DOB, DOBMonth, DOBYear, Nationality, Marital_Status, DayNumber, EvenNumber, MobNumber, Smoker, CurrentAdd, Status, PreviousAdd, Student, FinancialCCj, FinancialArrears, FinancialBankR, FinancialNone, BankName, AccountNum, SortCode, BankDuration, DebitCCCard, Electoral, `next of kin`, prop_id) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Title'], "text"),
                           GetSQLValueString($_POST['First_Names'], "text"),
                           GetSQLValueString($_POST['Surname'], "text"),
                           GetSQLValueString($_POST['DOB'], "text"),
                           GetSQLValueString($_POST['DOBMonth'], "text"),
                           GetSQLValueString($_POST['DOBYear'], "text"),
                           GetSQLValueString($_POST['Nationality'], "text"),
                           GetSQLValueString($_POST['Marital_Status'], "text"),
                           GetSQLValueString($_POST['DayNumber'], "double"),
                           GetSQLValueString($_POST['EvenNumber'], "double"),
                           GetSQLValueString($_POST['MobNumber'], "double"),
                           GetSQLValueString($_POST['Smoker'], "text"),
                           GetSQLValueString($_POST['CurrentAdd'], "text"),
                           GetSQLValueString($_POST['Status'], "text"),
                           GetSQLValueString($_POST['PreviousAdd'], "text"),
                           GetSQLValueString($_POST['Student'], "text"),
                           GetSQLValueString($_POST['FinancialCCj'], "text"),
                           GetSQLValueString($_POST['FinancialArrears'], "text"),
                           GetSQLValueString($_POST['FinancialBankR'], "text"),
                           GetSQLValueString($_POST['FinancialNone'], "text"),
                           GetSQLValueString($_POST['BankName'], "text"),
                           GetSQLValueString($_POST['AccountNum'], "double"),
                           GetSQLValueString($_POST['SortCode'], "double"),
                           GetSQLValueString($_POST['BankDuration'], "text"),
                           GetSQLValueString($_POST['DebitCCCard'], "text"),
                           GetSQLValueString($_POST['Electoral'], "text"),
                           GetSQLValueString($_POST['next_of_kin'], "text"),
                           GetSQLValueString($_POST['prop_id'], "text"));
      mysql_select_db($database_nameprop, $nameprop);
      $Result1 = mysql_query($insertSQL, $nameprop) or die(mysql_error());
    mysql_select_db($database_nameprop, $nameprop);
    $query_rsApplyNow = "SELECT * FROM name_editprop";
    $rsApplyNow = mysql_query($query_rsApplyNow, $nameprop) or die(mysql_error());
    $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    $totalRows_rsApplyNow = mysql_num_rows($rsApplyNow);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script type="text/javascript">
    function loadFields(theValue) {
             var props = theValue.split("|");
              var prop_id = props[0];
              var propAdd = props[1] ;
              var propPrice = props[2];
                          var town = props[3]
                          var postcode = props[4]
              document.getElementById('prop_id').value=prop_id;
              document.getElementById('Add1').value=propAdd;
                          document.getElementById('town').value=town;
                          document.getElementById('postcode').value=postcode;
              document.getElementById('RentalPrice').value='£' + propPrice +'/ per month';
    </script>
    </head>
    <body>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
    <!-- Place the following code where you want to show the result of the property selection --><table width="100%" border="0" cellpadding="0">
      <tr>
        <td width="23%"><!-- the following code is just copied from your code -->
          <select name="Select Property" id="Select Property" onchange="loadFields(this.value)">
            <option value="select your property">select your property</option>
            <?php
    do {
    ?>
            <option value="<?php echo $row_rsApplyNow['prop_id'] . '|' . $row_rsApplyNow['prop_add1'] . '|' . $row_rsApplyNow['rental_price'] . '|' . $row_rsApplyNow['town'] . '|' . $row_rsApplyNow['postcode'];?>"><?php echo $row_rsApplyNow['prop_id'] . " , " . $row_rsApplyNow['prop_add1']; ?></option>
            <?php
    } while ($row_rsApplyNow = mysql_fetch_assoc($rsApplyNow));
      $rows = mysql_num_rows($rsApplyNow);
      if($rows > 0) {
          mysql_data_seek($rsApplyNow, 0);
                $row_rsApplyNow = mysql_fetch_assoc($rsApplyNow);
    ?>
          </select></td>
        <td width="77%"> </td>
      </tr>
      <tr>
        <td>Property ID:</td>
        <td><input type="text" name="prop_id" id="prop_id" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Address</td>
        <td><input type="text" name="Add1" id="Add1" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Town</td>
        <td><input type="text" name="town" id="town" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Postcode</td>
        <td><label for="postcode"></label>
          <input type="text" name="postcode" id="postcode" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>Rent</td>
        <td><input type="text" name="RentalPrice" id="RentalPrice" readonly="readonly" /></td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td colspan="2"><table width="100%" border="0" cellpadding="0">
          <tr>
            <td width="29%"><table align="center">
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Title:</td>
                <td><input type="text" name="Title" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">First Names:</td>
                <td><input type="text" name="First_Names" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Surname:</td>
                <td><input type="text" name="Surname" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOB:</td>
                <td><input type="text" name="DOB" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBMonth:</td>
                <td><input type="text" name="DOBMonth" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DOBYear:</td>
                <td><input type="text" name="DOBYear" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Nationality:</td>
                <td><input type="text" name="Nationality" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Marital_Status:</td>
                <td><input type="text" name="Marital_Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DayNumber:</td>
                <td><input type="text" name="DayNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">EvenNumber:</td>
                <td><input type="text" name="EvenNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">MobNumber:</td>
                <td><input type="text" name="MobNumber" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Smoker:</td>
                <td><input type="text" name="Smoker" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">CurrentAdd:</td>
                <td><input type="text" name="CurrentAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Status:</td>
                <td><input type="text" name="Status" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">PreviousAdd:</td>
                <td><input type="text" name="PreviousAdd" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Student:</td>
                <td><input type="text" name="Student" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialCCj:</td>
                <td><input type="text" name="FinancialCCj" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialArrears:</td>
                <td><input type="text" name="FinancialArrears" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialBankR:</td>
                <td><input type="text" name="FinancialBankR" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">FinancialNone:</td>
                <td><input type="text" name="FinancialNone" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankName:</td>
                <td><input type="text" name="BankName" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">AccountNum:</td>
                <td><input type="text" name="AccountNum" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">SortCode:</td>
                <td><input type="text" name="SortCode" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">BankDuration:</td>
                <td><input type="text" name="BankDuration" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">DebitCCCard:</td>
                <td><input type="text" name="DebitCCCard" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Electoral:</td>
                <td><input type="text" name="Electoral" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right">Next of kin:</td>
                <td><input type="text" name="next_of_kin" value="" size="32" /></td>
              </tr>
              <tr valign="baseline">
              </tr>
              <tr valign="baseline">
                <td nowrap="nowrap" align="right"> </td>
                <td><input type="submit" value="Insert record" /></td>
              </tr>
            </table></td>
            <td width="68%"> </td>
            <td width="3%"> </td>
          </tr>
          <tr>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
        </table></td>
        </tr>
    </table>
    </form>
    <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($rsApplyNow);
    ?>

  • Same item used in different pages & for different tables

    Hi,
    i created some items, which work like a filter for my tables. I've got a lot of tables and the items have always the same function. They filter the same column but they're used for different tables! If i want to copy 1 item to another page, it's forbidden to use the same name again and that's the reason why I've got to customize every item for every page. I can copy the items but i have to change the name and thats why i have to update the item name in my SQL Query & the Tablename. All which is marked i have to change for every page(new table)!
    where upper(TABLENAME) like '%' || upper(:P158_FILTER_TABLENAME) || '%'
    AND upper(KEYVALUE) like '%' || upper(:P158_FILTER_KEYVALUE) || '%'
    AND DATE_INSERTED_PDW >= to_date(:P158_FILTER_DATE_INSERTED_PDW,'DD.MM.YYYY')
    P158_FILTER_TABLENAME:
    select distinct TABLENAME d, TABLENAME r
    from ERR_MAPL //it's the tablename I have to update it on every new page/table
    order by 1
    By a Process I created i have the same Problem it's the same Process, it's only used in differnet tables:
    BEGIN
    FOR ii IN 1 .. WWV_Flow.g_f01.COUNT -- the row selector
    LOOP
    UPDATE ERR_MAPL SET RELOAD_FLAG = 1
    WHERE ERR_ID = WWV_Flow.g_f02(WWV_Flow.g_f01(ii));
    END LOOP;
    END;
    THX Mat
    Message was edited by:
    user552848

    Hi Carl Rutter,
    You have to creat 2 special production order for this item. when issue the component make sure you issue the stock as per the cosumption becaue one have 10mmx10mm and the another item have 50x50 in this case you issue component by square inch wise. for example 10*10 = 100 squre inch.
    50*50 = 2500 square inch so the cost will be approtionate. you can Use multiple uom method to obtain this, other wise you have covert into stock then you issue the component. If you want traxk size wise ,you can use batch option for Finishe goods.
    Regards
    Sridharan

  • Multiple DB queries to different tables are botching my page

    Hello everybody,
    This one's going to be a bit difficult to explain clearly, but I will do my best.
    ADDED: After posting this thread, I have been browsing a lot of forums and tutorials. I see a lot of praise for JOIN but I see nothing of lookup tables, as David Powers was so kind to show us in PHP Solutions. I like the lookup table and it works for me rather well. I'm curious as to why it gets no play yet the JOIN command does? Further, many uses of JOIN that I am seeing appear, to me as a novice, to be solveable with WHERE and AND as opposed to JOIN. Gotta go now, my temples are splitting. Cheers!
    Okay, I have a TOC (table of contents) page I am working on as part of my online photo gallery. When you land on the preceding page for category selection, you have three choices. Picking one sends you to the TOC and with the associated query string value, the TOC page opens with the appropriate data.
    I have eleven separate queries that collect the information to stock the page. It looks beautiful when it works, and all of this works when there is only ONE gallery presented. It's when I get into presenting many per page that the queries collide. And yes, all of the tables I will mention next are part of the main DB.
    Please note, the 'names' of the tables shown are casual references, not the actual table names.
    From my 'galleries' table, I pull these records using the first three queries:
    1. Total number of galleries that match the value of the query string
    2. Retrieving a subset of data (in this case, x-amount of galleries to display per page)
    3. Gallery names and descriptions
    The above three queries work in harmony although I can not get the number of galleries that I want displayed on a page (if I want 3 to show up and there are 4 total, I get all 4). I do, however, get all of the appropriate data for the above and it looks fantastic.
    Next, when I add any or all of these queries, the aabove-mentioned info gets botched.
    From my 'galleries' and 'photos' tables, I pull these records:
    4. First representative thumbnail per gallery
    5. Second representative thumbnail per gallery (I use two, it makes the layout look nice. These are just to give you an idea of what you'll see if you select this gallery)
    6. The total number of photos in any photoset belonging to the category of galleries being displayed.
    From my 'model names', 'model lookup' and 'galleries' tables I pull these records:
    7. Model name/names associated with any specific gallery
    From my 'subject names', 'subject lookup, and 'galleries' tables I pull these records
    8. The subject, which is an initial set of 'categories' (used in the page header, title and some links).
    'category names', 'category lookup, and 'galleries' tables I pull these records:
    9. Category name (used in the page header and title)
    'photographer names,  'photographer lookup' and 'galleries' tables I pull these records:
    10. Photographer name associated with any specific gallery
    'mua (make-up artist) names,  'mua lookup' and 'galleries' tables I  pull these records:
    11. Make-up artist name associated with any specific gallery
    Now, if at this point, you are wanting to smack me over the head asking, 'Why are you doing it this way?' please note that I am extremely new to this and am open to suggestions that help to streamline things. Still, these eleven separate queries are all dealing with specific data types and unless there's some magical way to combine these all into one query (which to date my research has shown to not exist), I'm stuck with eleven queries.
    Out of frustration, I have tried adding $result->free_result(); after my queries, but they bomb the page when I go to test it locally. What is the proper time to use this command, and what is the proper syntax?
    Also, is it necessary to have more than one connection ($conn = dbConnect('query');) per page? Should I have one preceding every query? Would just one for all eleven queries do the job? I have to say, for the page that worked completely only displaying one gallery and all of this lovely data, one connection did the job. Is this bad practice?
    I apologize if this is the least bit confusing. My descriptive prowess is not at all what it usually is due to woeking on this project dya in and day out...me brain is fried. However, I am making progress, but now, this is my tallest hurdle yet.
    Thanks to any and all of you who can help!
    Sincerely,
    wordman

    >I'm curious as to why it gets no play yet the JOIN command does?
    First of all, JOIN is not a command. It's a statement. It's a way of combining table columns using the JOIN "keyword" within the FROM clause.
    >Further, many uses of JOIN that I am seeing appear, to me as a
    >novice,  to be solveable with WHERE and AND as opposed to JOIN.
    You can either use the JOIN keyword, or join tables within the WHERE clause. Both yield the same results. In the past, the only option was to use the WHERE clause, but things like outer join syntax varied among different DBMS's. Later versions of the ANSI standard introduced the JOIN keyword which standardized join syntax. But you can use whichever you are more comfortable with as most query optimizers will give the same results.
    >Still, these eleven separate queries are all dealing with specific data
    >types and unless there's some magical way to combine these all into
    >one  query (which to date my research has shown to not exist), I'm stuck
    >with  eleven queries.
    If you are populating a page with data, then I assume that the data on the page is related in some way. If the data is related, then there must be a way to combine the queries. It may not make sense to combine ALL of them, but I guarantee that running 11 queries for a page is the wrong approach. Looking at your examples, it seems like this is achieveable.
    I would really urge you to step back and learn some more SQL. JOINS are not an advanced topic. There is plenty of good material on the web for learning SQL, or you can find some great books if that's more your style.

Maybe you are looking for

  • Sending excel as email attachment

    Hi All, I am getting truncated with the header only upto 255 char length , and the field contents are ok more than 255 length it s taking. I am using it_attach  type standard table of solisti1 with header line. the report code is given below **& Repo

  • Activate extended classic scenario

    Hello, when I try to activate extended classic scenario to create contracts in SRM and then transfer them to R/3 I have these options: Extended local PO BE Purch Grps Resp. Back-end check reqd Back-end errors, show as error msg Which options may I ha

  • Drag and drop videos onto iphone

    Basically, I can't for some reason drag and drop videos onto my iphone 4. I manually manage my music and vids, songs I can drag and drop, but when it comes to videos, nothing happens. I have converted my videos to mp4 h264 format as required and stil

  • Analyzing image

    Hi everybody ! I want to write a software that analyzing images (return number of colors, gradient, etc ...) and store relatives informations in a database. Is this a way with an Java's API to do that easily ? Is it possible to have API's that analyz

  • Apple id in iPhone is wrong and different from my real Apple id

    My Apple ID in my iPhone is wrong and is different from my real Apple id