Results page only displays partial record

Hello everyone: I am new to this forum and would like to
request some help. I have searched and searched but cannot find the
answer to my problem on this forum or others.
I problem is as follows;
I have a results page which displays the complete version a a
single news story. I am pulling the story with a simple URL
Parameter. The PHP tage for the affected field contains a simple
nl2br statment and I am not using any complicated queries to pull
the data.
When I update the record from the update page I get no errors
of any kind, but when I load the page that displays the updated
record, the contents of the field in question is trucated.
I cannot see any problems with any of the code and I am quite
baffled by it.
Here is the code for the record display
<?php echo nl2br ($row_rsNews['story']); ?>
And this is the code for the update action
<?php
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = (!get_magic_quotes_gpc()) ?
addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_update"])) &&
($_POST["MM_update"] == "updatenews")) {
$updateSQL = sprintf("UPDATE news SET `date`=%s,
subtitle=%s, title=%s, story=%s, image=%s, thumb=%s WHERE id=%s",
GetSQLValueString($_POST['date'], "date"),
GetSQLValueString($_POST['subtitle'], "text"),
GetSQLValueString($_POST['headline'], "text"),
GetSQLValueString($_POST['story'], "text"),
GetSQLValueString($_POST['image'], "text"),
GetSQLValueString($_POST['thumb'], "text"),
GetSQLValueString($_POST['id'], "int"));
mysql_select_db($database_ifbdb, $ifbdb);
$Result1 = mysql_query($updateSQL, $ifbdb) or
die(mysql_error());
$updateGoTo = "news_list.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $updateGoTo));
$colname_rsNews = "-1";
if (isset($_GET['id'])) {
$colname_rsNews = (get_magic_quotes_gpc()) ? $_GET['id'] :
addslashes($_GET['id']);
mysql_select_db($database_ifbdb, $ifbdb);
$query_rsNews = sprintf("SELECT * FROM news WHERE id = %s",
$colname_rsNews);
$rsNews = mysql_query($query_rsNews, $ifbdb) or
die(mysql_error());
$row_rsNews = mysql_fetch_assoc($rsNews);
$totalRows_rsNews = mysql_num_rows($rsNews);
?>
I would truly appreciate any help this group can
offer.

Hi Gunther:
I am really quite embarrassed, about this but I think I found
the problem...
I had a look at the table configuration in MySQL
Administrator, and there was the problem staring me right in the
face.....
The field 'story' was set to VARCHAR(255) ! I reset it to
TEXT and all is fine now!
Please accept my sincerest thanks for your help. Your
suggestion to check if I was using a textarea is what led me to
check the datatye again. I have no idea how it got changed but I
now know where to check first if it happens again.
Thaks a ton!!!!!

Similar Messages

  • I have just updated to 3.6.4 and my browsers web pages only display in a narrow column in the centre of my screen.

    I have just updated to 3.6.4 and find that my browser web pages only display in a narrow column in the centre of my 16 inch screen.
    How can I stretch the web pages to fit my screen ?
    == This happened ==
    Every time Firefox opened
    == After ungrading to Firefox 3.6.4

    Set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to <i>false</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • My home page only displays computers and settings icons. No other icon. How can I get other icons?

    My home page only displays computers and settings icons. No other icon. How can I get other icons?

    Looks like a sudden error being thrown up on many ATV2 units.  Yesterday, mine was fine and today I now only have 2 icons like so many other posters.
    No amounts of restarts or restores, disconnecting and reconnecting power, restarting routers, re-logging in to iTunes has any effect at all.

  • Google images shows 2,400,000 image results but only displays 3,000- NOT a preference issue- why/how to fix

    When accessing image searches, such as "typographic resume" I get an insanely large result such as 2,470,000 images. However, after about 3,000 results they stop showing without a notification that similar results have been removed. I have my preferences set as high as they go- it is not an issue. How can I adjust/fix this to show ALL results as I approach them, or the option to load more.
    Thanks in advance!

    Hello twdockery,
    Thanks for contacting Mozilla Support. I think what Chandan_Baba was trying to say is our browser only displays the results that Google gives us. There are no settings in the browser that would limit the amount of search results that you can see.
    I would recommend posting your question to google's support. They have a page [https://support.google.com/websearch/troubleshooter/3425345?&ref_topic=3285072#ts=3502652 here] to report issues with Image searches.
    Cheers,
    Patrick

  • How do I get the top links in the search results page to display the folder?

    In the search results page, if you click on the top link from each result, it only brings up the description. Not much use as a link, so was wondering how you display the folder from this link.

    Is this for the general public or just for you?  If it is for the general public then insert this code at the top of the page:
    <TITLE>---</TITLE>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </HEAD>
    And also at the end of the file after the closing body tag:
    </BODY>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </HEAD>
    </HTML>
    It is unorthodox but it works.

  • JSF page initiatty displaying partially

    I have a couple of jspx pages in my application. Page one is having go link to navigate to the page two. The page two have around 100 adf components.
    when I am navigating from page one to page two, the page two is rendering slowly. What I mean is initially I can see the page with only few components and remaining components are getting displayed after few seconds.
    Is there any way to to stop showing page to the user until its fully rendered?

    User,
    Are the components that are not displaying initially af:table by any chance? Tables are (by default) rendered in a "two-pass" mode that you can control by changing the "contentDelivery" property to "immediate"
    Otherwise, do you know where the delay originates? Is the delay in your browser's rendering of the page (not much you'll be able to do with that)? Describe the second page for us a bit better - maybe that will provide some clues.
    Not sure that a glasspane is going to help you here, however.
    John

  • On website. Crystal report only displays partial report..

    Using vs2008 with all the updates and sp's/
    ASP.net vb.net
    I have crystal reports loading in a aspx page.
    Problem is... In development, When I run a report I can see the full toolbar graphics. report displays correctly.
    When the website is installed. Some of the reports only show a 2x3 inch area.
    The website is installed on my development machine.
    The same aspx page shows several reports.. some of the reports show up full page while others only render a small area.
    When I try to print the report, it also shows very small pages...
    Has anyone heard of this?

    WOW!
    I found the freaken answer..
    Apparently when the report was created, a printer that was default was a label printer. So no matter what I did, it would always size itself on the web to that label size.
    The solution to this problem is to right click on the form, select designer, printer settings and check "no printer"
    After doing that and redistributing the reports, it work like a piece of cake on the web.
    Have spent 6 months looking for this answer and finally found it on my own..
    I am surprised no one else has had this problem.  Maybe I am just dumb.

  • When opening files in Photoshop CC, it only displays partial image. How do I get it to display the entire image on open?

    I understand that people want to check the quality of the image when they open it, but I hate that I'm looking at the top left of every image when I open it. It's not maximizing the size of the image based on my screen size. I hate having to hit apple-0 every time I open a file. Where's the preference to change this??!

    What you see is not normal on a PC I do not know abouts Mac's.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • A twist on only getting 20 records at a time

    Hi,
    Goal:
    Generate a search-engine like result page which displays 20 records at a time. Clicking "Next" will permit viewing the next 20 records, and so on.
    Current code:
    A JSP page posts a form to a servlet which, based on form selections, dynamically builds a SQL statement, which in turn is passed to a Bean which queries the DB and returns ALL records. Works great, but returns too much data for a web page (JSP).
    Problem:
    I have posted on the JSP forum, and have only been pointed to sites offering Custom JSP Tags which either query all records at once and only show you X at a time, (which I consider inefficient) or place the JDBC/SQL code in the JSP page, which I don't like either. So....
    Question:
    How do I achieve this? I have tried playing with the getMaxRoxs() and setFetchSize() methods to no avail. I am relatively new to this, but I think it has a lot to do with how JSP pages instantiate Beans (I.E: Every time the page loads, the bean is instantiated and all records are returned).
    Any help is greatly appreciated! I have tried so many things and searched the web, but have not found any concrete examples with code.
    - J

    My proposal was smth like this:
    ArrayList myData = new ArrayList();
    while (rSet.next()) {
        MyObjType myObj = new MyObjType(...);
        int i = 0;
        myObj.setAttribute1(rSet.getXXX(++i)); // getXXX is the proper method for the type of myObj.attribute1
        myObj.setAttribute2(rSet.getXXX(++i)); // getXXX is the proper method for the type of myObj.attribute2
        myObj.setAttributen(rSet.getXXX(++i)); // getXXX is the proper method for the type of myObj.attributen
        myData.add(myObj);
    session.setAttribute("myData", myData);
    ...Here MyObjType is the type (class) designed by you to hold one record of your result set. Example:
    For the
    TABLE BOOK
    ID NUMBER(10)
    TITLE CHAR(30)
    PRICE DECIMAL(2, 12)
    AUTHOR_ID NUMBER(10)
    Your MyObjType class will be probably named Book and will look like this:
    public class Book {
        private long id = -1;
        private String title = null;
        private double price = Double.NaN;
        private long authorId = -1;
        public long getId() {
            return this.id;
        public void setId(long id) {
            this.id = id;
        public long getAuthorId() {
            return this.authorId;
        public void setAuthorId(long authorId) {
            this.authorId = authorId;
        public String getTitle() {
            return this.title;
        public void setTitle(String title) {
            this.title = title;
        public double getPrice() {
            return this.price;
        public void setId(double price) {
            this.price = price;
    }So, you have an ArrayList of Book objects stored in your session object. Now you receive a request like this:
    gimmemydata?rowsfrom=20&rowsto=40
    Your JSP does just:
    <%
    ArrayList myData = (ArrayList) session.getAttribute("myData");
    int rowsFrom = -1;
    int rowsTo = -1;
    try {
        rowsFrom = Integer.parseInt(request.getParameter("rowsfrom"));
        rowsTo = Integer.parseInt(request.getParameter("rowsto"));
    catch (Exception ex) {;}
    if (rowsFrom < 0 || rowsTo < 0) {
        rowsFrom = 0;
        rowsTo = 20;
    %>
    <table>
    <%
    for (int i = rowsFrom; i < rowsTo; i++) {
        Book book = (Book) myData.get(i);
    %>
    <tr>
      <td><%= book.getTitle() %></td>
      <td align="right"><%= book.getPrice %></td>
    </tr>
    <%
    %>
    </table>
    ...It is as easy as that...
    Sorry, the closing brackets of the tags look a bit funny :-)

  • Database displaying all records when no records are in database

    SEARCH PAGE:
    <form id="searcMennuu" name="searcMennuu" method="post" action="VehicleListing.php">
    <select name="vehicles" id="vehicles">
    <option value="allCars" selected="selected">ALL</option>
    <option value="Sedan">Sedan</option>
    <option value="Jeep">Jeep</option>
    <option value="Motorbike">Motorbike</option> </select> <input name="radioVehicle" type="radio" id="searchSale" value="searchSale" />
    Vehicles for Sale</label>
    <label>
    <input type="radio" name="radioVehicle" id="searchRent" value="searchRent" />
    Vehicles for Rent</label> <input type="submit" name="searchButton" id="searchButton" value="Search" />
    </form> RESULTS PAGE:
    mysql_select_db($database_ddd, $ddd); $query_rsTest = "SELECT `year`, `model` FROM vehicles";
    if (isset ($_POST ['vehicles'])) {
    $parSearch = mysql_real_escape_string ($_POST['vehicles']);  if($_POST['vehicles'] == "Sedan"){
    $query_rsTest.= " WHERE vehicle_type LIKE '%$parSearch%'";
    } $rsTest = mysql_query ($query_rsTest, $ddd) or die(mysql_error());
    $row_rsTest = mysql_fetch_assoc ($rsTest);
    $totalRows_rsTest = mysql_num_rows ($rsTest); <div class="showPage"><?php echo $totalRows_rsTest ?></div><?php do { ?>
     <?php if ($totalRows_rsTest > 0) { // Show if  recordset not empty ?> 
    <div class="output" id="Results">
    <p><?php echo $row_rsTest['year']; ?></p>
    <p><?php echo $row_rsTest['model']; ?></p>
    </div>
    <?php } // Show if recordset empty ?>
    <?php } while ($row_rsTest = mysql_fetch_assoc($rsTest)); ?> 
    1. I think i found out why the hide region is not working, whenever i search for something that is not in my database or does not satisfy my search criteria the results page is displaying all records in the database. However i don't know how to fix that. Can someone please help me?
    2. Also i'm trying to find out how i would display ALL vehicles in my database either for rent or sale, i dont have a field in my database for "ALL" so i'm not sure where to start. Thanks in advance

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • MSN only displays text. Firefox IE both. Rebooting router/modems corrects the problem for awhile.

    Everything runs great for a few weeks and the right out of the blue MSN home page only displays partial imiages and the rest of the imiages display text only. Rebooting the modem and router and desk top corrects the problem for a couple of weeks. Help.

    Something that only occurs every few weeks is going to be hard to debug.
    Next time it happens, could you try reloading the page bypassing cached pages? You can do that using Ctrl+Shift+r to force a full reload from the server. If that works, then most likely some files in Firefox's cache became corrupted.
    Not sure why you would simultaneously have the same issue in IE, though. Hmmm...

  • Forms builder- only displays records created in the form builder?

    Hi there. I am new to Oracle and forms builder. I just have a query. I have created a form and when I run the form, it doesnt display the data out of my database. I can add a new record using the form and it will add it to my database:
    >
    STUDENTI FIRSTNAME LASTNAME GENDER DOB
    ADDRESS SUBURB PHONE
    20737785 Lock McIntyre Male 28-DEC-88
    384 Waterfall Gully Rosebud 0359811618
    20784939 Tim Carley F 20-FEB-89
    20 Armstrong Rd McCrae 0359811310
    20837785 LAchlan McIntyre M 28-DEC-09
    Hello Hell 5981131803
    >
    But it will only display the records that I have added using the form. Example, the first two records above were already in the database. I couldnt view them ith the form, but then I added the bottom record and I could only view that record in the form, but not the others.
    Any ideas why? I think I just dont know how to use the forms builder properly. Many thanks

    Forms starts with an empty screen(no records), only when you execute a query, the records are retrieved from the database.
    This can be done by executing the "execute_query" command.
    This can be done by pushing the button in the toolbaar, choosing the menu item, hitting the function key.
    But it can also be done programmatically in forms code(in a trigger).
    I hope this helps...

  • RSRT query execution result page

    Hi experts,
    I used transaction rsrt/rsrt2 to execute a query and found that when I clicked the icon for next row,it went to next 18 records by default, in the next page I even found some records which are also displayed in first page.
    Is there any way I can set to only display new records in next page instead of including records in first page?
    I can use Bex analyzer to implement this but I just wonder is it possible to realize this in rsrt/rsrt2?
    Thanks.
    Best regards
    Fanchest

    Hi,
    In RSRT, select your report and then in Query Display = List or BEX Analyzer and the execute the report the it will display output na dit won't show any duplicates.
    Thanks
    Reddy

  • Go Directly to Career Path 'Results' Page in E-Recruiting (Unreg Search)

    Hi,
    I am working on the E-Recruiting Unregistered Search Page.
    As a default, the Search Criteria page appears as a first page. When the user does the required selection and presses 'Start Search', he is shown the results page with the required record set.
    We are trying to go directly to the end-results page and wish to do away with the search criteria page.
    Can anyone help on this one please!
    What I have studied untill now is that when we reach the search criteria page, the system keeps the stack of all the Controllers that it needs to call in order to display the page. After this it moves that stack to the cookie.
    When the user presses the 'Start Search' button, the event 'Search' is triggered and the stack from the cookie is retrieved. And based on the check, whether the event was triggered or not, the additional Controllers are added to the stack and the results page appears.
    Now my question is; can we trigger this event dynamically? If yes, then how. What needs to be done in order to just pass through the search criteria page as if it does not exist at all...?
    I would highly appreciate if anyone of you could throw some light on this issue...!!
    Thanks & Regards,
    Sanjiv Tyagi

    Well doing this is quite hard.
    I would recommend skipping TREX search at all.
    Make a BSP containing just the result list. Build up your hitlist manually from database, if there is no search, instead using TREX.

  • How can I display all records as a end user?

    I am applying for jobs with the state and every week they publish a list of new positions that have just been posted on the following link: https://forms.spb.ca.gov/bulletins/weekly.cfm
    and also at http://jobs.spb.ca.gov/wvpos/search_p_ejv.cfm?classcode=5393&criteria=associate%20governme ntal
    It is a .cfm but only displays 15 records at a time, I was wondering if there is a tag or way to have it display all 300 something records at once?  My ultimate goal is to get just the full table into a excel spreadsheet while retaining the HTML formatting so the links still work.
    My thought is that the state has set it up this way to only display a set number of records at a time, the data is not private or protected, I am simply seeking a easier way to access it in aggregate.
    Thank you in advance for your suggestions and help!

    I think your best hope is to ask the author of the CFM whether they provide any web service that can get you that data when you call it.  like.
    https://forms.spb.ca.gov/webservice.cfc?method=getJobsPostings&key={key_goes_here}
    There's a chance they may be regulating performance on the resultset, and don't want to return that many records at a time, pagination or not.

Maybe you are looking for

  • Copy and Paste Have Stopped Working!

    All of a sudden, it's like a switch has been thrown: I can't copy and paste between applications, or even within an application. I've tried to use Edit->Copy and Edit->Paste, rubber-banding and dragging, and even Apple-C and Apple-V, all to no avail.

  • My Yahoo toobar changes my apps when I reboot my computer. Why.?

    When I start up and open Firefox I notice that my Yahoo toolbar has changed to apps that I do not want. The toolbar has been the same for several months and all of a sudden it changes daily on me.

  • AD-OID authentication. Spaces characters in domainrule

    Hi, I am test WNA between OIA and Window AD. In windows there is a folder whose name is Users. Initially i set the domainrule to DomainRules cn=users,dc=xxx,dc=yyy,dc=com:cn=users,dc=xxx,dc=yyy,dc=com When running a bootstrap this pulls all the users

  • Java.io.IOException: Not enough files, skip(42225498) failed

    dear expert, During the migration of SAP CRM, on phase - Import Java dump, the following error occurs: Apr 21, 2008 12:18:45 PM com.sap.inst.jload.Jload logStackTrace SEVERE: java.io.IOException: Not enough files, skip(42225498) failed         at com

  • Export iphoto problems

    When I try to export photos to a jpg format, I always get the message that it can't create/find the folder. Any ideas?