So I am trying to add users to my server that can login through the mysql_connect(host,username,password) command. I currently have
$str = "CREATE USER '.$name.'@'localhost' IDENTIFIED BY '.$encryption.'"
$query = mysql_query($str);
When I run this on my server with the variables manually plugged in, the query works. When I run this through php it doesn't. Is my formatting incorrect?