Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
<?php include 'data/config.php'; include 'data/opendb.php'; $query = "INSERT INTO myTable (Name) VALUES ('Name')"; mysql_query($query) or die('Error, insert query failed - 1' . mysql_error()); //This is the error section... $query = "FLUSH PRIVILEGES"; mysql_query($query) or die('Error, query failed - 2' . mysql_error()); include 'data/closedb.php'; echo "New MySQL user added"; ?>
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!