<?php
$db = mysql_connect('###, '###', '###');
if (!$db) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db(nbnmarslab) or die('Could not select database');
$name = mysql_real_escape_string('School2');
$addSchool = 'INSERT INTO `Users` (`SchoolName`, `email`) VALUES (\'test\', \'test@test\');';
mysql_query($addSchool) or die('Query failed: ' . mysql_error());
?>
now this adds a row to my table, but I can’t figure how to change this to accept variable from the wwwform in unity. The escape characters are causing me major headaches I think.
I know this isn’t 100% a unity question, but I am sure others with limited SQL experience are trying to do similar things with unity.