Dynamic table returns only a line

Hello world

I try to use a Recordset:

"SOME concerts. EventDate, concerts. Location, concerts. Notes

CONCERTS

WHERE the concerts. "EventDate > = CURRENT_DATE.

When I test the Recordset, I get 3 of the 5 records returned, which is exactly as it should.

However, when I try to create a dynamic table to display the results - if I choose to show all records, or the default of 10 at a time, it shows the first line results from the Recordset.

When I try to create a master-detail table and ask him to show one record at a time, it's there for that, but using the next/back navigation links, it takes me to other records, though one at a time.  That tells me that he doesn't know that there should be three records, but it only shows one.

What am I doing wrong with the dynamic table, here?

Thank you!

I suggest that you start the page completely from scratch, because it seems that you made the rookie mistake classic to remove a dynamic object in Design view without realizing that any other PHP code is connected with it. When you work with dynamic objects, keep an eye on what is listed in the server behaviors panel. To remove a server behavior, select the referencing in the Panel and click the button "-" to remove it properly.

In fact, you have two sets of records on the same page, that do the same thing. One is called to come, the other is called UpcomingShows. You get only a line showing in your table is because you use the recordset "to come". The Dreamweaver recordset code automatically retrieves the first record and then uses a do... while loop to create the region repeated in the table. What has happened is that your changes to the page have resulted in this line who appear before the repeat region:

mysql_free_result($upcoming);

This destroys the rest of the result of database before using it again. Therefore, only trace never appears.

Dreamweaver always puts mysql_free_result() after the closing tag. Thus, it seems that your changes caused Dreamweaver to lose track of all the relevant parts of the server behavior. If you move this line to the bottom of the page, your table should work. However, as I said before, I think that it is better to start from scratch.

One last thing: your SQL query contains the following WHERE clause:

WHERE gigs.EventDate >= CURRENT_DATE

It is an incorrect syntax for MySQL. It should be like this:

WHERE gigs.EventDate >= CURRENT_DATE()

CURRENT_DATE() is a MySQL function, not a constant.

If all goes well, a little less head banging.

Tags: Dreamweaver

Similar Questions

  • XMLTABLE returns only first line

    I now XML inserted in the column named as TEXT in the MASTERTB table.

    * <? XML version = "1.0" encoding = "utf-8"? > *.
    "< * Rowsets DateCreated =" "2010-11 - 30 T 11: 12:10" EndDate = "2010-06 - 05 T 16: 52:23 ' StartDate =" "2010-06 - 05 T 16: 52:23" Version = "Build 12.0.10 (18)" > * "
    * < Rowset > *.
    * < columns > *.
    * < Description = "Material number" column MaxRange = '1' MinRange = '0' Name = 'MATERIAL' = '1' = 'MATERIAL' SourceColumn SQLDataType / > *.
    * < column Description = "" MaxRange = '1' MinRange = '0' Name = 'TANK' = '1' = 'TANK' SourceColumn SQLDataType / > * "
    * < / columns > *.
    * < row >. *
    * < MATERIAL > 1000000144 < / EQUIPMENT > *.
    * < T1000 TANK > < / TANK > *.
    * < / row > *.
    * < row >. *
    * < MATERIAL > 2000000008 < / EQUIPMENT > *.
    * < T1000 TANK > < / TANK > *.
    * < / row > *.
    * < row >. *
    * < MATERIAL > 2000000009 < / EQUIPMENT > *.
    * < T1000 TANK > < / TANK > *.
    * < / row > *.
    * < row >. *
    * < MATERIAL > 2000000016 < / EQUIPMENT > *.
    * < T1000 TANK > < / TANK > *.
    * < / row > *.
    * < row >. *
    * < MATERIAL > 3000000036 < / EQUIPMENT > *.
    * < T1000 TANK > < / TANK > *.
    * < / row > *.
    * < / lines > *.
    * < / sets of lines > *.

    Now my requirement is to get all material values, so when I run the following question in Oracle,.

    SELECT RW. MATERIAL
    OF MASTERTB TM,.
    XMLTable ('/ / row ' PASSAGE TM.) TEXT
    COLUMNS "MATERIAL" CHAR (30) PATH 'MATERIAL') AS RW

    He returned only 1000000144 (RAW material). How can I read all the MATERIAL? In addition, how to read the XML all in text format if I want to check what has been inserted?

    Any help will be appreciated!

    Edited by: 967327 October 27, 2012 12:28

    Do you know how I can see that XML is stored in the TEXT column in the MASTERTB, because when I d select * from MASTERTB, it just gives me "-" in the column of TEXT. Somehow the statement select is not capable of converting XMLTYPE chain. So can you help me to retrieve the whole XML stored in the column of TEXT.

    You have access to another customer tool Oracle like SQL * Plus or SQL Developer?
    It would be useful to test your queries on one of those to the first rule of any problem in the database.

    Regarding your question on the extraction of all the XML content, the answer depends on the version of database, that you don't mention.

    Before 11 g, use the getClobVal (or getStringVal):

    SELECT tm.text.getClobVal()
    FROM MASTERTB tm
    

    The foregoing is deprecated in 11.2, so if you're on 11g:

    SELECT XMLSerialize(document tm.text)
    FROM MASTERTB tm
    

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb13gen.htm#ADXDB5033

  • table is expected to insert only one line

    Hi all

    my need is to create the table that allows to insert only one line.

    How can I make it?

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    "CORE 11.2.0.1.0 Production."

    AMT for Linux: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    Hello

    2621671 wrote:

    Hi all

    my need is to create the table that allows to insert only one line.

    How can I make it?

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    "CORE 11.2.0.1.0 Production."

    AMT for Linux: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    You can create a unique Index based on a function, like this:

    CREATE UNIQUE INDEX table_x_u ON table_x (NVL2 (col_1, 1, 1));

    You can use any column of any data type.  In other words, the function may return a NUMBER, if the column referenced in the function is a NUMBER.

    Regardless of whether the column is NULL or not; not more than 1 rank is authorized.

  • Object type returning still only 31 lines instead of more lines.

    Hi all

    My type of object is not more than 31 lines.

    When I run the query below, I got only 31 lines (DataSet). but actually 107 lines must return.

    SELECT CAST (MULTISET (SELECT ROWNUM, HANO TTRENEWAL WHERE))
    VN_STATUS = 'Y' AND PM_STATUS IS NULL) AS REC_RET_TABLE2) FROM DUAL;

    Used collection:_

    CREATE OR REPLACE TYPE 'REC_RET2' AS AN OBJECT
    (NUMBER (10) ID,)
    HASSIBA VARCHAR2 (20)
    )
    /

    CREATE OR REPLACE TYPE 'REC_RET_TABLE2' IN THE TABLE 'REC_RET2 ';
    /

    Thanks in advance.

    Works for me (11.1.0.7):

    SQL> CREATE OR REPLACE TYPE "REC_RET2" AS OBJECT
      2  ( ID NUMBER(10)
      3  )
      4  /
    
    Type created.
    
    SQL>
    SQL> CREATE OR REPLACE TYPE "REC_RET_TABLE2" AS TABLE OF "REC_RET2";
      2  /
    
    Type created.
    
    SQL>
    SQL>
    SQL> SELECT CAST (MULTISET (SELECT rownum from all_objects where rownum<200) AS REC_RET_TABLE2)
      2  FROM DUAL
      3  /
    More...
    
    CAST(MULTISET(SELECTROWNUMFROMALL_OBJECTSWHEREROWNUM<200)ASREC_RET_TABLE2)(ID)
    ----------------------------------------------------------------------------------------------------------------------------------
    REC_RET_TABLE2(REC_RET2(1), REC_RET2(2), REC_RET2(3), REC_RET2(4), REC_RET2(5), REC_RET2(6), REC_RET2(7), REC_RET2(8), REC_RET2(9)
    , REC_RET2(10), REC_RET2(11), REC_RET2(12), REC_RET2(13), REC_RET2(14), REC_RET2(15), REC_RET2(16), REC_RET2(17), REC_RET2(18), RE
    C_RET2(19), REC_RET2(20), REC_RET2(21), REC_RET2(22), REC_RET2(23), REC_RET2(24), REC_RET2(25), REC_RET2(26), REC_RET2(27), REC_RE
    T2(28), REC_RET2(29), REC_RET2(30), REC_RET2(31), REC_RET2(32), REC_RET2(33), REC_RET2(34), REC_RET2(35), REC_RET2(36), REC_RET2(3
    7), REC_RET2(38), REC_RET2(39), REC_RET2(40), REC_RET2(41), REC_RET2(42), REC_RET2(43), REC_RET2(44), REC_RET2(45), REC_RET2(46),
    REC_RET2(47), REC_RET2(48), REC_RET2(49), REC_RET2(50), REC_RET2(51), REC_RET2(52), REC_RET2(53), REC_RET2(54), REC_RET2(55), REC_
    RET2(56), REC_RET2(57), REC_RET2(58), REC_RET2(59), REC_RET2(60), REC_RET2(61), REC_RET2(62), REC_RET2(63), REC_RET2(64), REC_RET2
    (65), REC_RET2(66), REC_RET2(67), REC_RET2(68), REC_RET2(69), REC_RET2(70), REC_RET2(71), REC_RET2(72), REC_RET2(73), REC_RET2(74)
    , REC_RET2(75), REC_RET2(76), REC_RET2(77), REC_RET2(78), REC_RET2(79), REC_RET2(80), REC_RET2(81), REC_RET2(82), REC_RET2(83), RE
    C_RET2(84), REC_RET2(85), REC_RET2(86), REC_RET2(87), REC_RET2(88), REC_RET2(89), REC_RET2(90), REC_RET2(91), REC_RET2(92), REC_RE
    T2(93), REC_RET2(94), REC_RET2(95), REC_RET2(96), REC_RET2(97), REC_RET2(98), REC_RET2(99), REC_RET2(100), REC_RET2(101), REC_RET2
    (102), REC_RET2(103), REC_RET2(104), REC_RET2(105), REC_RET2(106), REC_RET2(107), REC_RET2(108), REC_RET2(109), REC_RET2(110), REC
    _RET2(111), REC_RET2(112), REC_RET2(113), REC_RET2(114), REC_RET2(115), REC_RET2(116), REC_RET2(117), REC_RET2(118), REC_RET2(119)
    , REC_RET2(120), REC_RET2(121), REC_RET2(122), REC_RET2(123), REC_RET2(124), REC_RET2(125), REC_RET2(126), REC_RET2(127), REC_RET2
    (128), REC_RET2(129), REC_RET2(130), REC_RET2(131), REC_RET2(132), REC_RET2(133), REC_RET2(134), REC_RET2(135), REC_RET2(136), REC
    _RET2(137), REC_RET2(138), REC_RET2(139), REC_RET2(140), REC_RET2(141), REC_RET2(142), REC_RET2(143), REC_RET2(144), REC_RET2(145)
    , REC_RET2(146), REC_RET2(147), REC_RET2(148), REC_RET2(149), REC_RET2(150), REC_RET2(151), REC_RET2(152), REC_RET2(153), REC_RET2
    (154), REC_RET2(155), REC_RET2(156), REC_RET2(157), REC_RET2(158), REC_RET2(159), REC_RET2(160), REC_RET2(161), REC_RET2(162), REC
    _RET2(163), REC_RET2(164), REC_RET2(165), REC_RET2(166), REC_RET2(167), REC_RET2(168), REC_RET2(169), REC_RET2(170), REC_RET2(171)
    , REC_RET2(172), REC_RET2(173), REC_RET2(174), REC_RET2(175), REC_RET2(176), REC_RET2(177), REC_RET2(178), REC_RET2(179), REC_RET2
    (180), REC_RET2(181), REC_RET2(182), REC_RET2(183), REC_RET2(184), REC_RET2(185), REC_RET2(186), REC_RET2(187), REC_RET2(188), REC
    _RET2(189), REC_RET2(190), REC_RET2(191), REC_RET2(192), REC_RET2(193), REC_RET2(194), REC_RET2(195), REC_RET2(196), REC_RET2(197)
    , REC_RET2(198), REC_RET2(199))
    
    1 row selected.
    
    SQL>
    
  • Discover with function as datasource returns only the first line.

    Hello

    I created the following function to get the status of all the rules for the instances of SQL Server.

    The data type of the function output has been configured as 'List of SQLInstanceRuleStatuss', where SQLInstanceRuleStatuss is the custom type, I created in the same module.

    When I tested the function, it returns all instances of SQL Server with two other columns.

    But when I try to create a view with the Rows property that is configured to use the feature, it returns only the first line:

    sqlRules = new ArrayList();

    queryStatement = server. QueryService.createStatement ("(DBSS_Instance)");

    queryResult = server. QueryService.executeStatement (queryStatement);

    for (it in queryResult.topologyObjects)

    {

    sqlRule is functionHelper.createDataObject ("westjet_mark_dev:SQLInstanceRuleStatus", "none", "test");.

    sqlRule.instance = it;

    sqlRule.ruleName = 'test rule name';

    sqlRule.status = false;

    sqlRules.add (sqlRule);

    }

    Return sqlRules;

    Did I miss something?

    Thank you

    Mark

    Mark,

    I think I forgot something

    sqlRule=functionHelper.createDataObject("westjet_mark_dev:SQLInstanceRuleStatus","none","test");

    you create the test id

    change your line of

    sqlRule=functionHelper.createDataObject("westjet_mark_dev:SQLInstanceRuleStatus","none",null);

    This should allow the creation of a single object in your loop for

  • Replace the carriage return or new line with a table space

    Hello

    I want to replace the carriage return or new line with space in my column of the database.

    To do this, I'm using this query:

    Select replace (replace (Comments, chr (10),' '), Chr (13),' ') OF Comments_Master

    Comments_Master is the name of the table and comments is column that contains carriage return or new line.

    But this query works as expected.

    Once I run this query and run the query again "select * FROM Comments_Master", transport return and new line still exist.

    Please let me know what is wrong with this query?

    You write that data back you? This example shows that your sql should work. I thinnk the query that you just described is the updated one below.

    create table blah (text varchar2 (100));

    insert into bla values (' it's multi)

    line of text ");"

    Select * from blah.

    Select replace (replace (text, chr (10),' '), Chr (13),' ') of bla.

    Update text bla = replace (replace (text, chr (10),' '), Chr (13),' ');

    Select * from blah.

  • I have a problem with a CS6 dynamic table creation

    I have 2 tables, 1 of them is caled 'user', the other a "cars" they are inked with a foreign key in the table of cars there is a column called UserID and takes the value of "user", so my question is I tried to make it dynamic table when the user is connected to display its cars that have his Userid on them only unfortunetly when I do this I get a blank table with nothing in it anyone can help me solve this problem. This is the code I use:

    <? php require_once('Connections/MyConnection.php');? >

    <? PHP

    initialize the session

    If (! isset {})

    session_start();

    }

    * Log out the current user. **

    $logoutAction = $_SERVER ['PHP_SELF']. » ? doLogout = true;

    If ((isset & & ($_SERVER ['QUERY_STRING']! = "")) {})

    $logoutAction. = '& '. htmlentities($_SERVER['QUERY_STRING']);

    }

    {If ((isset($_GET['doLogout'])) & & ($ {_GET ['doLogout'] == "true"))}

    to completely disconnect a visitor, you must delete the session varialbles

    $_SESSION ['MM_Username'] = NULL;

    $_SESSION ['MM_UserGroup'] = NULL;

    $_SESSION ['PrevUrl'] = NULL;

    unset($_SESSION['MM_Username']);

    unset($_SESSION['MM_UserGroup']);

    unset($_SESSION['PrevUrl']);

    $logoutGoTo = "/ cars/LogOut.php";

    If {($logoutGoTo)

    Header ("Location: $logoutGoTo");

    "exit";

    }

    }

    ? >

    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = '1', 2;

    $MM_donotCheckaccess = "false";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.

    So, we know that a user is NOT logged if this Session variable is empty.

    If (! empty ($UserName)) {}

    In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.

    Analyze the channels in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    If (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

    }

    Or, you can restrict access to only certain users based on their user name.

    If (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

    }

    If (($strUsers == "") & & false) {}

    $isValid = true;

    }

    }

    return $isValid;

    }

    $MM_restrictGoTo = "/ cars/Home.php";

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset($_SERVER['QUERY_STRING']) & & strlen($_SERVER['QUERY_STRING']) > 0)

    $MM_referrer. = « ? ». $_SERVER ['QUERY_STRING'];

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    }

    ? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via 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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via 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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $maxRows_cars = 10;

    $pageNum_cars = 0;

    If (isset($_GET['pageNum_cars'])) {}

    $pageNum_cars = $_GET ['pageNum_cars'];

    }

    $startRow_cars = $pageNum_cars * $maxRows_cars;

    $colname_cars = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_cars = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_cars = sprintf ("" SELECT * FROM cars WHERE UserID = %s ", GetSQLValueString ($colname_cars,"int")");

    $query_limit_cars = sprintf ("%s LIMIT %d, %d", $query_cars, $startRow_cars, $maxRows_cars);

    $cars = mysql_query ($query_limit_cars, $MyConnection) or die (mysql_error ());

    $row_cars = mysql_fetch_assoc ($cars);

    If (isset($_GET['totalRows_cars'])) {}

    $totalRows_cars = $_GET ['totalRows_cars'];

    } else {}

    $all_cars = mysql_query ($query_cars);

    $totalRows_cars = mysql_num_rows ($all_cars);

    }

    $totalPages_cars = ceil($totalRows_cars/$maxRows_cars)-1;

    $colname_user = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_user = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_user = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_user, "text") ");

    $user = mysql_query ($query_user, $MyConnection) or die (mysql_error ());

    $row_user = mysql_fetch_assoc ($user);

    $totalRows_user = mysql_num_rows ($user);

    $colname_user = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_user = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_user = sprintf ("SELECT FirstName, LastName FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_user, "text") ");

    $user = mysql_query ($query_user, $MyConnection) or die (mysql_error ());

    $row_user = mysql_fetch_assoc ($user);

    $colname_User = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_User = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_User = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_User, "text") ");

    $User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());

    $row_User = mysql_fetch_assoc ($User);

    $colname_User = "-1";

    If (isset($_GET['MM_Username'])) {}

    $colname_User = $_GET ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_User = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_User, "text") ");

    $User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());

    $row_User = mysql_fetch_assoc ($User);

    $colname_User = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_User = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_User = sprintf ("SELECT * FROM 'user' WHERE Email = %s", GetSQLValueString ($colname_User, "text") ");

    $User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());

    $row_User = mysql_fetch_assoc ($User);

    $colname_User = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_User = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_User = sprintf ("SELECT * FROM 'user' WHERE UserID = %s", GetSQLValueString ($colname_User, "int") ");

    $User = mysql_query ($query_User, $MyConnection) or die (mysql_error ());

    $row_User = mysql_fetch_assoc ($User);

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < link href = "CSS/Layout.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "CSS/Menu.css" rel = "stylesheet" type = "text/css" / > "

    "< link href="/Cars/CSS/VerticalMenu.css "rel ="stylesheet"type =" text/css"/ >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > Untitled Document < /title >

    < / head >

    < body >

    < div id = 'Holder' >

    < div id = "Header" >

    < div id = "HeaderContentRight" >

    < table width = "0" border = "0" align = "right" >

    < b >

    < td > logged in as: <? PHP echo $row_user ["FirstName"];? > <? PHP echo $row_user ['name'];? > < table >

    < td > < a href = "<?" PHP echo $logoutAction? > "> sign out < /a > < table >"

    < /tr >

    < /table >

    < / div >

    < / div >

    < div id = "NavBar" >

    < nav >

    < ul >

    "< li > < a href="/Cars/HomeAccount.php "> home < /a > < /li >

    < /ul >

    < / nav >

    < / div >

    < div id = "Content" >

    < div id = "PageHeading" >

    Welcome < h1 >, <? PHP echo $row_user ["FirstName"];? > <? PHP echo $row_user ['name'];? >! < / h1 >

    < / div >

    < div id = "ContentLeft" >

    Control Panel < h6 > < / h6 >

    < p > < / p >

    < ul id = "MyMainMenu" >

    < li > < a href="/Cars/Account.php" > account < /a > < /li > ".

    < li > < a href="/Cars/UpdateAccount.php" > update account < /a > < /li > ".

    < li > < a href="/Cars/CarManagment.php" > car management < /a > < /li > ".

    < /ul >

    < / div >

    < div id = "ContentRight" >

    < table border = "1" align = "center" >

    < b >

    CarBrand < td > < table >

    CarModel < td > < table >

    YearOfProduction < td > < table >

    < /tr >

    <? PHP {? >}

    < b >

    < td > <? PHP echo $row_cars ["CarBrand'];? > < table >

    < td > <? PHP echo $row_cars ["CarModel'];? > < table >

    < td > <? PHP echo $row_cars ["YearOfProduction"];? > < table >

    < /tr >

    <? PHP} while ($row_cars = mysql_fetch_assoc ($cars));? >

    < /table >

    < / div >

    < / div >

    < div id = "Footer" > < / div >

    < / div >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($CARS);

    mysql_free_result ($User);

    ? >

    Thank you for your time!

    Nowhere on this page I see that you have found the "UserID" variable that is used to query the database of cars everywhere.

    You must get that table "user" when a successful connection occurred.

    Go to your login page and find the code which queries the database (it will look something like the below, your request will be slightly different)

    $LoginRS__query = sprintf ("SELECT username, password loginUsers WHERE username = %s AND password is %s",

    MAKE SURE YOU add to THE QUERY "UserID" (see below.) This is the column of your 'user' table and the foreign key record unique identifier in your table 'cars')

    $LoginRS__query = sprintf ("SELECT UserID, username, password AND password loginUsers WHERE username = %s is %s",

    Then, find the lines of code below:

    $LoginRS = mysql_query ($LoginRS__query, $MyConnection) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    Include these two lines of code directly after the above code:

    $row = mysql_fetch_assoc ($LoginRS);

    $UserID = $row ['UserID']

    Can find these lines of code:

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    Add this line of code directly after the above code:

    $_SESSION ['username'] = $UserID;

    Now, go to the login page of success (whatever you call that)

    Find the code at the top of the page below:

    If (! isset {})

    session_start();

    }

    Add the line of code below:

    If (! isset {})

    session_start();

    $userID = $_SESSION ['username'];

    }

    Look for the query:

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_cars = sprintf ("" SELECT * FROM cars WHERE UserID = %s ", GetSQLValueString ($colname_cars,"int")");

    $query_limit_cars = sprintf ("%s LIMIT %d, %d", $query_cars, $startRow_cars, $maxRows_cars);

    $cars = mysql_query ($query_limit_cars, $MyConnection) or die (mysql_error ());

    $row_cars = mysql_fetch_assoc ($cars);

    and replace with:

    @mysql_select_db ($database_MyConnection, $MyConnection);

    $query_query_cars = "SELECT * FROM cars WHERE userID ="$userID "";

    $query_cars = mysql_query ($query_query_cars, $MyConnection) or die (mysql_error ());

    $row_query_cars = mysql_fetch_assoc ($query_cars);

    $totalRows_query_cars = mysql_num_rows ($query_cars);

    Now, you can pass the details of the car associated with the user ID in the 'user' table and a foreign key in the table "cars."

    You probably want to use a / while loop to get all the information from the database. With a DW repeat region behavior.

  • AF:dynamic table Concept

    Scenario is,

    Supply.png

    The Image above is of form 6i, which I am to convert ADF file.

    You can see above, there are two attributes of no and no contract Plan, both are LOVs. they are cascade LOVs. Plan of LOV values depends on the value of selected LOV contract. A single contract can have multiple Plans. and a plan can have many more details.

    When the user select A contract North, then Plan No. After this detail table fills with data of this Plan. as I said a contract can have a lot of Plans, when the user returned to Plan LOV and select other lines of this plan a plan then detail fills too, but this does not remove the previous lines of populated areas. This means selecting a plan add up rows in detail.

    How can I accomplish this? Is dynamic table suitable?

    Ashish Awasthi

    J Dev Version: 11.1.2.4

    Are saying you that you need to recover a table based on the selection of data Plan and have the data be inserted into another table when recording?

    If Yes, you can view the lines feature the EO according to VO. Once you select a Plan, run the readonly VO and insert lines in the EO based VO dynamically.

  • Why left outer join with a table gives me more lines?

    Hi gurus,

    I can see "view_a" and a table 'table_a '.

    view_a a county of 100 lines. Now, when I left outer join that discovers with a 'table_a', I expect all 100 lines.

    However, I'm more than 100 lines. Is it still possible?

    Also even to analyze these situations, how can I move forward?

    Because it is very high volumn of sight and takes longer to run.

    Select count (*) view_a, view_b

    where view_a.col1 = view_b.col1 (+)

    and view_a.col2 = view_b.col2 (+);

    Thank you

    I can see "view_a" and a table 'table_a '.

    view_a a county of 100 lines. Now, when I left outer join that discovers with a 'table_a', I expect all 100 lines.

    However, I'm more than 100 lines. Is it still possible?

    Also even to analyze these situations, how can I move forward?

    Because it is very high volumn of sight and takes longer to run.

    Select count (*) view_a, view_b

    where view_a.col1 = view_b.col1 (+)

    and view_a.col2 = view_b.col2 (+);

    Which is not necessarily related to the use of an outer join.

    Just join of two tables in general will give you more rows of one table has.

    Scott DEPT table contains ONE row for deptno = 10

    The EMP table has THREE rows of deptno = 10

    The number of rows you plan if you join two tables using an equi-join?

    Three - what is MORE lines the DEPT table has for deptno = 10

    Select * from Department where deptno = 10

    DEPTNO, DNAME, LOC
    10, ACCOUNTING, NEW YORK

    Select * from emp where deptno = 10

    MGR, EMPLOYMENT ENAME, EMPNO, HIREDATE, SAL, COMM, DEPTNO
    7782, CLARK, MANAGER, 7839, 6/9/1981,2450, 10
    7839, KING, PRESIDENT, 17 NOVEMBER 00, 10
    7934, MILLER, CLERK, 7782, 23 JANUARY 00: 10

    Select dept.*, emp.*
    Department, emp
    where dept.deptno = 10
    and dept.deptno = emp.deptno

    DEPTNO, DNAME, LOC, EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO_1
    10, ACCOUNTING, NEW YORK, 7782, CLARK, MANAGER, 7839, 6/9/1981,2450, 10
    10, ACCOUNTING, NEW YORK, 7839, KING, PRESIDENT, 17 NOVEMBER 00, 10
    10, ACCOUNTING, NEW YORK, 7934, MILLER, CLERK, 7782, 23 JANUARY 00: 10

    So if these are the lines ONLY in the table EMP and DEPT the query would give you THREE lines despite the DEPT table only ONE line.

    No do you expect? You get ALL the child rows that belong to the parent company. Otherwise, how could it possibly work?

    The OUTER join includes lines where the parent row exists but there is NO child line as others have shown.

    Outer joins

    Outer join extends the result of a simple join. Outer join returns all rows that satisfy the join condition and also returns some or all rows in a table for which no line of the other meet the join condition.

    Get more lines to exist in one of the paintings is a basic necessity. It usually has NOTHING to with the question of whether you have an outside to join or not.

    See the section on the JOINTS in the Oracle documentation

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/queries006.htm

  • Link from Oracle to MySQL database select only one line

    Hello

    I created a connection to the batabase Oracle 11.2 to a MySQL database via a database link. The following statement shows that 35 lines are in the mySQL table:

    SQL > select count (*) from 'main_pages"@MOREWEB;

    COUNT (*)

    ----------

    35

    But a normal select statement only return 1 row.

    SQL > select 'subject' of 'main_pages"@MOREWEB;

    Object

    ------------------------------------------------

    Übersicht: references

    I use the mysql-connector-odbc driver - 3.51.30 - winx64. One is the newer version be installed because on Windows Server 2008 R2, I get an error with a missing dll file. The DataDirect ODBC driver is not possible, because we like to use the MySQL-database free one only support for DataDirect enterprise edition.

    I have also tried to limit the HS_OPEN_CURSORS or do not limit the HS_FDS_FETCH_ROWS, but there is no difference in the result. I always get only one line.

    HS Init.ora

    # This is an example of initialization file of the agent that contains the HS settings

    # necessary for the database to ODBC gateway

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = moreweb

    HS_FDS_TRACE_LEVEL = WE

    HS_FDS_FETCH_ROWS = 1

    #

    # Required for the non-Oracle system environment variables

    #

    #set < varenv > = < value >

    HS trace file

    Oracle Corporation - MITTWOCH 5 November 2014 13:56:22.066

    Heterogeneous Agent release

    11.2.0.1.0

    Oracle Corporation - MITTWOCH 5 November 2014 13:56:22.066

    Version 11.2.0.1.0

    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'ON '.

    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.

    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '1 '.

    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".

    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "

    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.

    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.

    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.

    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.

    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.

    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.

    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".

    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.

    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.

    HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.

    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.

    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.

    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.

    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.

    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.

    using mpgw as the default value to "HS_FDS_DEFAULT_OWNER".

    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.

    SQL text of hgopars, id = 1, len = 36...

    45 00: 53454 C 43542043 4F554E54 282 HAS 2920 [COUNT (*) SELECT]

    10: 46524F4D 20606D 61 696E5F70 61676573 [FROM ' main_pages]

    20: 60204131 [' A1]

    Delayed open until the first fetch.

    Deferred execution open.

    SQL text of hgopars, id = 1, len = 40...

    45 00: 53454 C 43542041 312E6073 75626 has 65 [SELECT A1.' subje(1)]

    10: 63746020 46524F4D 20606D 61 696E5F70 [ct' FROM ' main_p]

    20: 61676573 60204131 [ages A1]

    Delayed open until the first fetch.

    Deferred execution open.

    Please can someone help me.

    Thank you.

    Bianca

    Bianca,

    Everything I've read on this point to a need to install/reinstall the Microsoft Visual C++ Redistributable Package for windows OS 2008.

    You will need to download the appropriate version for your microsoft form system.  There is a lot of information on this topic.  Just

    search on the web, and it should help you in the right direction.

    Thank you!
    Matt

  • Master table shows only 5 rows

    Hello

    I use Oracle JDeveloper 11 g Release 2 (11.1.2.3.0).

    I have a picture of master ADF and a detailed in my application form but the main Table shows only 5 rows, I don't understand what is happening, in my database I have more than 5 lines (exactly 7) but table doesn't show him everything.

    Can someone help me with this?

    Thanks in advance!

    Check the size of the extraction of the iterator (pagedef) connections and check that your relay of query returns more than 5 lines.

    What is the code to display the master detail do you use?

    Timo

  • Return only the columns with different values.

    Hi all

    I am trying to solve a seemingly trivial problem but can't seem to get any clear answer anywhere in any forum. Consider a single table with 5 columns and only two lines:
    row_id           first_name         last_name        age            gender
    1                    John                  doe               27             M
    1                    Jane                  doe               27              F  
    Assume that there is no primary key or any other constraint. Also assume that there are only and only two lines of this table. So I need basically a query that, overall above lines, would return first name and sex, because they are only different columns in two lines, as well as their values. Even if I can get sort of column names that are different and that would be enough that I can easily access the values later. It is also important to remember that I may not know the names of the columns in the columns, so basically, somehow, I use user_tab_columns in the process.

    Any help appreciated.

    Published by: 894302 on May 1, 2013 10:35

    Hello

    894302 wrote:
    The exact release could be just a varchar variable that lists all the columns that have different values with each column name separated by commas. We'll call the query you want as a QUERY. So, if I do something like

    Select the REQUEST of double; Output should be: 'first_name, equality of the sexes. Is this possible?

    In this case:

    SELECT     RTRIM ( DECODE (a.row_id,     b.row_id,     NULL, 'row_id,')     ||
                    DECODE (a.first_name, b.first_name, NULL, 'first_name,') ||
              DECODE (a.last_name,  b.last_name,  NULL, 'last_name,')  ||
              DECODE (a.age,        b.age,          NULL, 'age,')      ||
              DECODE (a.gender,     b.gender,     NULL, 'gender,')
               , ','
               )          AS different_columns
    FROM     rhit_table_x  a
    JOIN     rhit_table_x  b  ON  a.ROWID     < b.ROWID
    ;
    

    Output:

    DIFFERENT_COLUMNS
    ---------------------------------------
    first_name,gender
    

    This assumes that you have really a table, then you can use ROWID to distinguish the lines, since there is no primary key.
    If this isn't the case, you first assign ROW_NUMBER in a subquery.

  • How to identify the last instance of a dynamic table row

    Hi all

    I'm trying to figure out how to create an action for my form in Livecycle Designer ES2, which will affect the last instance of a dynamic table row. I have a table with a repeatable row where the user will enter information about a part purchased and I have buttons that allow the user to add and remove the lines. I need to create a line extra addition button which will add a new instance of the repeatable table line (this is not a problem) and disable and change the background color of the first cell in the row added. The problem I have is how to have an action that affects the last instance of a line.

    If anyone knows how to do this in Javascript, I would appreciate some advice/help.

    Hello

    I think that it is beyond providing an action. You will have a need to write JavaScript directly.  When you call the addInstance method it returns the new line, if you can do something like;

    var line = Table1._Row1.addInstance ();

    line. TextField1.border.fill.color.value = "255,0,0";

    line. TextField1.access = 'protected ';

    To find the last line and do the same thing, you can do something like;

    var line = Table1.resolveNode ("Row1 [" + (Table1._Row1.count - 1) + "" "]" ");

    line. TextField1.border.fill.color.value = "255,0,0";

    line. TextField1.access = 'protected ';

    Concerning

    Bruce

  • Number of item in the dynamic Table Quirk

    I am a new user of LC, ramping up the speed on this package, thanks to all for the useful information here and elsewhere.

    By using the tips and info here,

    http://www.assuredynamics.com/wp-content/uploads/2010/11/assure-Dynamics-building-dynamic-tables.PDF

    I added a dynamic array of a form, I've worked on that.  Mostly, everything works, except the legend on the number of line/article.  So I yanked on the subform with the table top to create a single copy of the form to post here.  Get this... it works on the simple form.  So there is something to do in my not so simple form which prevents my line/workstation number.

    I hope if I post here the two forms, can someone help me solve this thing.

    It's the form that works:

    http://inthequeue.com/adobeLC/Template_excerpt.PDF

    It's the shape that doesn't work:

    http://inthequeue.com/adobeLC/Template_std.PDF

    Thanks in advance

    John Q.

    Hi John,.

    Try to change the code in the layout event: ready to go;

    This.Caption.Value.Text = (this.parent.index + 1) m:System.NET.SocketAddress.ToString ();

    TO;

    This.Caption.Value.Text.Value = (this.parent.index + 1) m:System.NET.SocketAddress.ToString ();

    It's adding another "value".

    Your form that works target Reader 8.0 or later and who only targets Reader 9.0 or later, I guess that's the difference.

    Concerning

    Bruce

  • Dynamic table names

    It is quite complex to explain, so forgive me if I miss some details.

    I got a code of work for Coldfusion 9, but my host only uses Coldfusion 8, and I'm not able to change it (or change host also).

    Now, I have a list of recipes, users can choose one or several of the recipes and can add it to the 'shopping list', grocery list is generated from the ingredients of the recipe. It begins as any application "your basket" there, however, following the various tutorials on the subject, that I'm still stuck in obtaining the 'ingredients' list, these tutorials allow to pass a variable and almost nothing else.

    Also this list may be printed or downloaded via file .txt (to put on my phone), so I need to keep the data.

    As explained above whatever I came with doesn't work under CF8, so far, I've modified my code to the following (note: I know that the "Evalute()" has not received a lot of love, so I tried to remove them, only because the ones I left are that no matter what else I have tried does not work):

    < cfoutput >
    <!--> loop in the first table containing the name of the recipees (table is called "ArList")
    < = cfloop '1' to = "#arraylen (arList) ' # ' index 'meter' = >"


    <! - calling the Array via a method - >

    #arList [meter]. Nom.getNom () # < /th >

    <!-check if there is any array containing the ingredient or if it is empty (just a security to avoid some bugs I've encountered). Otherwise, creates the table, each recipe gets its own ingredients database table, this way, it is possible to erase the unnecessary ingredient from the grocery list->
    < cfif not isdefined (session '. ") (' I_ #counter # ') or ArrayIsEmpty (Evaluate "(session.) ((' I_ #counter # ")) >

    <!--a little weird to start the < cfinvoke > here, but it works, the query returns only the ingredients of the recipe in each loop-->
    < cfinvoke component = "cfc.manoire" method = "Display_Ingrid" returnvariable = "Display_Ingrid" > "
    < name cfinvokeargument = "M_ID' value = '#arList [meter]. Nom.getM_id () #">"
    < / cfinvoke >

    <!-initialize the Array ingredient, these are dynamic because I can't predict how many users recipees will choose-->
    < cfset VARIABLES [session "."] I_"& counter] = ArrayNew (1) >

    <!--> loop through the query to complete the table
    < cfloop query = "Display_ingrid" >
    < cfset Arrayappend (VARIABLES "[session.) ([I_"& counter], structnew()) >
    < cfset position = arraylen (VARIABLES "[session.) ([I_"& counter]) >
    < cfset VARIABLES [session "."] [I_"& counter] [post]. I_Nom = #I_Nom # >
    < cfset VARIABLES [session "."] [I_"& counter] [post]. Quantity = #Quantite # >
    < cfset VARIABLES [session "."] [I_"& counter] [post]. Unite = #Unite # >
    < / cfloop >
    < / cfif >


    <!-displaty tables containing the list of ingredients, contains the hyperlink for the delete option. ->
    < cfloop from '1' = "#Arraylen (Evaluate('session.) = "(I_ #counter #')) #" index = "val" >
    #VARIABLES ['session. [I_"& counter] [val]. I_Nom #.
    #VARIABLES ['session. [I_"& counter] [val]. Incrus #.
    #VARIABLES ['session. [I_"& counter] [val]. Unite #.
    < / cfloop >

    < / cfloop >
    < / cfoutput >

    I get a"session of the item. "I_1 is not defined in an object of type Java coldfusion.runtime.VariableScope class" at the beginning of the last loop.

    I tried with evaluate() and it has a problem starting [val], which is not something I found pretty well documented so I guess there must be something relatively simple and direct that completely missed me.

    I am not put in any direction, so advice or constructive criticism is / are welcome.

    Thank you

    It seems to me like it the combination of the evaluate() in the CFLOOP could be led to SEE looking for a variable variables.session.i_1.  If this is the case, then it's a bug in CF, but you can get out help yourself by getting rid of the evaluate().  You don't have to evaluate() allows access to a variable name.

    Just use:

    session ["i_ #count #"], for example:

    --

    Adam

Maybe you are looking for

  • Is there a simple way to "upconvert" SD video HD in iMovie or FCP?

    I made a movie in 10 years (using the DVX 100) on SD. In order so that it can be published on Amazon Prime, it must be converted to HD. Anyone been a simple way to do this using iMovie or FCP? THX

  • Problems with Windows Update etc. Windows 7 x 64

    Windows 7 Professional x 64 SP1. THAT IS TO SAY 9; Intel Core Duo E8500 3.16 ghz, 4 GB Ram I'm on dial-up internet and I know it will make updates of slower collection, but it was relatively fast at first. Refrain from comments about me being on dial

  • Setting up wireless

    I recently moved into my place and need to set up a new wireless network connection.  I have a Photosmart C4780.  I've tried the HP wireless printing Center and the advice they give do not help me.  It said to insert my software disc and I should get

  • cannot access documents of errors "Documents.library - ms.

    Original title: cannot access documents I am running Windows 8 on my PC.  When I went to access my documents I got this error message: "Documents.library - ms" is no longer.  I received a similar message when I tried to access my photos, music or vid

  • PS is crashing.i can do work but the installation appears incomplete

    Tech said to say that PS crashes. don't know what that means. I can work with the tools that are around my computer screen, there is no bckgroun to block my screen so I can see the icons and it's distractingPlease help an old lady.installation may be