473,698 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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 
  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);
  13.         while($rows = mysql_fetch_array($result)){
  14.        print  $rows['Subject_code']. "<BR>";
  15.        print  $rows['SemName']. "<BR>";
  16.        print  $rows['SemYear']. "<BR>";  
  18.       // return $result['Subject_code']."  ".$result['SemName']."  ".$result ['SemYear'];
  19.   } mysql_close($connect);  
  20.    }     } }
  22.         $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
  23.         $server->service($HTTP_RAW_POST_DATA); 
  25. ?>
  27. visual studio code
  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);
  38.         }
  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);
  46.         }
  48.     }
Attached Images
File Type: jpg Untitled.jpg (42.6 KB, 100 views)
Apr 16 '15 #1
0 1512

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

Similar topics

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 to see a field that is 8k. However, the size of the display is truncated somehow. I want to be able to see the entire field so that I can copy and paste the results to notepad. What would I need to do increase the size of the debug windows?
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 libraries' errors. Which are the most significant things to take in consideration to transfer old Visual C++ 98 code towards new Microsoft NET projects? I want still use C++ and not other language...
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 more up to date. How can I use my program to write C++ 6.0 the same way I am be instructed in class? Do I need to buy visual C++ 6.0 I already paid for one program I would like to make use of it at home it gives me more time to learn. Thanks...
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 buy C++ 6.0 I allready purchased on program.
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 Explorer in VS.NET. But when I click the Play button or hit F5, it is still IE that is being launched. Is there a way ? A registry key somewhere ??...or something obvious that I didn't see...or maybe it's illegal to do it ? ;-)
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 and note some timestamps for reporting at the end of the test. When I run this using play in VS, the test takes ~16 seconds. When I build the exe and run it, it takes ~4 minutes.
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 projects", "Getting started", how can I load source file, also I cannot see "Toolbox" on main window, any idea?
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>. Please help how to do it.
by: Hasarel hasarel | last post by:
I want read Barcode from reader, and decode it in PC using C++ / Visual studio
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.