Trouble displaying recordset

I have created a database with Dreamweaver but I seem to have issues around the recordset even after following the instruction step-by-step. But when I load everything to my server and search, the table comes up with no results in it. I had put 5 entries into my database on phpMyAdmin; the search shows up fine when I test the recordset in Dreamweaver, but when it's online and I search, it's just a blank table on the results page. I have tried everything under the sun to resolve this issue to no avail. I have set up a search page and results page. Here is the coding for search:
<form id="form1" name="form1" method="post" action="pplresults.php">
  <div align="center">
    <label for="people finder">People Finder</label>
    <input type="text" name="people finder" id="people finder" />
    <input type="submit" name="search" id="search" value="Search" />
  </div>
</form>
Here the coding for the results page:
<?php require_once('../Connections/rescue.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_rsppleresults = 10;
$pageNum_rsppleresults = 0;
if (isset($_GET['pageNum_rsppleresults'])) {
  $pageNum_rsppleresults = $_GET['pageNum_rsppleresults'];
$startRow_rsppleresults = $pageNum_rsppleresults * $maxRows_rsppleresults;
mysql_select_db($database_rescue, $rescue);
$query_rsppleresults = "SELECT missing_name, `description`, picture_upload, missing_person_form.missing_name, missing_person_form.`description`, missing_person_form.picture_upload FROM missing_person_form";
$query_limit_rsppleresults = sprintf("%s LIMIT %d, %d", $query_rsppleresults, $startRow_rsppleresults, $maxRows_rsppleresults);
$rsppleresults = mysql_query($query_limit_rsppleresults, $rescue) or die(mysql_error());
$row_rsppleresults = mysql_fetch_assoc($rsppleresults);
if (isset($_GET['totalRows_rsppleresults'])) {
  $totalRows_rsppleresults = $_GET['totalRows_rsppleresults'];
} else {
  $all_rsppleresults = mysql_query($query_rsppleresults);
  $totalRows_rsppleresults = mysql_num_rows($all_rsppleresults);
$totalPages_rsppleresults = ceil($totalRows_rsppleresults/$maxRows_rsppleresults)-1;$maxRows_rsppleresults = 10;
$pageNum_rsppleresults = 0;
if (isset($_GET['pageNum_rsppleresults'])) {
  $pageNum_rsppleresults = $_GET['pageNum_rsppleresults'];
$startRow_rsppleresults = $pageNum_rsppleresults * $maxRows_rsppleresults;
$colname_rsppleresults = "-1";
if (isset($_POST['missing_name'])) {
  $colname_rsppleresults = $_POST['missing_name'];
mysql_select_db($database_rescue, $rescue);
$query_rsppleresults = sprintf("SELECT missing_name, `description`, picture_upload FROM missing_person_form WHERE missing_name LIKE %s", GetSQLValueString("%" . $colname_rsppleresults . "%", "text"));
$query_limit_rsppleresults = sprintf("%s LIMIT %d, %d", $query_rsppleresults, $startRow_rsppleresults, $maxRows_rsppleresults);
$rsppleresults = mysql_query($query_limit_rsppleresults, $rescue) or die(mysql_error());
$row_rsppleresults = mysql_fetch_assoc($rsppleresults);
if (isset($_GET['totalRows_rsppleresults'])) {
  $totalRows_rsppleresults = $_GET['totalRows_rsppleresults'];
} else {
  $all_rsppleresults = mysql_query($query_rsppleresults);
  $totalRows_rsppleresults = mysql_num_rows($all_rsppleresults);
$totalPages_rsppleresults = ceil($totalRows_rsppleresults/$maxRows_rsppleresults)-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>Untitled Document</title>
</head>
<body>
<table width="600" border="1">
  <tr>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_rsppleresults['missing_name']; ?></td>
      <td><?php echo $row_rsppleresults['description']; ?></td>
      <td><?php echo $row_rsppleresults['picture_upload']; ?></td>
    </tr>
    <?php } while ($row_rsppleresults = mysql_fetch_assoc($rsppleresults)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($rsppleresults);
?>
Maybe someone here can help. Thank you in advance for your assistance. J

New issue: I was able to get my recordset to display properly with the help Gramps! Once again, thank for your input!  Now the only field that is not pulling up the data correctly is the picture field.  The database (PHP MyAdmin) is set as followed:
Field: picture_upload
Type: TinyBlob
Length/Values:
Default: NULL
Collation:
Attributes: Binary
Null: Checked
Auto_Increment:
Comments:
MIME type: image/jpeg
Browser transformation:
Transformation Options:
It appears that the picture is being stored in a separate file on the server.  And the only thing being displayed is the name of the jpeg. Any suggestion would be greatly appreciated.  The end result that I would like to achieve is have the picture match up with the data that was entered.   I also want to put a limit on the size of the photo being uploaded (125 X 125).  But first things first the picture need to be displayed.

Similar Messages

  • Trouble displaying icon on push button in 6i Forms

    Hi,
    I'm having trouble displaying an icon on a button at both design and run times. I'm using Forms 6i with client/server enviornment. I have tried to follow several forums regarding icon setup and the Whitepaper articles. I have tried different suggestions but am still unable to get the icon. Here's my latest attempt:
    1. Copied .jar file to C:\Oracle_Developer_9i\forms90\java folder
    2. Modified formsweb.cfg (in the serverApp=default section) and included the following:
    archive_jini=f90all_jinit.jar,myAppIcons.jar
    imagebase=codebase
    3. In button's properties I set:
    iconic = 'Yes'
    icon filename = C:\Oracle_Developer_9i\forms90\java\myAppIcons.jar
    My guess is that I didn't copy the icon files (from the .jar file) correctly. As suggested in the Whitepaper, I don't have the c:\ myApp\ icons directory. I did a search for an icon directory and found multiple icons folders (due to other oracle projects installed on my pc) but don't know which one to use. Being that I'm using 6i and the instructions were for 9i I didn't know if the directory/folder name is different. Is there another directory/folder (using 6i) where I should copy all the .gif files from in addition to storing the .jar file in the C:\Oracle_Developer_9i\forms90\java directory?
    Also, I feel that I'm not calling it correctly from the location in step 3. Being that the icon exists in the jar file, how would I reference it within the file? Does anybody have any suggestions? Any help would be greatly appreciated.
    Thank you,
    Eric

    Robin,
    I tried your suggestions but am still unable to view the icon. Here's what I now have tried.
    1. I've created UI_ICONS in the windows registry under the form's oracle home and am calling c:\icons from that variable.
    2. In c:\icons, I copied the .jar file's contents (search.gif) into this folder. This is where I may have a problem in addition to my next step in calling the filename. You mentioned in your first post to put my .ICO files there. Should I rename my .gif to .ico? Not sure if I followed you there.
    3. In the button property, I set icon = yes and icon filename = c:\icons\search.gif -- Not sure if I used the right syntax for the filename. I've tried renaming it to .ico and it still does not display.
    Sorry about all the questions but I really appreciate your help. Do you see anything else that I did that may cause it to not display?
    Thanks again,
    Eric

  • Trouble displaying JSP document in IE

    I am having some trouble displaying a JSP version 2 document in IE (though everything works fine in Mozilla).
    All my jsp docs start off as follows:
    <jsp:root version="2.0"
        xmlns:jsp="http://java.sun.com/JSP/Page"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
        xmlns:sql="http://java.sun.com/jsp/jstl/sql"
        xmlns:x="http://java.sun.com/jsp/jstl/xml"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions">
        <f:view>
         <f:verbatim><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]></f:verbatim>
         <html xmlns="http://www.w3.org/1999/xhtml" lang="en">Firstly, IE refuses to show the file offline because it can't retrieve the dtd in the doctype for validation. Is there any way to work around this? Either by turning it off or by downloading the file to a local location?
    When I am online (or remove the Doctype declaration) IE displays the file as XML rather than XHTML as the doctype suggests. Does anyone know what is up with that?
    Thanks in advance for any help!

    not sure what's ur req...but the kind of displaying the order numbers in basic or sec list and then navigating to change/display tcode of the order is easy using HIDE in AT LINE-SELECTION with combination of
    SET PARAMETER ID pid FIELD f. and then
    CALL TRANSACTION xyz AND SKIP FIRST SCREEN .
    RB.

  • PSE has trouble displaying .jpg or .psd files

    I just upgraded from PSE ver 5 to PSE ver 8.  For some reason, ver 8 has some trouble displaying some .jpg and .psd files in the editor.  .nef files (raw) are no problem.  Some of the .jpg/.pse files display as a 'broken file" image, or are blurry if I double click them in editor..  If I right click on the image and go to edit, I am able to edit it and save it, but the resulting saved file may or may not be displayed.  Attempts to add unmanaged files to the catalog have not helped.  Any suggestions?

    No, filter uses the jpgs AFAIK. They are in Photoshop too. They are seamless so you could use them as is and define them as patterns; then again you can also use the PSD files to make patterns. The grass jpg is a good one to turn into a pattern.
    If you want to use them with the filters that require PSD files just save a copy of each in PSD file format. You might also think about making them black and white so you can tinker with how they will apply the texture. (White is high; black is low; 50% gray is neutral. Colors act as shades of gray so black and white might help you better predict what the result will be.)

  • Trouble displaying PDF's

    I'm experiencing trouble displaying PDF's from www.naga.net/Pages/naga.htm
    (specifically
    http://www.naga.net/Docs/NAGA43%20Registration%20Form%20R2.pdf
    and
    http://www.naga.net/Docs/TBR%20Transportation.pdf
    It works in Safari!

    Your plugins list shows outdated plugin(s) with known security and stability risks.
    # Java 1.3.1 Plug-in
    # Shockwave Flash 10.0 r12
    Update the [[Java]] plugin to the latest version.
    http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
    Update the [[Flash]] plugin to the latest version.
    http://support.apple.com/kb/HT2312 - About Java 2 Platform Standard Edition (J2SE) 5.0 Release 1 for Tiger
    http://support.apple.com/kb/DL847 - Java for Mac OS X 10.4, Release 9
    http://support.apple.com/downloads/Java_2_SE_5_0_Release_1

  • Having trouble displaying a JPanel on a JFrame

    Hello all,
    I'm fairly new to Java and I am having trouble displaying a JPanel on a JFrame. Pretty much I have a class called Task which has a JPanel object. Everytime the user creates a new task, a JPanel with the required information is created on screen. However, I cannot get the JPanel to display.
    Here is some of the code I have written. If you guys need to see more code to help don't hesitate to ask.
    The user enters the information on the form and clicks the createTask button. If the information entered is valid, a new task is created and the initializeTask method is called.
    private void createTaskButtonMouseClicked(java.awt.event.MouseEvent evt) {                                             
        if (validateNewTaskEntry())
         String name = nameTextField.getText().trim();
         Date dueDate = dueDateChooser.getDate();
         byte hourDue = Byte.parseByte(hourFormattedTextField.getText());
         byte minuteDue = Byte.parseByte(minuteFormattedTextField.getText());
         String amOrPm = amPmComboBox.getSelectedItem().toString();
         String group = groupComboBox.getSelectedItem().toString();
         numberTasks++;
    //     if (numberTasks == 1)
    //     else
         Task newTask = new Task(mainForm, name, dueDate, hourDue, minuteDue,
             amOrPm, group);
         newTask.initializeTask();
         this.setVisible(false);
    }This is the code that I thought would display the JPanel. If I put this code in anther form's load event it will show the panel with the red border.
    public void initializeTask()
         taskPanel = new JPanel();
         taskPanel.setVisible(true);
         taskPanel.setBorder(BorderFactory.createLineBorder(Color.RED));
         taskPanel.setBounds(0,0,50,50);
         taskPanel.setLayout(new BorderLayout());
         mainForm.setLayout(new BorderLayout());
         mainForm.getContentPane().add(taskPanel);
    }I was also wondering if this code had anything to do with it:
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new AddTaskForm(new MainForm()).setVisible(true);
        }As you can see I create a new MainForm. The MainForm is where the task is supposed to be drawn. This code is from the AddTaskForm (where they enter all the information to create a new task). I had to do this because AddTaskForm needs to use variables and methods from the MainForm class. I tried passing the mainForm I already created, but I get this error: non-static variable mainForm cannot be referenced from a static context. So to allow the program to compile I passed in new MainForm() instead. However, in my AddTaskForm class constructor, I pass the original MainForm. Here is the code:
    public AddTaskForm(MainForm mainForm)
       initComponents();
       numberTasks = 0;
       this.mainForm = mainForm;
    }Is a new mainForm actually being created and thats why I can't see the JPanel on the original mainForm? If this is the case, how would I pass the mainForm to addTaskForm? Thanks a ton for any help/suggestions!
    Brian

    UPDATE
    While writing the post an idea popped in my head. I decided to not require a MainForm in the AddTaskForm. Instead to get the MainForm I created an initializeMainForm method.
    This is what I mean by not having to pass new MainForm():
        public static void main(String args[])
         java.awt.EventQueue.invokeLater(new Runnable()
             public void run()
              new MainForm().setVisible(true);
        }Even when I don't create the new MainForm() the JPanel still doesn't show up.
    Again, thanks for any help.
    Brian

  • Having trouble displaying the Logged in Customer details.  The customer is able to register himself

    Having trouble displaying the Logged in Customer details.  The customer is able to register himself to my site but when he enters his username and password I don't know how to display the welcome username message and switch the login link to logout. Even afte the customer is logged in it still shows login. Please look at the image for more details.

    Thanks Sidney, that worked........I tried to change the css style of make the log out link to stay in same horizontal line as the Logged in but I can't.(Please see the image) Is it the module that is designed to work this way???
    And one more .....is there a way where I can change the message "No one logged in" to say LogIn.
    Thank you

  • Having trouble displaying small image in Cart

    Hello everyone. I have been having trouble displaying the small image in my cart. I know that the image is there, yet it wont display. Any help would be appreciated. Thanks
    http://www.highestgoodclothing.com/men/stl-tee

    .productitemcell { }
    That in your css has no height.
    Add height:auto; to your code.

  • Trouble displaying Period Depreciation in query against cube 0FIAA_C02

    Hello,
    I'm quite familiar with writing queries, however and I'm having trouble displaying "Period Depreciation" in a query against cube 0FIAA_C02.
    All charactertistics and most of the the key figure values appear with values displayed in the query....however any key figure that is to be related to "Period Depreciation" displays a zero.
    Any thoughts on how I can display "Period Depreciation" from this cube?
    Jim

    Hi,
    is the field "Period Depreciation" added to the cube or was it already in the business content ?
    If it was added you can check if the value for "Period Depreciation" is correctly filled from within the update rule to the cube.
    regards,
    Raymond Baggen
    Uphantis bv

  • Trouble displaying A drop down list in Contribute

    I am having trouble with a client that has downloaded Contribute onto their windows computer. The page in question contains a drop-down  nav- bar which I coded using CSS. I have had the page certified by W3 CSS and the html also went through at 100%. It displays perfectly in all browsers and also in my version of Contribute 6.5. My client is also running the same version of Contribute, however the drop-down menu won't render properly in their version of contribute unless they try to edit the page. This is a problem because they rely on the navigation bar to navigate the site for editing. On their version of contribute the navigation bar appears as a lengthy unordered list instead of a smooth drop-down list which appears on all other browsers and versions of Contribute. I have changed the name of the CSS file and its location several times. This hasn't solved the issue. Any suggestions please???

    Hi Dominic,
         Thanks for showing interest.
    I spoke to Adobe staff today who were very helpful. They put it down to a bad installation of Contribute. I have suggested to the client to clear the cache and reinstall Contribute tomorrow morning. IE is working fine on my clients machine and shows the page correctly. I will keep you posted on how it goes.
    This is how it displays on the same version of Adobe Contribute on my Mac and all browsers.

  • Trouble displaying my late 2011 MacBook Pro on my 2009 24" iMac

    I tried to use a thunder bolt cable from thunder bolt port on my MacBook Pro to the iMac's Mini DisplayPort. No response when using the command F2. The thunderbolt cable doesnt fit as snug in the iMac which was the first sign of trouble. Any suggestions or tips on how to go about displaying the Imac?

    About Batteries in Modern Apple Laptops
    Apple - Batteries - Notebooks
    Extending the Life of Your Laptop Battery
    Apple - Batteries
    Determining Battery Cycle Count
    Calibrating your computer's battery for best performance
    MacBook and MacBook Pro- Mac reduces processor speed when battery is removed while operating from an A-C adaptor
    Battery University

  • CS6 - Trouble displaying Flash video in Web pages

    Hi,
    Here's my problem: I embedded .flv videos in HTML pages the same way I've been doing it for years. It worked fine until I moved to CS6.
    The last video clips were edited and encoded in Flash format (1024x576 for 1800 bps) in Premiere CSS6 then embedded in HTML pages in DW CS6 after creating the .swf files with Flash CS6. All CS6, no compatilbity problems then.
    Once onlie, they fail to display properly, i.e. you have to click a couple of times on the Start/Pause button and occasionally refresh the page to be able to view the video. It's works fine once started but the trouble is getting it to start automatically.
    There's over 300 videos ranging from a few seconds to about 15 min on this site, and this is the very first time I come across this kind of problem.
    Any suggestion?
    Here's on of the old videos: http://www.aquiceara.com/UK/Video/Bresil_Maranhao_Survol_Lencois.html
    And here's one of the CS6 "troublesome" videos: http://www.aquiceara.com/UK/Video/Chine_HK_Tai_Hang.html

    The answer is to exactly copy the code from the CS5.5 and below versions of Dreamweaver.
    Bu Nancy is correct. Everyone is moving to other standards for video on websites. Nancy generally recommends Pickle Player and I have been hand-coding using the HTML5 standards. I have generally found that all videos play in all browsers using the new standards, though you do have to support OGG and WEBM video files on your server.

  • Trouble with recordsets

    ok so i must first start off by saying that i am pretty new
    to Mysql and PHP. i am building an event calendar. i have
    successfully used the recordsets in dreamweaver to recall data from
    my database and display it in order from newest event to oldest.
    the thing i cant figure out is how to filter the data to only show
    todays events.

    cornbread pete wrote:
    > i set up mySQL database with my hostgator cpanel, but i
    cant find
    > anything that lets me make a table in the database.
    Assuming it's actually CPanel, click on MySQL Databases.
    At the bottom of the page it should say MyPHPAdmin. Click on
    it.
    Select your database at the left.
    At the bottom of the page is: "Create new table on database"
    Add a table and then create and set up the fields you need.
    MD

  • Data base panel not displaying recordset info

    I am using dreamweaver cs4 running on i mac
    Problem
    the descriptions in my database panel are not displaying on the bindings tab the recordsets just abreviate to "reco" and when I expand a record set all I see is the llighting bolt
    I want to be able to view full record set name and table names how do I do this ?
    Thank you

    Hi
    The first thing to do is to click the 'refresh' button on the r/h side of the databases panel.
    If this does not work, look in the folder on your testing server where your php files are stored for a folder named - _mmServerScripts and delete it.
    The file path would be something like - yourdrive - htdocs - sitefoldername - _mmServerScripts.
    Close DW and then restart DW, and a new folder by that name will be created, along with the files that dreamweaver requires to communicate with the server, (warning - never alter the files in this folder). Should this not work then it may be a problem with your DW installation, php configuration or MySQL permissions.
    PZ

  • DW CS4 Not Displaying Recordset Fields

    I have created a database connection to an MS SQL database
    and binding and was trying to display the records as the repeated
    rows in a table. Through much testing I have found that the only
    way I can get the values from the various fields to show is to
    order the fields in the same fashion that the binding returns them.
    If I put them in any other order, only some fields show up. The
    fields are a mix of integer and nvarchar. This all worked fine
    under DW MX2004. Apparently something has changed and I don't know
    what it is.
    The attached code shows only the first two fields. If you
    reverse the second and third fields, all three fields will display.
    Can anyone enlighten me as to what has changed and what to do to
    resolve this issue??
    Thanks,
    Keith Bobick

    Walt F. Schaefer wrote:
    > I thought CS4 dropped ASP support. No?
    No DWCS4 did not drop ASP support. You can see what was
    dropped here:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS2C41F19D-502B-4fb5-8A54-4442E2127C84a .html
    To answer the OP, if you created the recordsets in DW8 or
    DW8.0.1 and not in DW8.0.2 then it may be due to the change in
    recordset code for ASP. If you still have the 8 or 8.0.1 installed,
    then you may be able to upgrade to 8.0.2 then inspect your
    recordsets and have them update to the "new" recordset code. You
    can check your version by going to Help -> About Dreamweaver. If
    you click on the about screen once (or wait until the scrolling
    credits stop) you should see the version number. You can get the
    updater here:
    http://www.adobe.com/support/dreamweaver/downloads_updaters.html
    If this is not the fix for you, then it may be that the code
    in the recordsets aren't being recognized for some reason, and you
    may need to post the code for your recordsets (and perhaps other
    code from the page) so that someone can look through the code to
    see what might be the issue.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

Maybe you are looking for