header??
Posted: Tue Jul 01, 2003 10:23 am
i've this code (insert.php)
but the code above didn't work although it inputs data successful
i want that when i just finish input database at add.html ( this file is used to input data and then it 'll call insert.php file) it'll come back the add.html file to input again<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($dbname) or die("Unable to select database");
$query="INSERT INTO diemhk4 VALUES ('','$ten','$mssv','$ctdl','$dientu','$ktso','$ltdt','$toanrr','$cnxh','$anhvan','$pptinh','$thuchanh')";
mysql_query($query);
mysql_close();
$tr_url="http://localhost/hocphp/diemhk/add.html";
header("Location : $tr_url");
exit();
?>
but the code above didn't work although it inputs data successful