Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create Tables database in php

<?php
   $con=mysqli_connect("example.com","username","password","my_db");
   $sql="CREATE TABLE table1(Username CHAR(30),Password CHAR(30),Role CHAR(30))";
   if (mysqli_query($con,$sql)) {
      echo "Table have been created successfully";
   }
?>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #create #Tables #database #php
ADD COMMENT
Topic
Name
3+6 =