I want to create a mysql database with the help of php programming.

Status
Not open for further replies.

moneybookers_sell38

New Member
Messages
8
Reaction score
0
Points
0
suppose my x10hosting.com login informations are:
email: example@yahoo.com
username:example
passowrd:123456

What can i insert into \"localhost\", \"peter\", and \"abc123\" ???

/*<?php
$con = mysql_connect(\"localhost\",\"peter\",\"abc123\");
if (!$con)
{
die(\'Could not connect: \' . mysql_error());
}

if (mysql_query(\"CREATE DATABASE my_db\",$con))
{
echo \"Database created\";
}
else
{
echo \"Error creating database: \" . mysql_error();
}

mysql_close($con);
?>*/
 
Status
Not open for further replies.
Top