473,406 Members | 2,217 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,406 software developers and data experts.

Displaying more than one row using Nusoap/php and visual studio (windowss phone)

THE Database is working fine with the php script/nusoap. but if i try to retrieving information about a particular student, visual studio (c#) crashes. I have another code that retrieve only a single row but i want every subject remain about a student. The attach file is the error message from visual studio.
please i need urgent help.

Expand|Select|Wrap|Line Numbers
  1. Here is my nusoap/php script 
  2.  
  3. function GetRemainingSubject($Sid){
  4.        $connect = mysql_pconnect("******","****","*******")
  5.        or die ('could not connect :'. mysql_error());
  6.        IF ($connect){
  7.            IF( mysql_select_db('theabani_sg',$connect));{       
  8.   //$sql = ("select Subject_code,SemName,SemYear from enrolment_record where Sid =".$Sid." and Score < 50");
  9.   $sql = ("select Subject_code,SemName,SemYear from enrolment_record,student where student.Sid =enrolment_record.Sid And enrolment_record.Sid = ".$Sid." and Score < 50");
  10.     //  $result = mysql_fetch_array(mysql_query($sql));
  11.         $result = mysql_query($sql);
  12.  
  13.         while($rows = mysql_fetch_array($result)){
  14.        print  $rows['Subject_code']. "<BR>";
  15.        print  $rows['SemName']. "<BR>";
  16.        print  $rows['SemYear']. "<BR>";  
  17.  
  18.       // return $result['Subject_code']."  ".$result['SemName']."  ".$result ['SemYear'];
  19.   } mysql_close($connect);  
  20.    }     } }
  21.  
  22.         $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
  23.         $server->service($HTTP_RAW_POST_DATA); 
  24.  
  25. ?>
  26.  
  27. visual studio code
  28.  
  29.  private void Button_Click(object sender, RoutedEventArgs e)
  30.         { 
  31.           //  Creating new proxy object of our service;
  32.             MyServicePortTypeClient read = new MyServicePortTypeClient();
  33.             read.GetRemainingSubjectCompleted += new EventHandler<GetRemainingSubjectCompletedEventArgs>(read_GetRemainingSubjectCompleted);
  34.          //   Calling method, as a parameters we type text contained in IdTextBox
  35.          //   but we must change text type of string to integer (ID in web service have integer type)
  36.             read.GetRemainingSubjectAsync(Rbox1.Text);
  37.  
  38.         }
  39.  
  40.         void read_GetRemainingSubjectCompleted(object sender, GetRemainingSubjectCompletedEventArgs e)
  41.         {
  42.           //  MessageBox.Show(e.Result);
  43.            libox.Items.Add(e.Result.ToString());
  44.           //  libox(e.Result);
  45.  
  46.         }
  47.  
  48.     }
Attached Images
File Type: jpg Untitled.jpg (42.6 KB, 99 views)
Apr 16 '15 #1
0 1490

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

Similar topics

0
by: Wendy Elizabeth | last post by:
When I am using Visual Studio.net in the debug mode, I want to be able to increase the size of values that can be displayed. For example when using the "watch" or other debug windows, I know I want...
0
by: Jimmy Gagnon | last post by:
Hi, We are working on a project initially coded for Visual C++ 98 and we are now using this old code into a new .NET project to create a new interface... but the old code seems to have a lot of...
5
by: Charlie | last post by:
I am a student taking a computer class programmning with ms visual C++. The college is using ms visual C++ 6.0 on it's computers. I purchased ms visual studio.net (Academic) (ver 2003) which is...
3
by: Charlie1 | last post by:
I am a student taking c++ programming I purchased a program Visual Studio.net (2003 ver), The college is using visual C++ 6.0. How can I use my porgram to write programs in Ms 6.0. Do I have to...
6
by: Jeff Robichaud | last post by:
I've been trying to use a browser other than IE in VS.NET with no success. The default browser on my PC is Firefox, and it is also the default browser for opening web documents from the Solution...
1
by: uncah91 | last post by:
I am runnning some very simple performance tests using a vb.net winform to invoke a vb.net webservice. The webservice simply returns a string literal. I invoke the service 1000 times in a row...
1
by: tvnaidu | last post by:
After load new project, I can build, at the bottom I can see build log, on right side I can see project name (Bold), on center window it shows "visual studio news", on left side it shows "Recent...
5
by: Vodicomus | last post by:
Greeting, In C++ Visual Studio, I try to parse the following XML Barcode string and save the individual content in Variable. <XML><AB>370-DOC5M</AB><SN>123456789876</SN><DF>9876FA54</DF></XML>....
1
by: Hasarel hasarel | last post by:
I want read Barcode from reader, and decode it in PC using C++ / Visual studio
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.