Display only a part of a text string for PHP MySql feild

i have a description (tk_job_desc) feild on a jobsearch that i only want to display say the first 5 lines of the description feild the click a read more option the take the user to a new page the read the full job outline
<?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_Recordset1 = 5;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
  $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
$var_tk_job_title_Recordset1 = "%";
if (isset($_GET["tk_job_title"])) {
  $var_tk_job_title_Recordset1 = $_GET["tk_job_title"];
$var_tk_job_location_Recordset1 = "%";
if (isset($_GET["tk_job_location"])) {
  $var_tk_job_location_Recordset1 = $_GET["tk_job_location"];
$var_tk_job_salary_Recordset1 = "%";
if (isset($_GET["tk_job_salary"])) {
  $var_tk_job_salary_Recordset1 = $_GET["tk_job_salary"];
mysql_select_db($database_hostprop, $hostprop);
$query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, tk_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %s OR tk_job_salary LIKE %s", GetSQLValueString($var_tk_job_title_Recordset1, "text"),GetSQLValueString($var_tk_job_location_Recordset1, "text"),GetSQLValueString($var_tk_job_salary_Recordset1, "text"));
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
  $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
  $all_Recordset1 = mysql_query($query_Recordset1);
  $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?>
the html is
<table width="655" border="0" cellspacing="5" cellpadding="0">
            <tr>
              <td colspan="2" class="Titlegreen"><?php echo $row_Recordset1['tk_job_title']; ?></td>
            </tr>
            <tr>
              <td colspan="2" class="textblack"><?php echo $row_Recordset1['tk_job_desc']; ?></td>
            </tr>
            <tr>
              <td width="250"> </td>
              <td width="405"><div align="right"><span class="pos_salary"><?php echo $row_Recordset1['tk_job_salary']; ?></span><span class="pos_location">/<?php echo $row_Recordset1['tk_job_location']; ?></span></div></td>
            </tr>
          </table>
thanks

ok thanks., i have found a few things on the internet
i followed the tutorial http://www.phpbuilder.com/board/showthread.php?t=10332476
"SELECT LEFT tk_job_title, tk_job_location, tk_job_salary, ('tk_job_desc',150)............... but it has returned and error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tk_job_title, tk_job_location, tk_job_salary, ('tk_job_desc',100) FROM think_job' at line 1
the other part of the article shows
<?php
mysql_connect("localhost", "user", "pass");
mysql_select_db("my_db");
$result = mysql_query("SELECT * FROM news ORDER BY RAND() LIMIT 0, 1");
while ($rows = mysql_fetch_array($result))
echo substr($rows['text'],0,100);
?>
looking at my code i need to add the tk_job_desc to the statement
$query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, tk_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %s OR tk_job_salary LIKE %s", GetSQLValueString($var_tk_job_title_Recordset1, "text"),GetSQLValueString($var_tk_job_location_Recordset1, "text"),GetSQLValueString($var_tk_job_salary_Recordset1, "text"));
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
would i need to put that statement in there?

Similar Messages

  • Display only a part of a blog post in the summary view

    Hello,
    Has anyone come across an effective way to set the size, either by pixels or the number of characters, that is displayed for blog posts in the summary view? I'm working with a blog that has some very lengthy posts, and we want to reduce the amount that people
    have to scroll down the page on the homepage of the blog.
    It's worth noting that I've come across a couple different potential solutions, but have had issues because the body of the post is an "enhanced rich text" field.
    Thanks in advance for any help!

    Hi Bogan,
    According to your description, my understanding is that you want to display only a part of the blog post in the summary view.
    I recommend to edit the homepage in SharePoint Designer and modify the XSLT to achieve your goal.
    Here is a link for you to refer:
    http://heatherwaterman.com/2011/05/customizing-the-blog-posts-in-a-sharepoint-blog-template/#lightbox/10/
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/77465d4d-0db7-4736-8358-e9b853a644d7/default-blog-site-summary-view-of-posts?forum=sharepointgeneralprevious
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • UITextView doesn't display the first part of the text

    I am having a trouble with UITextView.
    When a text view is loaded for the first time after my app is launched (the text view is created and text is filled from saved data), the text view displays from the first letter of the text.
    But once the text view becomes first responder, then disappers by pressing back button on a navigation bar, and come back to the text view again by using a control on the previous view (a button for instance), the text view always displays the last part of the text.
    This happens after the text view becomes first responder. What is changed before and after the text view becomes first responder? And how can I avoid this to display the first letter in the text view always when it appears?
    I tried resignFirstResponder, selectedRange, and scrollRangeToVisible: in viewWill/DidAppear/Disappear but all of them didn't work.

    Thank you iPhil_good, but it didn't work ...
    And RickMaddy, I don't know how to post image but as it is UITextView, I use text to explain.
    There are two views, home view and text view, and UITextView is in the text view. The first time the UITextView appears (slides in from the home view), it looks like:
    Test[1] Test[2] Test[3] Test[4]
    Test[5] Test[6] Test[7] Test[8]
    Test[9] Test[10] Test[11] Test[12]
    Suppose the text starts at Test[1] and ends at Test[200], and just the first 50 are visible within the size of the UITextView.
    Once I tap on the UITextView, keyboard appears and UITextView becomes first responder (editable). Then I go back to the home view using back button on the navigation bar.
    Then again I move back to the text view from the home view,. This time it looks like:
    Test[189] Test[190] Test[191] Test[192]
    Test[193] Test[194] Test[195] Test[196]
    Test[197] Test[198] Test[199] Test[200]
    I would like to display the text from Test[1] whenever the view appears. If the UITextView hasn't become first responder, this doesn't happen and the text starts from Test[1] when it appears. But once the UITextView becomes first responder, the UITextView always displays Test[200] at the bottom of the view when it appears.
    I am not sure but it looks as though some internal state of UITextView changes when it becomes first responder, but isn't reset even after it resigns first responder.

  • Where can I find the appropriate text string for China Time zone?

    Hi,
    Where can I find the appropriate text string for China Time zone?

    Hi,
    The following timezone strings are supported in Oracle8i 8.1.7:
    AST, ADT: Atlantic Standard or Daylight Time
    BST, BDT: Bering Standard or Daylight Time
    CST, CDT: Central Standard or Daylight Time
    EST, EDT: Eastern Standard or Daylight Time
    GMT: Greenwich Mean Time
    HST, HDT: Alaska-Hawaii Standard Time or Daylight Time.
    MST, MDT: Mountain Standard or Daylight Time
    NST: Newfoundland Standard Time
    PST, PDT: Pacific Standard or Daylight Time
    YST, YDT: Yukon Standard or Daylight Time
    Since your's isn't one of these, I'm hoping this is in reference to the Web Agent's ORDWEBUTL package, in which case, you can use an offset from GMT instead. For example, here in New Hampshire, USA, we are 5 hours behind GMT, so the offset would be -5, while in France, it would be +1 as they are one hour in front of GMT. According to my Windows clock, Beijing is GMT +8. Of course, you'll have to figure daylight-savings time into the equation, if you have to deal with such changes.
    Regards,
    Simon
    null

  • Crystal report displays only a part of a field

    I created a Crystal report based on a BW Query. The user enter a comment about a sales order in SAP. This field has only a key but no text in BW.
    So the text is the key. The whole comment can be seen when I run the query with Bex Analyzer. The key is displayed on the report.
    However Crystal report cuts the length of this field although I use the key in the Crystal report as well. Only 143 characters can be seen.
    I adjusted the font or can grow option of the field but it doesn't work.
    I tried this formula as well but it did not work.
    Stringvar s1:={field} [1 to 100];
    Stringvar s2:={field} [102 to 200];
    S1&s2;
    Can somebody help me about this issue?
    I will be very thankful.
    Deniz

    That would be CR 2013, Service Pack 2. CR 2013 is now on SP 5 and it would be good to update to that. Links to updates are here:
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/patch_download/main_public.htm
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • Why do people sometimes only receive part of my text message

    I'm wondering if anyone has a solution for this issue?? It happens with several different contacts of mine. I send them a text message of varying sizes and sometimes they only get part of it. I've asked my carrier for support but it isn't a carrier issue. Any ideas please?

    SMS messages are limited to 160 characters. If you type more than that, the message is split into multiple messages. If the receiver is using an iPhone or some other smartphones, the message is re-assembled on the receiving side from the multiple messages received from the carrier.
    If the receiver is not getting the entire message, the problem is with your carrier, their carrier, or the interchange between the two. You should both contact your carriers and report the problem.

  • PM_print on output only a part of long text header

    Hi Expert,
    I need to your help.
    I want to print in a fixed box (that is limiteted by item numbers and characters) the long text that is in the maintenance order header text.
    Someone can help me?
    Thanks a lot
    Andrea

    ok thanks., i have found a few things on the internet
    i followed the tutorial http://www.phpbuilder.com/board/showthread.php?t=10332476
    "SELECT LEFT tk_job_title, tk_job_location, tk_job_salary, ('tk_job_desc',150)............... but it has returned and error
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tk_job_title, tk_job_location, tk_job_salary, ('tk_job_desc',100) FROM think_job' at line 1
    the other part of the article shows
    <?php
    mysql_connect("localhost", "user", "pass");
    mysql_select_db("my_db");
    $result = mysql_query("SELECT * FROM news ORDER BY RAND() LIMIT 0, 1");
    while ($rows = mysql_fetch_array($result))
    echo substr($rows['text'],0,100);
    ?>
    looking at my code i need to add the tk_job_desc to the statement
    $query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, tk_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %s OR tk_job_salary LIKE %s", GetSQLValueString($var_tk_job_title_Recordset1, "text"),GetSQLValueString($var_tk_job_location_Recordset1, "text"),GetSQLValueString($var_tk_job_salary_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    would i need to put that statement in there?

  • How to calculate TLF Text Position for PHP

    Hi, we are using TLF Text for creating a simple application, to create PDF files from PHP.
    We tried with our TLF and Classic text difference for y Position. there we got 20% approx gap, from top, in TLF. Can anybody tell me? How to calculate Y position of TLF Text including line height for the new line text, for PHP?

    Holy cow... by the loop you just mentioned you're literally trying to make a TextField for every single character?! That's really unadvisable as an approach overall.
    I'm not sure how this suits your needs but finding a common medium is the best route here. Here's a couple route change suggestions and then at the end if you really still want to persue this method I'll let you know the method you want to use.
    One way is is to make a stylesheet that is re-usable between both TLFTextField and TextField. As long as the same classes are applied to both fields they will look "as close as possible" to identical as long as the same stylesheet is applied to both. Then it's just copying all the text from one field to another once.
    The other way which offers a bit less flexibility but still can work is to use HTML directly to style the text. Some attributes like line spacing and such are not supported directly in HTML without stylesheets but you can do a bit of common formtting (like color, font family, font size, bold, italic, etc). Then if you enable the classic TextField's .html property to true you can again just copy the text directly into it and it will format based on the HTML.
    If you can't persue either of these, the method you're looking for is this:
    http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/fl/text/TLFTextFie ld.html#getCharBoundaries()
    getCharBoundaries() returns a Rectangle which contains the x, y, width and height boundaries of the character index you supply. So in your loop you would do something like:
    txt.y = tlft.getCharBoundaries(i).y;
    The height and width would also be useful for you in certain cases where exotic formatting is used.

  • My Display Only Works Part of the Time and Apple Care Won't Help Me (Long)

    I bought my computer at a discounted price because it was a restocked item, but was it really worth it? I'm beginning to think not. I saw that it had one stuck pixel, but saving that much money on such an expensive computer, the pixel hardly seemed like a travesty. However, I think I've discovered the real reason why the last owner gave up such a seemingly exceptional piece of hardware...
    After about a month of flawless operation my "new" computer started to act a little strangely. It wouldn't always go to sleep when it was scheduled, the screen saver wouldn't always come on by itself...things that I though a simple PRAM reset, SMC reset, or disk permission repair would fix. After countless attempts at all three "fixes" I was still having problems...a few days after these problems started occuring something even more drastic happened: My computer would turn on (the little light would come on, I'd hear the fans start running and the start up tone) but the screen would remain black. I tried several PRAM and SMC resets as suggested on this forum, but the screen continued to come up black for about an hour. That's when I called Apple.
    The Apple Care specialist on the phone asked me for the serial in which I had to lift the computer up to get (since I obviously couldn't read it off the screen). She suggested an SMC reset which, I explained to her, I had tried already but it hadn't worked, however, I was willing to give it another shot. Oddly (and rather annoyingly) enough it worked, and for a short amount of time I was happy...until it happened again...another call to Apple...and again...and about 3 or 4 calls to Apple Care later, they suggested that I go in to an Apple Store to have it looked at.
    The Apple Specialist made an appointment with me to meet with an Apple Genius the next day at 4:30PM at a store about a mile away from my house. The next day I lugged my 24" iMac through the local mall (I'm female, 5'2", and I weigh about 108 so it wasn't too easy of a feat) to discover the apple store was CLOSED for the next few days so that they could "make the store better." I called Apple Care on my cell phone right there in the mall and asked them what was going on. Didn't they know that this Apple Store was closed? The man I was talking to said that they knew and he wasn't sure how the person I had talked to just the day before had signed me up for an appointment when he hadn't even asked for my e-mail address. It was most bizarre. This man made an appointment with me for later that same day at an Apple Store about 45 minutes away from where I live. I didn't want to go, but I'm a college student and I was a desperate for my computer to work again.
    Shaking around in that box must have brought it out of it's strange seized-up state because as I brought it out for the Mac Genius to look at it turned on for him no problem. Quite a frustrating problem because it's so spontainious that it keeps making me look like either a liar or a fool. He said he'd run an 8-hour diagnostic check on it and I could pick it up the next day. So the next day I waited for their call but I got none. I called them and they said that they were still running tests and it'd be ready the next day. The day after, about an hour and a half before I had to go to work, they called me and told me my computer was ready. They said they had ran a 24-hour diagnostic and everything was working fine but they said they'd run more tests if I wanted them to. I'm a full-time college student and I need my computer for just about all of my classes, so I declined more tests and told them I'd pick it up right away. I dashed over there to pick it up and dashed back as fast as I could (and I even made it to work on time...but just barely). Later that night I found that they had accidentally left their diagnostics CD in my computer (I called them about it and they said that would like it if I would bring it back...I still haven't mailed it).
    All was fine and good (well, just okay...it still had problems with its sleeping and screen-savering) with my computer until yesterday. I got that black screen again upon start up....but this time my "fixes" worked after a few tries. There were no more problems for the rest of yesterday.
    However, today I came home from school and go to start up my computer and the screen turned on and I saw the little mac symbol and that little circle of bars...but then it froze. I held in the little button to force a shutdown and when I started it back up again I was greeted by my good old friend, Mr. Black Screen. Just wonderful. I tried my "fixes" but today I didn't get lucky. So while I was holding in the button to start up my computer (again) and give it another go, I held it longer than I was supposed to and the little on light began flickering. Then I heard this unpleasant tone that lasted a few seconds before stopping and treating me to the startup sound. This time the screen turned on. Yay! I go to call Apple to find out what I had just done, and I find out that my 90 days are up and unless I wanted to pay $50 for them to be puzzled by my issue once more or give them $300 for not quite 3 more years of service, I'd have to lug my computer to an Apple Store or post here to get help. Thanks a lot Apple Care.
    My "new" computer cost me almost $3,000. It should work the way it's supposed to. I need it to last me no less than 6 more years, but with the problems I've had with it in the first 3 months (which seem only to be getting worse and more frequent), I don't know if I'm expecting WAY too much out of it. I've been a loyal Apple user for 13 years and out of the 5 computers I've had in that time I've never had so many problems (actually I've never had any problems, at least nothing really serious; I'd never even called Apple Care before this). I'm a fairly experienced user (I'm not a Mac Genius or anything, but I know the ropes) and I am sure this is not normal behavior for an Apple computer (or any computer of that matter).
    I'm so frusterated I'm not sure what to do. What's wrong with my computer? How can I get Apple to help me? How can I get Apple to even believe me? Any advice would be greatly appreciated and thank you so much for reading my very long (and rather dramatic) story.

    Thanks for reading and thanks for the advice. Perhaps I'll ask them about it next time this problem occurs, although carrying the thing through a mall that is only about a mile away is the least of my worries. I'll do if it is both free (I don't make enough at my job to pay for such a service) and relatively speedy, although I'd hate for them to come over and for the computer to work properly (as bad as that sounds). It'd be a wasted trip and nothing would get fixed.
    I'm contemplating videotaping myself performing my "fixes" on it the next time I have this problem.

  • Ring Item text string too long to display all - use ellipses ?

    The width of my Ring control is not wide enough to display all characters in the Item text string.  LabVIEW simply truncates the text with no indication that additional text is present.  Is there a way to display an ellipses in such cases ?  For example :
    "Ring text string that is too long"
    that is now shown as :
    "Ring text string that i"
    could be shown as :
    "Ring text st...too long"

    A couple of suggestions:
    1.) Use property nodes to determine which strings are too long, then concatenate the strings with ellipses.
    2.) Increase the height so the text wraps.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • How can I delete only one part of my xml file?

    Hello,
    I stored more than 100 users in only one xmltype column. For instance
    Create table agro(users XMLTYPE);
    ... and I inserted all users inside
    INSERT INTO agro values(XMLTYPE
    ('<?xml version="1.0" encoding="ISO-8859-1"?>
    <authentication><users><user>
    <name>cocoon</name>
    <password>cocoon</password>
    <role>admin</role>
    <title>Mr.</title>
    <firstname>Walter</firstname>
    <lastname>Cocoon</lastname>
    <company />
    <street />
    <zipcode />
    <city />
    <country>DE</country>
    <phone />
    <fax />
    <email />
    <bankid />
    <bankname />
    <accountid />
    </user>
    ... another user, etc.
    </users></authentication>'));
    Now I tried to delete only one part of this file. For example all persons with the name"cocoon".
    I used for this target the following statement:
    DELETE FROM agro agro
    WHERE agro.users.extract('authentication/users/user/text()').getStringVal()= 'cocoon';
    When I execute this statement, Oracle DB delete all users and not only with the name "Cocoon".
    How can I delete only one part of my xml file?
    Kind Regards
    M R

    This the expected behavoir. You uploaded a document containing multiple users and then asked XML DB to delete any documnet that contained a user with the name in question. The problem here is that you are creating a mega document that contains an aggregation of user documents but then trying to work with individual user documents. This is a bad idea.
    In general XML does not understand the concept of a collection of documents. It can only operate on one document at a time. Hence the tendancy to aggregate individual documents into a single larger document. Once you have an XML database, you can perform operations on collections of document, as easily as you can perform operations on individual documents, so the need to aggregate the individual documents together disappears.
    If you store each user document as a seperate document then your delete will work as expected.

  • Need to make Batch Number (CHARG) display only on MSC1N

    Hi, we have a requirement to make batch number field (DFBATCH-CHARG) display only based on user authorization. I have tried implemented BADI BATCH_MASTER and tried to change the screen field property in method SINGLE_FIELD_CONTROL but batch number (CHARG) is not part of the loop for this method.
    Does anybody know BADI or Screen exit for MSC1N that can make the batch number display only?
    Thanks,

    Hi
    Although it's for older releases, see Note 562690 - BAdI BATCH_MASTER: Field selection control, perhaps it helps you
    Regards
    Eduardo
    PD: Other thing, see that it refers to T148F and T148G. Try to add the field CHARG in customizing menu. Ask your MM consultant about implications.
    Edited by: E_Hinojosa on Jul 13, 2011 9:48 AM

  • Is it possible to share only a part of contact.

    Hi,
    Is it possible to share only a part of an contact? For example: If you have more nubmers and data for one contact (mostly we do) and would like to send someone only one number and not the rest of contact`s data (personal)? I know that on some other phones this is possible. Thanks for answers.

    You can update all, or download select App updates one at a time by selecting the app update you want to install.

  • How come itunes only downloaded part of a song?

    I bought a a couple of albums off of itunes and on one song (that i know of) on each album only plays part of the song. For example: if you have a 3:45 song it will only play 2:35 of the song and then it cuts off and moves onto the next song on the album. Can anybody help with this problem. I want my moneys worth. Thanks.

    Delete the tracks from the iTunes library, allowing iTunes to move the track files to the Trash. Then download the tracks again from the iTunes Store via this procedure:
    http://support.apple.com/kb/ht2519
    That fixes the problem for many people. If problems with the tracks persist, go here:
    iTunes Support
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Can we display only the required columns dynamically?

    Hi All,
    I have a scenario where in I have 30 columns in the rtf template. All the columns will never be displayed, only a select few will be available for display. So the output file is show blank columns. Now I want to display only the columns which contain data.
    FYI- We cannot know which columns consist data until we run the report.
    Any Advice.
    Thanks in advance.
    Madhav.

    Hi,
    You can use the following:
    Column header:
    <?if@column:/node/child_node="PUBLIC"?>My label<?end if?>
    Column data:
    <?if:/node/child_node="PUBLIC"?>My data<?end if?>
    The @column will tell XMLP wheater or not the column shall be shown.
    I hope this helps you.
    BR Kenneth

Maybe you are looking for