i was failed to create table
Posted by: freedom (202.65.168.---)
Date: July 09, 2009 08:44AM

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"winking smiley;
$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();
?>

Options: ReplyQuote
Re: i was failed to create table
Posted by: toumimi (---.237.115-78.rev.gaoland.net)
Date: July 09, 2009 03:42PM

Please use the same post.
Go to [forum.wampserver.com]

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.