I am trying to send a query to my server from my website. I have allowed access to all IP's using root@'%', and I have set the bind port to 0.0.0.0 in my.ini
It appears it is connecting to the server now, the query just won't work.
$link=mysql_connect('server_ip', 'root', 'abcdefg') or die('Sorry, please try again another time.');
mysql_select_db('chars');
mysql_query("INSERT INTO `accounts` (`uuid`, `name`) VALUES ('hi', 'hi')", $link);
echo "Done";
When I run this, I see the "Done" on my webpage, however the query does not actually put the account "hi" into the database, I have been doing a little experimenting with the code trying to get it to work, which is why it may look strange.
Any help is appreciated, thank you.