Sponsored By
MindStick Cleaner
Advertise with Us
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form

Home >> Database >> MYSQL >> There are some problem in creation of database
Author Post


Total Post: 21
Member Since: 10/26/2010
Points: 107
There are some problem in creation of database
Posted On: 10/26/2010 9:51:06 AM
how we create database in mysql with php
please give syntex
thanks in advance
Author Post

Amit Singh

Total Post: 104
Member Since: 8/8/2010
Points: 702
Re: There are some problem in creation of database
Posted On: 11/8/2010 12:38:29 AM
Create database between mysql and php
using syntax
Create database databaseName

we write syntax in php for creation of database
$con = mysql_connect("localhost","sa","sa");
if (!$con)
  die('Could not connect: ' . mysql_error());

if (mysql_query("CREATE DATABASE my_db",$con)) //Create database and check the condition
  echo "Database created";
  echo "Error creating database: " . mysql_error();

Report Abuse Form
Total Online Users: 5002
MindStick DataConverter
Advertise with Us
Copyright © 2009 - 2014MindStick. All Rights Reserved.