Odys Posted March 2, 2007 Share Posted March 2, 2007 Hi! I posted a problem here a couple of days ago that had nothing to do with NuSOAP in the end! However this one I belive maybe being caused by NuSOAP. I get the following error when I try to invoke a service.... XML error parsing SOAP payload on line 1: Empty document The code is designed to send an email which it does despite the error, however I cant seem to find why i'm getting the error. The main body of the function is $query="SELECT * FROM student WHERE school='$school'"; $result=mysql_query($query); $rows=mysql_num_rows($result); $i=0; while ($i < $rows) { $name = mysql_result($result, $i, "name"); $email = mysql_result($result, $i, "email"); $school = mysql_result($result, $i, "school"); echo $name . "<br />"; echo $school . "<br />"; $message = "Hello '$name', Well despite some errors showing, it does actually work!"; mail($email, 'Test E-Mail', $message); $i++; } mysql_close($conn); return 'Message sent to all students in the school of ' . $school; Can anyone help with this? Cheers.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.