toumimi,
h r u? i already created database successfully.actually i will fail to create table.plz given hw to create database & table in wampserver2.
plz read this following code seriously.i seems there are no error:
database code:
<?php
$host="localhost";
$user="root";
$pass="";
mysql_connect($host,$user,$pass);
$query="CREATE database studentinfo";
mysql_query($query);
echo "Database created successfully";
mysql_close();
?>
table code:
<?php
$host="localhost";
$user="root";
$pass="";
$database="studentinfo";
mysql_connect($host,$user,$pass);
@mysql_select_db($database)or die("Unable to select database"
;
$query="CREATE table student(Roll varchar2(10)primary key,Name varchar2(15),Semester varchar2(10),Department varchar2(10))";
mysql_query($query);
echo "Table created successfully";
mysql_close();
?>