473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

During production the generated HTML by the PHP was not displayed.

66
During development (debugging) the site works well but when I release from the debugging and test into production.. the result from PHP file was not displayed.

test.php
[PHP]<a href="proshops01test.php?mode=kensaku&shopname=ロズビ ン&rowsperpage=5&pageidx=1" >test</a>[/PHP]


proshops01test.php
[PHP]<?php
header('Content-Type: text/html; charset=shift_jis');
require_once('../phpbase.php');
include(WORKINGCLASSES .'clssearchindex.php');
session_start();

$mode = $_GET['mode'];
$shopname = iconv("UTF-8", "SJIS", $_GET['shopname']);
$kensakukekka = "";
$rowsperpage = $_GET['rowsperpage'];
$pageidx = $_GET['pageidx'];

$sql = "";
$sql = "SELECT
distinct sh.shopcd,sh.name,sh.postcode, sh.areanum, sh.othernum
,pc.ken, pc.shi, pc.ku, pc.machi
FROM
shopcontacts sc LEFT JOIN shops sh
ON sc.shopcd = sh.shopcd
LEFT JOIN postcodes as pc
ON sh.postcode = pc.postcode
WHERE sh.name like '%". $shopname ."%'";
// created dbconnection
$c_rs = new Recordset();
// fetch all data based on the criteria
$_SESSION['$o_search'] = $c_rs->query($sql);
// get the data tobe displayed based on the rowsperpage
$rows = getDataPage($rowsperpage, $pageidx);

if ( count($rows) > 0 ) {
// create the list with <a> tag for hyperlink
foreach ($rows as $row){
$kensakukekka = $kensakukekka ."<a id='hyouji' name='hyouji'\n";
$kensakukekka = $kensakukekka ."href=\"\" />\n";
$kensakukekka = $kensakukekka . $row['name'] . "</a><br/>\n";
$kensakukekka = $kensakukekka ."<small>〒". $row['postcode'] ."</small><br/><br/>\n";
}

$_SESSION['kensakukekka'] = $kensakukekka;
// generate the HTML code
print $_SESSION['kensakukekka'];
}else {
$eof = false;
}

function getDataPage($limit = 5, &$idx = 1) {
$getDataPage = new ArrayObject();
$rows = $_SESSION['$o_search'];

if ( $limit > count($rows) ) {
$limit = count($rows);
$idx = 1;
}

$rowcount = 0;
for ($start = 0; $rowcount < $limit; $start++) {
if ( ! isset($rows[$start]) ) {
break;
}

if ( count($getDataPage) == 0 ) {
$getDataPage = array(0 => $rows[$start]);
}else {
array_push($getDataPage,$rows[$start]);
}

$rowcount = $rowcount + 1;
}

return $getDataPage;
}
?>[/PHP]
Aug 28 '07 #1
4 1734
ak1dnar
1,584 Expert 1GB
...
the result from PHP file was not displayed.
Is it giving any error?
and what is this in your URL String
shopname=ロズビン
Aug 28 '07 #2
eros
66
Is it giving any error?
and what is this in your URL String
shopname=ロズビン
There's no any error message.
Note: I configured the php.ini to displayed all errors.

shopname=ロズビン
-> shopname is the fieldname.
-> ロズビン is the value.

kensaku
-> it means search in english.

My site is Japanese using shift_jis as the charset.

It quite strange because when I debug the site using my IDE (tool), It works well and perfect.
Aug 28 '07 #3
eros
66
I am using __autoload function in order to automatically load the includes needed.

What do you think?
Aug 28 '07 #4
pbmods
5,821 Expert 4TB
Heya, Eros.

If you add this to the bottom of your code:
Expand|Select|Wrap|Line Numbers
  1. echo 'Well at least this works....';
  2.  
Do you get any output?
Aug 28 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
1
by: Sergio Lombardo | last post by:
reshello everyone! as mentioned above, I just completed a website in visual studio .Net. which consists of several ASP pages. This website is currently sitting on my development machine (and it...
0
by: Wysiwyg | last post by:
Hi, I just thought I'd post this since I didn't see anyone else doing it this way. I wanted to be able to force the enter key to submit the form without manually changing the html form, In my...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
0
by: LeAnne | last post by:
In my ASPX page, I populate the GRID when the user selects an item in the dropdown list. Thus, the data is fetched and the data grid DataBind() method is executed in the PostBack (i.e. IsPostBack...
1
by: Ken Jones | last post by:
Hi all, I am new to VB.NET and would like to get some help. I have a VB.NET Windows application that connects to my development SQLServer during development. I use the VS 2005 designer to...
1
by: Mark Asbach | last post by:
Hi pythonians, I'm one of the maintainers of an open source image processing toolkit (OpenCV) and responsible for parts of the autotools setup. The package mainly consists of four shared...
17
by: eros | last post by:
During development (debugging) the site works well but when I release from the debugging and test into production.. All the AJAX was not performed.. the result from xmlHttp.responseText was not...
2
by: ppuniversal | last post by:
Hi All, My question is as follows: I have a text box and two links.Let the two links be - Show and Save . On clicking the Show , a web page is generated by fetching some data from database...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.