Record not found

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
devuser
Forum Newbie
Posts: 1
Joined: Tue Mar 28, 2006 8:47 am

Record not found

Post by devuser »

pls...advise me..

I use PHP web service with nusoap.php. I can retrieve many records of data from database
in the webservice page. But this webservice page can't post to php file.. How can I do?

e.g
Page1......
<?php
$rs = new soap_server;
function Get()
{
$strsql = ''select * from staff sf inner join salary s on sf.staff_id = s.staff_id;
$table = select_sql($strsql);
if ($table) return $table;
else return false;
}
$rs->service($HTTP_RAW_POST_DATA);
?>

page2........
<?
require('page1.php');
$rs = Get();
if ($rs) {
for($i=0; $i < count($rs); $i++)
{
echo $rs[0]["staff_name"];
}
}
else {echo "Record not found.";}
?>

According to the above example , I get thousands rows of staff in page1. But I didn't get all data(rows) in page2. How can I do?

thanks in advance for quick reply...
Last edited by devuser on Wed Mar 29, 2006 5:46 am, edited 1 time in total.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

errr....sorry, i dont see what the question is :?
Post Reply