- Home /
Question by
tfsGabriel · Aug 27, 2016 at 06:55 AM ·
c#wwwphp
Unity C# I need my PHP page to Run (on the Server) Without me Getting or Sending Info
Good Day;
I understand WWW and Php enough to have created a successful login and registration form, but all I want to do now is have my unity c# script to erase (delete) all of the data in a particular table. When I run the php page from my browser then check my database the records were deleted. But when I use the code I created below to (I hoped) only make the same page run, nothing gets deleted!
void OnServerInitialized (){
//Erase Exisiting User Data from the database
Debug.Log("In OnServerInitialized");
WWW w = new WWW("http://127.0.0.1/_php/dropdata.php");
StartCoroutine(ErasePlayerNames(w));
}
IEnumerator ErasePlayerNames(WWW w){
yield return w;
}
Note: I did change the ipaddress for this post for obvious reasons.
Please Inform me of what I am doing wrong, thanks.
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Download multiple files from server 2 Answers
Sending variables to HTML 1 Answer