feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
ok..
here are my codes:
Code: Select all
$query2=" SELECT * FROM human_resource where username='$session[username]'";
$result1 = mysql_query($query2);
if($submit=="Submit Form" || $submit=="Update")
{
if($submit=="Submit Form")
{
$queu="insert into ";
$query=mysql_query($queu."human_resource(username,Total,Total2,catA,catB,catC,catD,type)
values ('$session[username]','$Total1','$Total2','$Total3','$Total4','$Total5','$Total6','$types')");
//$query3=mysql_query("insert into
// human_resource(username,Total,Total2,catA,catB,catC,catD,type) values
// ('$session[username]','$Total1','$Total2','$Total3','$Total4','$Total5','$Total6','$types')");
$query2=mysql_query($queu."graf(username,area,Total1,Total2,Type)
values ('$session[username]','Human Resource Development','$Total1','$Total2','$types')");
//$query4=mysql_query("insert into graf(username,area,Total1,Total2,Type) values
//('$session[username]','Human Resource Development','$Total1','$Total2','$types')");
}
} else
{ echo "You have done this survey";
}
if i use the real 'insert into human_resourse....',the result are still the same..
I just try to do other function in my project,register new user,update user account,and all that (insert,update etc) were functioned..
means it's not a setting problem like what i think before..am i right?
maybe just in this code..but when i run it in my laptop,everything was just fine without any problem.
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]