troubleshooting Question

Submit form for creating a database

Avatar of Simon336697
Simon336697Flag for Australia asked on
18 Comments1 Solution218 ViewsLast Modified:
Hi guys!

Id like to modify the below code, so that, I have the following in a web page:


Please enter a name of the database you'd like to create:
________________   (testbox to the left to enter name of database)

##########  (Submit button to the left to create the database)

<Outcome here of the result of submitting the request here, on the same page ideally>

Here is my code:

include 'config.php';
include 'opendb.php';

$query  = "CREATE DATABASE Animals";
$result = mysql_error();

if ($result == "")
  echo "Creation of database succeeded!";
  echo "Creation of database failed: $result";

include 'closedb.php';

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros