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.


LinkBack URL
About LinkBacks
Reply With Quote
Thanks to those whom have donated so far!
