PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I have a script and when I add two lines I get certain error, any ideas?
Original code snippet
$sqlquery="GRANT ALL PRIVILEGES ON `$username` . * TO '$username'@'localhost' WITH GRANT OPTION";
mysql_query($sqlquery);
$sqlquery="INSERT INTO `quota` VALUES ('$username', '50000000', 'N');
mysql_query($sqlquery);
When I add the code in the new snippet I get the following error.
Parse error: parse error, unexpected T_LNUMBER in /var/www/html/components/com_registration/registration.php on line 176
$sqlquery="GRANT ALL PRIVILEGES ON `$username` . * TO '$username'@'localhost' WITH GRANT OPTION";
mysql_query($sqlquery);
$sqlquery="INSERT INTO `quota` VALUES ('$username', '50000000', 'N');
mysql_query($sqlquery);