hi im soosai ..very new to this PHP WORLD..have created database with the field tc...and i have 10 fields in it but only would like to insert those datas in the coding .... but the coding shows some error...pls help me .. Thank you
<?
@mysql_connect("localhost","root","") or die (mysql_error());
mysql_select_db("upit");
$sql="INSERT INTO tc ('$nama','$ic','$fakulti','$emel')values('$nama', '$ic', '$fakulti', '$emel')");
$result=mysql_query($sql);
if ($result){
echo "<html><body>Registration Completed";
echo "<p><font color='blue'>User Account Details<br>";
echo "Username: '$ic'<br>";
echo "Password: '$ic'</font><p>";
echo "<a href='javascript:history.go(-2)'>Go back</a></body></html>";
}
else
echo "Problem inserting data";
?>