i am wondering if someone could help me with this problem i am having.
i am trying to insert some data from a web interface into the database but i am getting an error "error adding name to database".
below i have copy the code:
AND THE INSERT CODE
echo("Connection Failed: " . $mytest);
echo "I cant connect to that db";
//$sql="INSERT INTO studenttest values('$Firstname','$Surname')";
mysql_query("insert into studenttest('Firstname') values('$Firstname')");
if (mysql_query ($sql))
echo("<p>Your Name has been added.<p>");
echo("Error adding name to database.");