I use the scripts on the Server Side Records page for my purposes. I edited it a bit, but it does not work. The value is not saved, and I continue to receive this message on the php page:
Note: Undefined index: Name in C: \ xampp \ htdocs \ unitypb \ saveVerant.php on line 6
Note: Undefined index: Value in C: \ xampp \ htdocs \ unitypb \ saveVerant.php on line 7
Note: Undefined index: hash in C: \ xampp \ htdocs \ unitypb \ saveVerant.php on line 8
This is php code
<?php $db = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error()); mysql_select_db('unitypb') or die('Could not select database'); // Strings must be escaped to prevent SQL injection attack. $name = mysql_real_escape_string($_GET['name'], $db); $score = mysql_real_escape_string($_GET['score'], $db); $hash = $_GET['hash']; $secretKey="mySecretKey";
and this is C # code:
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class SQL_InputVS : MonoBehaviour { private string secretKey = "mySecretKey";
source share