SQL Table not showing on phpmyadmin

Joined
Nov 10, 2018
Messages
2
Reaction score
0
I recently created an sql table using php and when accessing phpmyadmin it said that no tables are created in my database, any help will be much appreciated.


$link = connectDB ( true, false );
if ($link) {
$sql = "CREATE TABLE IF NOT EXISTS muq
( muqID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
dateTime DATETIME,
taskTime FLOAT(4,2),
useTime VARCHAR(60),
usedM VARCHAR(40),
freqRate VARCHAR(200),
gender CHAR(1),
age TINYINT UNSIGNED,
email VARCHAR(100),
comment VARCHAR(3000) )
";
mysqli_query( $link, $sql );
echo ($result ? 'Success' : 'Fail') . ": $sql";
mysqli_close($link);
}

this is the code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,284
Latest member
NicholeDum

Latest Threads

Top