How do I display # symbol in PHP to refer to an anchor on another page?

How do I display # symbol in PHP to refer to an anchor on
another page?
I am updating a record and using a dynamic anchor name for
the page to forward to like this:
seeAllEntriesXcodeAsc.php#<?php echo
$row_getProductsWithSAMEcode['id']; ?>
But I keep getting an error, I think its because its reading
the # hash sign as a PHP instruction rather than an anchor hash...
Is there are way to mark it up so as to use the # as part of the
URL ?
I have even tried referring to a dummy field with a hash in
like this - but that doesn't work either.
seeAllEntriesXcodeAsc.php<?php echo $_POST['hash'];
?><?php echo $row_getProductsWithSAMEcode['id']; ?>
Thanks!

Sorry, I will try and explain in a different way...
I have a page in php where a database has an entry added,
changed or deleted.
The page is posted to an in between page to process the
transaction (which works)...
You are then taken to a dynamic anchor of the entry on a
database summary page to the SAME entry to see that the change has
been done.
(So the basic problem is that the link to take to the anchor
needs to have a # hash symbol in the middle to denote the anchor,
but the URL that is created puts the # at the end of the URL rather
than directly before the link the php code generates... All I need
is a way to code a PHP URL that manages a # hash in the middle.)
So in the middle processing page, I have update an entry
transaction with the page to redirect to after undertaking the
transaction as:
seeAllEntriesXcodeAsc.php#<?php echo
$row_getProductsWithSAMEcode['id']; ?>
So the final URL error I get is this:
Parse error: syntax error, unexpected
T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or
T_NUM_STRING in
/secure/c/capitalgarden/admin/DeleteEntryProcessor.php on line 39
The file is too large to post here so I have saved the file
as an HTML file so you can read the code at this URL:
http://www.new.capital-garden.com/DeleteEntryProcessor.html
Thanks for your help!
C

Similar Messages

  • How can I display the last items of a region from other Oracle Portal page?

    I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format these attributes).
    Thanks a lot.

    create a stored procedure (f.e. in schema myschema create a stored proc named renderAsHTML)
    code for the procedure :
    PROCEDURE renderAsHTML(p_itemId varchar2,p_pageId varchar2,p_siteId varchar2) IS
        l_displayName  portal.wwsbr_all_items.display_name%type;
        l_name         portal.wwsbr_all_items.name%type;
        l_publishDate  varchar2(10);
        l_url varchar2(250);
    BEGIN
         -- Looking for item datas
         select display_name, name,   to_char(publish_date,'dd/mm/yyyy')
         into l_displayName,l_name, l_publishDate
         from portal.wwsbr_all_items
         where id =p_itemId and language=portal.wwctx_api.get_nls_language;
         -- getting the URL og the item
         l_url := portal.wwpob_page_util.get_page_url(p_pageId, p_siteId);
         -- HTML rendering
    htp.p('<.a href="'||l_url ||'/'|| l_name ||'">' ||  l_displayName ||'</.a><.br/>');
    htp.p('Published on ' || l_publishDate ');
    EXCEPTION
        WHEN others THEN
               htp.p('<.div>Somme error occured , code is ' || SQLCODE || '.</.div>');
    END renderAsHTML;
    please notice that I've added a dot in HTML tags to avoid this forum to interpret them
    note : make sure that you granted "execute" for the public user on teh procedure you've just created.
    go to item properties (navigator>shared objects>item types>modify the one you want
    go to tab3 (procedures)
    set the following options :
    type : PL/SQL
    call proc : myschema.renderAsHTML
    link text : render as HTML
    icon : keep blank
    select the "display proc results with the item" option
    pass the following parameters :
    attribute1 : item ID as p_itemId
    attribute1 : page ID as p_pageId
    attribute1 : pagegroup as p_siteId
    Now, in your custom search portlet, go to results rendering, remove all attributes and add the "associated function" attribute.
    Now, all the HTML generated by the stored proc will be rendered instead of the item.

  • How do I display the number of words I've written in the new Pages update?

    I just downloaded Mavericks and updated pages and I can't figure out how to display the amount of words I have written. It used to automatically be at the bottom of the page.

    Toolbar > View > Word Count
    Peter

  • How do I display an image in Numbers based on the value of another cell?

    Here is the situation. I have a list of names in one table. I then have a table of pictures of corresponding to each name. I then have a drop down list in a cell with each of the names in it. I would like to be able to click the drop down list, select a name, and then have the corresponding picture be displayed in a cell. How would I go about doing this?
    Late 2013 rMBP with fully up to date software.

    not possible.  I have wanted to do this myself.  You can post feedback to Apple using the menu item "Numbers > Provide Numbers Feedback"

  • How can i display all the Coloumns (Key Figures) in the Report's same page

    Hi All,
    I am currently working on the BI 7.0 reporting. In the BEx Query Designer report, I am having 13 coloumns (7 Key figures and 6 Formulas) in the report. It is now displaying 10 coloumns in the First page of report. The other 3 coloumns can be seen by clicking on the next page. But the requirement is to see coloumns in the SAME PAGE.
    Are there any settings OR any other thing in the Query Designer, which can enable me to see all the coloumns on SAME page. The users are not interested in scrolling next page for 3 coloumns.
    Appreciates the Quick help/Response, please.
    Regards
    Ramana

    In Web Application Designer, for the properties of your analysis webitem under the Paging category, change parameter 'Number of Data Columns Displayed at Once' (BLOCK_COLUMNS_SIZE) to 0.  This will make all columns show instead of paginating as it is doing now.

  • How to view data from infopath form that submit into sharepoint list into another page in sharepoint

    what I want to do is, User A as administrator, will fill in the form. Next User A will assign task to User B, to complete the form. when User B open the form, the above part of the form will displayed data that fill by User A. Field that User B need to fill
    in is at the below of the form. 
    may I know how to do it step by step? Thank you for your answer. 
    Azuaniza Ariffin

    Hi,
    I saw a similar post by you on this forum, and to achieve the functionality you can try using InfoPath Form or JQuery with SPService to make part of the Form as Readonly. and in conjunction use SharePoint designer to create a workflow to assign task or send
    email to user B.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d02389be-f267-4c09-baf1-d85a5429bafb/set-field-value-and-make-field-read-only-on-custom-list-form?forum=sharepointgenerallegacy
    http://www.sharepointdiary.com/2013/07/how-to-make-sharepoint-list-column-form-field-read-only.html#ixzz2aH103rcM
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • PHP/MySQL - Nav links pass variable to another page? Or?

    I'm a PHP/MySQL beginner. I'm digging through books and tutorials as best I can, but finding myself a little lost in the sheer volume of information. If someone can point me in the right direction for this task, I'd really appreciate it.
    I have a database (MySQL) with two tables. One is a list of carpets, and the other a list of the categories of carpets and information about those categories.
    The "carpets" table has a field for each record to indicate which category that carpet belongs to.
    I'm trying to do this:
    - A navigation bar listing the categories
    - When you click on a category, a "gallery" page opens, display the carpets (name, description, photo) of each carpet in that category
    Does Dreamweaver have server behaviors for this? If not, can anyone give me a general idea of what the code is I need to write to make this happen?
    Thanks VERY much in advance,
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate Worksheet

    David,
    I believe I've done exactly what you described above; only my naming is slightly different.
    catID in my database is "category_id"
    page.php in my application is "navbar.php"
    detail.php in my application is "gallery.php"
    When I view navbar.php in the browser and click on one of the links, the resulting URL is like this:
    gallery.php?2=
    or
    gallery.php?3=
    etc.
    I'm pasting the whole code from navbar.php and gallery.php below, in case it's is helpful for you to have a look at it (and you have the time to).
    I am really grateful for your help.
    Patty
    ------------ navbar.php ----------------------------------------------------------------------------------------- ---------------------
    <?php require_once('Connections/connSouthwest.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;
    mysql_select_db($database_connSouthwest, $connSouthwest);
    $query_GetCategories = "SELECT * FROM categories";
    $GetCategories = mysql_query($query_GetCategories, $connSouthwest) or die(mysql_error());
    $row_GetCategories = mysql_fetch_assoc($GetCategories);
    $totalRows_GetCategories = mysql_num_rows($GetCategories);
    ?>
    <!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>Navbar</title>
    </head>
    <body>
    <ul>
      <?php do { ?>
        <li><a href="gallery.php?<?php echo $row_GetCategories['category_id']; ?>="><?php echo $row_GetCategories['category_name']; ?></a></li>
        <?php } while ($row_GetCategories = mysql_fetch_assoc($GetCategories)); ?>
    </ul>
    </body>
    </html>
    <?php
    mysql_free_result($GetCategories);
    ?>
    ----------------- gallery.php -----------------------------------------------
    <?php require_once('Connections/connSouthwest.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;
    $maxRows_GetCarpet = 10;
    $pageNum_GetCarpet = 0;
    if (isset($_GET['pageNum_GetCarpet'])) {
      $pageNum_GetCarpet = $_GET['pageNum_GetCarpet'];
    $startRow_GetCarpet = $pageNum_GetCarpet * $maxRows_GetCarpet;
    $colname_GetCarpet = "-1";
    if (isset($_GET['category_id'])) {
      $colname_GetCarpet = $_GET['category_id'];
    mysql_select_db($database_connSouthwest, $connSouthwest);
    $query_GetCarpet = sprintf("SELECT * FROM carpets WHERE category_id = %s ORDER BY carpet_sort ASC", GetSQLValueString($colname_GetCarpet, "int"));
    $query_limit_GetCarpet = sprintf("%s LIMIT %d, %d", $query_GetCarpet, $startRow_GetCarpet, $maxRows_GetCarpet);
    $GetCarpet = mysql_query($query_limit_GetCarpet, $connSouthwest) or die(mysql_error());
    $row_GetCarpet = mysql_fetch_assoc($GetCarpet);
    if (isset($_GET['totalRows_GetCarpet'])) {
      $totalRows_GetCarpet = $_GET['totalRows_GetCarpet'];
    } else {
      $all_GetCarpet = mysql_query($query_GetCarpet);
      $totalRows_GetCarpet = mysql_num_rows($all_GetCarpet);
    $totalPages_GetCarpet = ceil($totalRows_GetCarpet/$maxRows_GetCarpet)-1;
    ?>
    <!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>Category Name | Southwest Looms</title>
    </head>
    <body>
    <h1>Gallery Page</h1>
    <p>Category Name will go here.<br />
      Category Description will go here. </p>
    <p></p>
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
      <?php do { ?>
        <tr>
          <td><?php echo $row_GetCarpet['carpet_photo_thumb']; ?></td>
          <td><?php echo $row_GetCarpet['carpet_name']; ?>: <?php echo $row_GetCarpet['carpet_description']; ?></td>
        </tr>
        <?php } while ($row_GetCarpet = mysql_fetch_assoc($GetCarpet)); ?>
    </table>
    <p> </p>
    </body>
    </html>
    <?php
    mysql_free_result($GetCarpet);
    ?>

  • How do I use the same css style but different attributes, Without affecting another page.

    Hey everyone,
    I am using the "NivoSlider", for my dreamweaver page but I am not sure how to tell styles that one page has one attribute and the other one will have a different attribute.
    For example: in my "about us" I have a small slideshow with its own pictures. I then put  a gallery page with its own pictures, yet, I want to make that slideshow box larger without affecting the other small slideshow.
    I am using just one Style.CSS for the slideshow.
    Anyways, is their a way to tell tell the code that one page is going to be a different width then the other?
    Thank you!

    Embedded CSS rules take priority over styles in external style sheets.   So you can add page specific rules between your document's <head> tags and after all other links to external CSS files.
    <style>
         page specific rules here....
    </style>
    Nancy O.

  • How to close one browser window and return to a named anchor on a page in another window

    I'm working on a website that has several book images at the bottom of each page. I have set it up so when the user clicks on a book another smaller browser window opens up with a description of the book. At the bottom of book description window, I have a close button which I added the window.close() behavior to. But I'd like to not just have the window close but return the user to the bottom of the original page where I have the books, an area that I have applied a named anchor to. Any ideas on how I can get this done.
    I'd appreciate any and all help.

    I haven't tried to customize this lightbox extension much.  But I'm pretty sure the size of the box is pre-determined by image size.  Bigger image, bigger box.  And that is coded into one of the Lightbox javascript libraries.
    As to placing a link in the caption, sure.  Just paste your html link code into the Lightbox Caption Panel like so.
    <a href="http://amazon.com"> Buy now from Amazon</a>
    There is much more detailed information about Lightbox and how it works at the huddled together website.
    http://www.huddletogether.com/projects/lightbox/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How can I display XSLT transformer errors on a web page ?

    Hi,
    I have some JSP pages that access DB, create an XML based on DB data and then transform it into HTML through an XSLT stylesheet. Developing the XSL code it's easy to make mistakes and generate errors on trasformation, but what I receive on the web page is only a "Could not compile stylesheet" TransformerConfigurationException, while the real cause of the error is displayed only on tomcat logs. This is the code for transformation:
    static public void applyXSLT(Document docXML, InputStream isXSL, PrintWriter pw) throws TransformerException, Exception {
            // instantiate the TransformerFactory.
            TransformerFactory tFactory = TransformerFactory.newInstance();
            // creates an error listener
            XslErrorListener xel = new XslErrorListener();
            // sets the error listener for the factory
            tFactory.setErrorListener(xel);
            // generate the transformer
            Transformer transformer = tFactory.newTransformer(new SAXSource(new InputSource(isXSL)));
            // transforms the XML Source and sends the output to the HTTP response
            transformer.transform(new DOMSource(docXML), new StreamResult(pw));
    }If an exception is thrown during the execution of this code, its error message is displayed on the web page.
    This is the listener class:
    public class XslErrorListener implements ErrorListener {
        public XslErrorListener() {
        public void warning(TransformerException ex) {
            // logs on error log
            System.err.println("\n\nWarning on XEL: " + ex.getMessage());
        public void error(TransformerException ex) throws TransformerException {
            // logs on error log
            System.err.println("\n\nError on XEL: " + ex.getMessage());
            // and throws it
            throw ex;
        public void fatalError(TransformerException ex) throws TransformerException {
            // logs on error log
            System.err.println("\n\nFatal Error on XEL: " + ex.getMessage());
            // and throws it
            throw ex;
    }When I have an error in the XSL stylesheet (for examples a missing closing tag), I can find on tomcat logs the real cause of the error:
    [Fatal Error] :59:10: The element type "table" must be terminated by the matching end-tag "</table>".
    Error on XEL: The element type "table" must be terminated by the matching end-tag "</table>".but on my web page is reported just the TransformerConfigurationException message that is:
    "Could not compile stylesheet".
    How can I display the real cause of the error directly on the web page?
    Thanks,
    Andrea

    This code is part of a bigger project that let developers edit XSL stylesheets through a file upload on the system and we can't impose the use of any tool for checking the xsl. So, I need to display the transformer error on the web page.I see. This code is part of an editorial/developmental tool for developers to create and edit XSL stylesheets.
    As part of the editorial process, XSL errors during editing can be considered a normal condition. In other words, it is normal to expect that the developers will generate XSL errors as they are developing stylesheets.
    In this light, handling the XSL transformation errors is a business requirement that you need to handle. Using the Java Exceptions mechanisms, e.g. try / catch are inappropriate to handle business requirements, in my opinion.
    I suggest that you look at how you handle the occurence of XSL errors differently than what you currently have. You need to:
    (1) capture the Transformation exception on the server;
    (2) extract the message from the exception and put it into a message that can be easily understood by the user;
    The current error message that you have going to the web browser is not useful.
    And you should not have the Transformation exception sent to the web browser either.
    What you are attempting to do with the exception is not appropriate.
    Handle the Transformation exception on the Business tier and use it to create a useful message that is then sent to the Presentation tier. In other words, do not send Java exceptions to web browser.
    />

  • How can I display de last items of a region from other page in Portal?

    I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format these attributes).
    Thanks a lot.

    How can I display the last items of a region from other Oracle Portal page?

  • How can I display on a string the symbol omega (ohms)

    how can I display on a string the symbol omega (ohms)

    Hi,
    See there : http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000032410000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Hope this helps !
    Julien

  • How do I display or hide a Java menu based on current url in a php page

    How do I display or hide a Javascript menu based on the current url in a php page?
    I want to specify when a java menu appears on a page based on the current url - does anyone have a script for the vars and conditional statements to make this happen - it would be something like this in natural language:
    <javascript>
    if currenturl = http://jemmakidd.com/categories.php
    then displaymenu
    else if currenturl = http://jemmakidd.com/categories.php?cat=14 (or 15,16 etc)
    then DONOTdisplaymenu
    What is needed is that, if you look at this page there is a java menu under the first category:
    http://jemmakidd.com/categories.php
    I WANT the menu to appear on that page so that is working, however if I look at one of the store categories, like on this page, I do NOT want the menu to appear - it may be that this can be done without using a java current url type function - thats why I'm asking...
    http://jemmakidd.com/categories.php?cat=14
    So to summarise:
    http://jemmakidd.com/categories.php (If this url is used DO display menu - if any other url DONT display menu)
    Thanks again...any ideas?
    Edited by: littlealex2009 on Jul 15, 2009 12:51 AM

    This is a Java forum, not a Javascript forum. Google the differences.
    kind regards,
    Jos

  • How to show Phonetic symbol in a j2me program?

    i want write a dictionary program,but now i don't know how to show Phonetic symbol in the program! does someone can help me ?

    ppwyz,
    do u found a way of displaying phonetic last time?I hope so....
    if so, can u please show me the way?
    I need the guideline..
    Thanks...

  • How do I display something only if javascript is enabled?

    Hi. This may be a dumb question, but I haven't been writing code all that long. Anyway, I am creating a custom online store. I used the spry menu bar to create a menu bar for the product categories. The tutorials I had been watching about how to use the spry widgets said that it's a good idea to create alternatives incase somebody doesn't have javascript enabled, so I created an alternative navigation system. The problem now is, I only want to display the spry menu bar if javascript is enabled. I know I can use the noscript tag to display the alternative navigation system is javascript is disabled, but how do I display something only if javascript is enabled?

    I tried that and it doesn't seem to be working. I tried it as:
    <div id="navigation">
       <script>
      <?php publicNavigation(); ?>
    </script>
        <script type="text/javascript">
    <!--
      var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
        <noscript>
        <?php
         startNavigation();
    ?>
        </noscript>
      </div>
    and as:
    <div id="navigation">
    <script type="text/javascript">
    <!--
      <?php publicNavigation(); ?>
      var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
        <noscript>
        <?php
         startNavigation();
        ?>
        </noscript>
      </div>
    In either situation, nothing shows up where the menu bar should be. I know I have javascript enabled so that is not the problem. How do I get this working?

Maybe you are looking for