xcaliberse
New Member
- Messages
- 46
- Reaction score
- 0
- Points
- 0
Hey, so i created a mysql server, and i jus wanted to make a form that does feedback. so i have this
<script>
<?
$firstname=$_POST['Name'];
$message=$_POST['Message'];
$submit=$_POST['submit'];
if($submit=="Submit"){
$con = mysql_connect("heres the problem","username,"password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("learning_beta", $con);
mysql_query("INSERT INTO Persons (Name, Message)
VALUES ('$firstname', '$lastname')");
echo "DONE";
}
?>
<form method="post">
Firstname: <input type="text" name="Name"><br />
Message: <input type="text" name="Message"> <br />
<input type="submit" name="submit" value="Submit">
</form>
</script>
The problem is, how do i know what the login is? i have hte user name and password but iono the site for the phpMyAdmin login or whatever its suppsoed to be.
<script>
<?
$firstname=$_POST['Name'];
$message=$_POST['Message'];
$submit=$_POST['submit'];
if($submit=="Submit"){
$con = mysql_connect("heres the problem","username,"password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("learning_beta", $con);
mysql_query("INSERT INTO Persons (Name, Message)
VALUES ('$firstname', '$lastname')");
echo "DONE";
}
?>
<form method="post">
Firstname: <input type="text" name="Name"><br />
Message: <input type="text" name="Message"> <br />
<input type="submit" name="submit" value="Submit">
</form>
</script>
The problem is, how do i know what the login is? i have hte user name and password but iono the site for the phpMyAdmin login or whatever its suppsoed to be.