I have this code with this error... what am i doing wrong??
Parse error: parse error, unexpected T_STRING in /home/rlnz/public_html/folder/ip.php on line 6
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$query = "GRANT ALL ON *.* TO 'myusername'@'$hostname' IDENTIFIED BY PASSWORD 'password'";
$exec = mysql_query($query) or die('MySQL Error - ' mysql_error());