Data fails results page display with msdb

I am using Dreamweaver 8 with ASP VB Script. IIS and localhost.
I have a search page, a database and a results page.
I have set up a search page with this code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!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=iso-8859-1" />
<title>Key Word Search</title>
<style type="text/css">
<!--
body {
            background-color: #000000;
.style1 {
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;                                                                             
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
//-->
</script>
</head>
<body>
<form action="data_base_results.asp" method="get" name="search" target="_blank" id="search">
  <div align="center">
    <p class="style1">Key Word Search:</p>
    <p class="style1">
      <label>
      <input name="keyword" type="text" id="keyword" value="<%= Request.QueryString("search") %>" size="30" maxlength="30" />
      </label>
      <input name="Submit" type="submit" onclick="MM_validateForm('keyword','','R');return document.MM_returnValue" value="Submit" />
      <input name="Reset" type="reset" id="Reset" value="Reset" />
    </p>
  </div>
</form>
</body>
</html>
The data base is set up and tested OK with the following:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot\sciweb_root\sciencelinkcafe11kj.mdb"
The results page is set up and tested OK using the following code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connSciWeb.asp" -->
<%
Dim rsSearch__MMColParam
rsSearch__MMColParam = "1"
If (Request.QueryString("search") <> "") Then
  rsSearch__MMColParam = Request.QueryString("search")
End If
%>
<%
Dim rsSearch
Dim rsSearch_numRows
Set rsSearch = Server.CreateObject("ADODB.Recordset")
rsSearch.ActiveConnection = MM_connSciWeb_STRING
rsSearch.Source = "SELECT KeyWords, Link, Year FROM Table1 WHERE KeyWords LIKE '%" + Replace(rsSearch__MMColParam, "'", "''") + "%' ORDER BY Year ASC"
rsSearch.CursorType = 0
rsSearch.CursorLocation = 2
rsSearch.LockType = 1
rsSearch.Open()
rsSearch_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
rsSearch_numRows = rsSearch_numRows + Repeat1__numRows
%>
<!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=iso-8859-1" />
<title>Search Results</title>
<style type="text/css">
<!--
body {
            background-color: #000000;
.style2 {
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;
            font-size: 14px;
.style3 {
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;
            color: #FFFFFF;
body,td,th {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 14px;
            font-weight: bold;
a:link {
            color: #000000;
            text-decoration: none;
a:visited {
            color: #000000;
            text-decoration: none;
a:hover {
            text-decoration: underline;
            color: #000000;
a:active {
            text-decoration: none;
#Layer1 {
            position:static;
            width:775px;
            height:25px;
            z-index:1;
            left: 541px;
            top: 270px;
            background-color: #00FFFF;
            color: #000000;
            padding-top: 10px;
.style5 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 14px; color: #000000; }
.style7 {color: #000000}
-->
</style></head>
<body>
<div align="center">
  <p class="style3"> </p>
  <p class="style3">HERE ARE THE RESULTS OF YOUR KEYWORD/S SEARCH: </p>
  <p class="style3"> </p>
  <table border="2" cellpadding="2" cellspacing="5">
    <tr bgcolor="#999999">
      <td width="164" height="40" bordercolor="#FF0000"><div align="center" class="style2">Keyword/s</div></td>
      <td width="164" bordercolor="#FF0000"><div align="center">Year</div></td>
    </tr>
    <% While ((Repeat1__numRows <> 0) AND (NOT rsSearch.EOF)) %>
    <tr>
      <td height="22" bordercolor="#FF0000" bgcolor="#00FFFF"><div align="center" class="style2"><%= LCase((rsSearch.Fields.Item("KeyWords").Value)) %></div></td>
      <td bordercolor="#FF0000" bgcolor="#00FFFF"><div align="center"><%=(rsSearch.Fields.Item("Year").Value)%></div></td>
    </tr>
    <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsSearch.MoveNext()
Wend
%>
  </table>
  <p> </p>
  <table width="853" border="2" cellpadding="2" cellspacing="5">
    <tr bordercolor="#FF0000" bgcolor="#999999">
      <td width="164" height="40"><div align="center" class="style7"><a href="data_base_search.asp" class="style2">Search again </a></div></td>
      <td width="110"> </td>
      <td width="115"> </td>
      <td width="200"> </td>
      <td width="200" height="40"><div align="center" class="style7"><a href="index.html"><span class="style2">Return home </span></a></div></td>
    </tr>
  </table>
</div>
</body>
</html>
<%
rsSearch.Close()
Set rsSearch = Nothing
%>
When the results page is tested the following comes up:
Can anyone help me? Help very gratefully received. Kev

>Yes, I can get a simple ASP page to render
So something that outputs text like
response.write "test"
works fine?
>Should I reinstall IIS7 then?
I would reinstall - the missing exe file is troubling and you need to be able to enable detailed error messages if you have any hope in developing applications. You might be able to configure that via IIS control panel rather than the command line - you'd need to check the IIS forums for more details.
>Is the version of windows and edition OK?
The Windows version you have should be fine. I believe that Windows 7 Home Basic only supports limited IIS7 functionality - no ASP or .NET. But I believe Premium supports it fully.

Similar Messages

  • All web page display with lines, text are stretched and not legible

    all pages are displayed with stretched text, and pictures are also not loaded properly when scroll up and down.
    == This happened ==
    Every time Firefox opened
    == Last update to 3.6.3

    I am having similar problems. Ebay was not displaying correctly until I closed down the browser and restarted. Other websites had the same problem. In Facebook, many links are not working.

  • LineChart data tip won't display with single data point?

    Hi,
    I have a Flex 3 LineChart with LineSeries which use CircleItemRenderer. If there is only a single data point to display, the data tip is not displayed. If there are several data points, each data tip is displayed correctly.
    How can I make the datatip appear correctly with even just one data point? Any workarounds for this problem?
    Quick googling found that I'm not the only person with this problem. A suggested workaround is to use PlotChart instead, but I don't want to go there unless there is absolutely no good way to solve this problem directly.
    http://www.pubbs.net/200911/flex/28102-flexcoders-line-chart-data-tips-dont-display-when-t heres-a-single-data-point.html
    Thanks for any clues!!
    BR,http://forums.adobe.com/people/sikkfgkwwsdfkjkjwjfhjdskj
    sikkfgkwwsdfkjkjwjfhjdskj

    No one wanted to help me but I figured out that I was not referencing the DSN on the test server, only the local DSN. 
    The information to connect to the MSSQL database given by my hosting company was not correct for Dreameweaver (or MS Access) either.

  • Table data needs to be displayed with horizontal and vertical lines

    Hi,
    I need to display the data of the table in the SAP script which is having both horiziontal and vertival lines.
    the out put needs to looks as it in Excel...where there are multiple records with 5 fixed coulmns each seprated from one another by horizonalt and vertical lines..
    Can you let me know how to proceed in SCRIPT ,,,, where the number of records might vary ..and also ..it might continue to second page..
    Regards
    Senthil

    well it is possible but quite tricky.
    All you got in SAP-SCRIPT to achieve this is the BOX-Statement.
    The BOX statement works with variables for XPOS, YPOS, WIDTH and HEIGHT. what you need to do is:
    - calculate those variables during runtime
    - add box-statements with those variables.
    to calculate those variables you need to count used lines and so on. i hope i showed you a way, rest is a lil brainwork then.
    regards

  • Need my custom webauth page displayed with HTTP instead of HTTPS

    I have a custom webauth page installed that I am using with web passthrough authentication on my WLC2006 in order to put up a acceptable use policy page.
    The WLC uses HTTPS to display this which causes a security certificate warning to appear if I go with the WLC's own self-signed certificate. Is there a way I can get the WLC to use plain HTTP to display this page instead so I can eliminate the warning?
    I have already tried installing a trusted 3rd party certificate on the WLC, but I have this very strange problem where mucking with the WLC's web authentication certificate in any manner causes all network activity on the WLC to break except for CDP and ARP, essentially leaving the WLC dead. Three weeks of troubleshooting with Cisco TAC has yielded no progress on that front so now I am trying to bypass the need for a security certificate altogether since I really don't need to encrypt my acceptable use policy page.

    The documentation doesn't provide very clear direction, does it?
    To download the WLC's default webauth page, browse to the controller's Security > Web Login Page. Make sure the web authentication type is Internal (Default). Hit the Preview button. Then use your browser's File > Save As... menu item to save the HTML into a file. Edit this to your liking and bundle it and any graphics images up into a TAR archive, then upload via the controller's COMMAND page.

  • Data Integrator docs page - display issue?

    http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs
    The main page 'frame' shows up twice in both IE and FF on my systems.
    Anyone else able to confirm this?
    Edited by: Hans Forbrich on Sep 13, 2009 11:01 PM

    Yes, I'm seeing that also. I've sent mail to the person who (so I'm told) should be able either to fix it or to bring it to the attention of someone who can fix it.

  • My wordpress page displays with elements covering one another only in Firefox. Chrome and IE are fine if IE is switched to compatibility mode

    I am working on a Wordpress page, theme developed by a custom developer (not me). When we view the page in Chrome and IE it is fine - although we had to modify compatibility settings in IE to get it to look right. In Firefox, we are having the same problem we had in IE before the fix - the boxes in the body of the page are laying under the sidebar items. The page was laid out as a table to allow elements to align properly.
    http://www.whoholdsthecardsnow.com/coaching-2/ is the page we are having problems with. The other pages load fine, so I am assuming that it is the table layout that is causing the problem.
    I don't see any way to attach documents so I can't show you what it is doing for me.
    Help please!

    Adding width:100%; to that image seems to work.
    max-width: 100%; doesn't seem to work in Firefox.
    <pre><nowiki><img class="alignleft size-large wp-image-503" width="1024" height="680" alt="coachingtop" src="http://www.whoholdsthecardsnow.com/wp-content/uploads/2014/07/coachingtop-1024x680.png" style="width: 100%;"></nowiki></pre>

  • Blank page display with IE9 only.

    Have tried all suggestions in on-line list including deleting and loading new reader. No problems displaying stored PDF docs, just web docs.

    try swicthing the monitor from a digital to analog input signal

  • How to stop google search {only on firefox) from the non-stop display of results pages?

    i only want one search results page displayed at a time ! I would rather select the other results pages ( ex; 2, 3,5,8,ect) myself.this doesn't happen w/google on IE?? thanks

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]. Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u '''Use hardware acceleration when available''']. All these settings/options/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme, option or hardware acceleration is causing issues. Disabling/enabling hardware acceleration, and some types of add-ons in normal mode may require a Firefox restart.
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.org/en-US/kb/Options%20window Options]
    You can also consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.

  • Search/Result page is incorrect, result page is blank

    Hello,
    I am designing a website for my work. Iam not very much familiar with coding and dont know what exactly is missing in the code.
    The search page filters the search criteria and on clicking the submit button, redirects to the result page which should display only the rows containing the search criteria. However, it is displaying blank in the result page with only the column names of the queried table (in the recordset)
    The search page code is :
    <?php require_once('Connections/connect.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;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = "SELECT * FROM time_table";
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $totalRows_Recordset1 = $_GET['Class'];
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);$colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    $query_Recordset1 = "SELECT distinct `Class` FROM time_table";
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['Rid'])) {
      $loginUsername=$_POST['Rid'];
      $password=$_POST['textfield'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "index_1 - Copy.php";
      $MM_redirectLoginFailed = "login_2.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_connect, $connect);
      $LoginRS__query=sprintf("SELECT reg_no, password FROM login_table WHERE reg_no=%s AND password=%s",
        GetSQLValueString($loginUsername, "int"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $connect) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TIME TABLE</title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body onsubmit= "registerEvents()">
                                             <form name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
    </form>
                                             <img class="header-image" src="images/logowhite.jpg"  style="float: left" />                    
      <header>
                  <h1><a href="/">CHRIST PRE-UNIVERSITY<span>E-SCHOOL</span></a></h1>
            <h2>EXCELLENCE IS ALL THAT MATTERS</h2>
        </header>
        <div id="body">
            <form name="form2" method="get" action="time.php">
              <p align="center">
                <strong>
                <label for="Rid">
                   <br>
                </label>
                <label for="Rid"><br>
                </label>
                <label for="sid">Class</label>
                <select name="sid" id="sid">
                  <?php
    do { 
    ?>
                  <option value="<?php echo $row_Recordset1['Class']?>"<?php if (!(strcmp($row_Recordset1['Class'], ucwords($row_Recordset1['Class'])))) {echo "selected=\"selected\"";} ?>><?php echo $row_Recordset1['Class']?></option>
                  <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
                $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
                </select>
                <label for="Rid"><br>
                </label>
                </strong></p>
              <p align="center">
                <input name="Submit" type="submit" class="formbutton" id="Submit" value="Submit" >
              </p>
            </form>
            <section id="content">
                  <article></article>
            </section>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    The result page code is:
    <?php require_once('Connections/connect.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;
    }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 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $connect) 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;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class'])) {
      $colname_Recordset1 = $_GET['Class'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>TIME TABLE FOR CLASS</title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body bgcolor="#CCFF99">
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> SCHOOL TIME-TABLE FOR <span> THE CLASS </span></a></h1>
    </header>
      </div>
    <div align="center">
    </div>
        <p align="center"> </p>
    <p align="center"> </p>
        <div align="center">
    <p align="center"> </p>
    <table border="5" cellpadding="15" cellspacing="15">
      <tr>
        <td>Class</td>
        <td>Day</td>
        <td>1st</td>
        <td>2nd</td>
        <td>3rd</td>
        <td>4th</td>
        <td>Room No</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['Class']; ?></td>
          <td><?php echo $row_Recordset1['Day']; ?></td>
          <td><?php echo $row_Recordset1['1st']; ?></td>
          <td><?php echo $row_Recordset1['2nd']; ?></td>
          <td><?php echo $row_Recordset1['3rd']; ?></td>
          <td><?php echo $row_Recordset1['4th']; ?></td>
          <td><?php echo $row_Recordset1['Room No']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    Please help me out.
    Thanks

    Thanks for your help,
    I have created both the pages again, one is a search.php another is result.php
    search.php is only used for accepting a text field which is the input of the search in database table on click of the button, and the result of the search is to be displayed in a dynamic table in result.php.
    The result field again uses a GET variable named 'Class Name', from the form field in search.php. But again, my result Page displays blank except the column names of the table. Please advice.
    search.php
    <?php require_once('Connections/connect.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;
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> TIME TABLE FOR<span> CLASS                           </span></a></h1>
    </header>
      </div>
    <div align="center">
        </div>
        <form name="form1" method="get" action="result.php">
          <p><label>Class Name</label>
          <input name="Class Name" type="text" value="" size="15" maxlength="20">
           </p>
          <p>
            <input type="submit" name="bid" id="bid" value="Search">
          </p>
        </form>
        <p align="center"> </p>
    </body>
    </html>
    result.php
    <?php require_once('Connections/connect.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_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['Class Name'])) {
      $colname_Recordset1 = $_GET['Class Name'];
    mysql_select_db($database_connect, $connect);
    $query_Recordset1 = sprintf("SELECT * FROM time_table WHERE `Class` LIKE %s ORDER BY `Class` ASC", GetSQLValueString("%" . $colname_Recordset1 . "%", "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $connect) 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;
    ?>
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="styles.css" type="text/css" />
    </head>
    <body>
                        <div>
            <img src="images/logowhite.jpg" width="274" height="103" class="header-image"  style="float: left" />                    
    </div>
      <header>
        <h1 align="left"><a href="/"> TIME TABLE SEARCH RESULT FOR<span> CLASS </span></a></h1>
    </header>
      </div>
    <div align="center">
    <table border="5">
      <tr>
        <td>Class</td>
        <td>Day</td>
        <td>1st</td>
        <td>2nd</td>
        <td>3rd</td>
        <td>4th</td>
        <td>Room No</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['Class']; ?></td>
          <td><?php echo $row_Recordset1['Day']; ?></td>
          <td><?php echo $row_Recordset1['1st']; ?></td>
          <td><?php echo $row_Recordset1['2nd']; ?></td>
          <td><?php echo $row_Recordset1['3rd']; ?></td>
          <td><?php echo $row_Recordset1['4th']; ?></td>
          <td><?php echo $row_Recordset1['Room No']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    <p align="center"> </p>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    </body>
    </html>
    I followed these steps from adobe help.
    Thanks.

  • Access query strings in a search results page with custom display template

    am trying to create a  custom display template in my search results page , so i went to download the itemdefault html file and renamed it and  saved as  different file.and  am started to updating.
    the issue i am facing here is : in my  search results page there are 2 query strings, which are passed by anotehr .net appln[ another asp.net appln will be sending the query string to my sp 2013 search results page]
    but, how can i  read these 2  query strings using jslink and  new token _#- ? 
             <!--#_
               var QStringResults= null;
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){ 
    QStringResults= getQuString(); //here am unable to read the QStringResults value 
     _#-->  
    the below is my cstomhtml file
    am unable to  get the values :
                   <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
    <head>
    <title>Item BIF</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">Displays the default result item template.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','CMPBIFURL2':'CMPBIFURL2'</mso:ManagedPropertyMapping>
    <mso:_dlc_DocId msdt:dt="string">X3CVW7PXYF6P-3-222</mso:_dlc_DocId>
    <mso:_dlc_DocIdItemGuid msdt:dt="string">3ed12157-ea19-4591-b9cd-7a826aef35dc</mso:_dlc_DocIdItemGuid>
    <mso:_dlc_DocIdUrl msdt:dt="string">http://srvrname:2013/sites/CMP/_layouts/15/DocIdRedir.aspx?ID=X3CVW7PXYF6P-3-222, X3CVW7PXYF6P-3-222</mso:_dlc_DocIdUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
        <script>
            $includeLanguageScript(this.url,"~sitecollection/_catalogs/masterpage/Display Templates/Search/BIFJScript.js");
        </script>
        <div id="Item_BIF2">
    <!--#_ 
            if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
                var id = ctx.ClientControl.get_nextUniqueId();
                var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default_HoverPanel.js";
                $setResultItem(itemId, ctx.CurrentItem);
    if(ctx.CurrentItem.IsContainer){
    ctx.CurrentItem.csr_Icon = Srch.U.getFolderIconUrl();
    ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
                ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();
    _#-->
             <!--#_
               var QStringResults= null;
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){ 
    QStringResults= getQuString();
     _#-->  
            <div id="_#= $htmlEncode(QStringResults) =#_" name="bifItemqstring" 
                    data-displaytemplate="DefaultItem" class="ms-srch-item" 
                    >
                    <h5 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                    </h5>
                </div>
                <div id="_#= $htmlEncode(itemId) =#_" name="bifItem" 
                    data-displaytemplate="DefaultItem" class="ms-srch-item" 
                    onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_" 
                    onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_">
                    <h1 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                    </h1>
                    <h4 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Description =#_"> _#= ctx.CurrentItem.Description =#_</a>
                    </h4>
                    <h4 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.LastModifiedTime =#_"> _#= ctx.CurrentItem.LastModifiedTime =#_</a>
                    </h4>
                    <h3 style="color:floralwhite;background-color:green">
                        var mybifurl1= document.getElementById($htmlEncode(QStringResults));
                    <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
                    </h3>
                  </div>
            <div>
            </div>
                    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <!--#_ 
    _#-->
        </div>
    </body>
    </html>
    when i run the page , i a getting the query string value as   undefined! though the custom javascript is getting called.

    i am able to get the  results  by implementing the below:
    <h4 style="background-color:black">
                        <a onclick="javascript:mycalltojs(_#=
    ctx.CurrentItem.Path=#_) > click here </a>
                    </h4>
    hope this helps  anyone

  • 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!!!!!

  • Cap 4 Quiz Results page not restoring data properly

    I'm testing a Quiz built in Captivate 4 SCORM 1.2 which allows 5 attempts to achieve a passing score of 100.  If the user fails, exits on the Quiz Results page, and then relaunches (bookmarked back to the Results page), the values displayed (score, number of questions correct, number of attempts) are not correct.  Score is 1 or 4 or a random number, attempts goes back to 1.  I am able to analyze the saved cmi data to see that the correct data has indeed made it to the LMS.  And if the user clicks Retake for another attempt, the Results page will then update and show the correct number of attempts.  So Captivate is reading in the saved number of attempts.  But it seems like Captivate displays the Results page before it has fully retrieved the cmi data.  Has anybody else had this issue?  Any work-arounds?
    Thanks in advance!

    added these into pagdef (A/B)
    Refresh="prepareModel"
    RefreshCondition="${sessionScope.Loans != null &amp;&amp; adfFacesContext.postback == true}" into your <iterator ............../>

  • Having trouble displaying images on my results page

    I have tried placing the following code (<img src="*<?php echo $row_rsppleresults['picture_upload']; ?>*>) BOLDED AREA (see code below very last entry) in hopes that it would display the image. However, what happens after I place the code in that location is that I get an invalid code error that there is something wrong with the Italic BOLDED area (see below very last entry). In addition, to that it changes the html formatting on my page when I try to view the page and no image shows up.  As of right now when someone fills out the input form the photo automatically get uploaded into the following directory-/public_html/rescuealerts/fomdata/uploads_missing_person_form.  I am clueless how to connect the correct image with the correct input information in the search display table. Below you will find the following- my code for the results page and my dynamic table.  Everything else in the dynamic table displays correctly. It the images that I can seem to get displayed. Any help would be greatly appreciated.
    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;
    $currentPage = $_SERVER["PHP_SELF"];
    $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;
    $queryString_rsppleresults = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rsppleresults") == false &&
            stristr($param, "totalRows_rsppleresults") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rsppleresults = "&" . htmlentities(implode("&", $newParams));
    $queryString_rsppleresults = sprintf("&totalRows_rsppleresults=%d%s", $totalRows_rsppleresults, $queryString_rsppleresults);
    ?>
    Here is my code for the dynamic table (this is also where I have been trying to edit the code to look for the images that were uploaded with the initial form.
    Dynamic Table:
        <tr>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['missing_name']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['description']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['picture_upload']; ?></div></td>
        </tr>
        <?php } while ($row_rsppleresults = mysql_fetch_assoc($rsppleresults)); ?>
    </table>
    Thank you,
    hjohnson2011

        <tr>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['missing_name']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['description']; ?></div></td>
          <td style="font-weight: normal; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><div align="left"><?php echo $row_rsppleresults['picture_upload']; ?></div></td>
        </tr>
        <?php } while ($row_rsppleresults = mysql_fetch_assoc($rsppleresults)); ?>
    </table>
    First off, you should style the table, rows and cells by using CSS. Also, there is no need for a div within the cell because, again, you can use CSS to do the styling for you. Not only that, depending on the DOCTYPE that has been used, tou will get an invalid markup when using align=left.
    Depending on what is included in the picture_upload field (just the name and extension or the complete path and file name) your markup should look like
    <table>
      <tr>
        <td><?php echo $row_rsppleresults['missing_name']; ?></td>
        <td><?php echo $row_rsppleresults['description']; ?></td>
        <td><img src="<?php echo $row_rsppleresults['picture_upload']; ?>"></td>
      </tr>
    </table>
    if the picture_upload field contains all of the info, or if it only contains the filename+extension
    <table>
      <tr>
        <td><?php echo $row_rsppleresults['missing_name']; ?></td>
        <td><?php echo $row_rsppleresults['description']; ?></td>
        <td><img src="escuealerts/fomdata/uploads_missing_person_form/<?php echo $row_rsppleresults['picture_upload']; ?>"></td>
      </tr>
    </table>
    Gramps

  • Displaying DB records in JSP, same as a Search Result page

    Dear All,
    I need to design a JSP page with data from my database, similar to a search result page. Once selected, I need to pass a parameter value to call the detail page, same as a search result page.
    What is the proper way doing this in JSP please?

    I got answer fot this.
    1 pagination can give Display solution
    2 parameter passing (or variable), using sendReDirect()

Maybe you are looking for

  • Photos/graphics insert over text, will not float or move

    I'm trying to compose a document in Pages '09. If I use the Insert>Choose command to add either a graphic or a photo, the item is inserted over existing text. Under WRAP, all options are greyed out (Inline, Floating, Background) and Object Causes Wra

  • Help producing text and image next to each other in output.

    Hi, I've been trying to produce a PDF and HTML version of a Highlights for Users section using FM and RH in TCS3. All of our documentation is produced in Framemaker and RH is used to produce the WebHelp output. What I would like to have is text left-

  • How do i get past the "do not have sufficient privileges" error message installing flashplayer?

    how do i get past the "do not have sufficient privileges" error message installing flashplayer? i've googled the problem and seen the other solutions and for some reason cannot get any of them to work for me.

  • Variables selection

    hi, i have created a query and when i run the query the system automatically picks a variable as a required field in the varaible selection screen. here is the mssg i get Variable ZWEEK1 for characteristic Week has been converted to a required entry

  • How to fetch encrupted data in file

    Hi All, My scenario is that we send payments data to bank to process vendor payments. Data is received from Finance(R/3) server to XI server, where our XI server pass data to Bank's XI server. As it a crucial data, we exchange certificates to share d