MySQL Forums
Forum List  »  Newbie

Re: creating a table is there another way to do this?
Posted by: Mark Roberge
Date: September 22, 2022 06:05PM

Yeah I found it and fixed it by being very careful when I typed the code in. I have moved on from that.
I have some more code I will place here. I can't see the problem but I am getting an error on line 15. It is the if statement that is popping up in my browser. I typed in I different cars to load into the database car.inventory.

if ($mysqli->query("CREATE DATABASE Car") === TRUE{
echo "<p>Database Car created</p>";
echo "Error creating Car Database:".mysqli_error_error()."<br>"


The error says that there is a problem with the echo. I fixed the first error, but this one is stumping me.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.