MySQL中的菜问题
<?php
session_start();
$ksh=$user;
if (!session_is_registered("user")&!session_is_registered("passwd"))
{
Header("Location:newstu.php") ;
exit;
}
?>
$db = mysql_connect("localhost","root","");
mysql_select_db ("mydata");
$xh = mysql_query ("select xh from lqdyk where ksh='$ksh'");
$xm = mysql_query ("select xm from lqdyk where ksh='$ksh'");
$result = mysql_query ("insert into maildata (ksh, xh, xm, yhm, mm)
VALUES ('$ksh', '$xh', '$xm', '$yhm','$mm')");
这个的问题在哪里?
为什么取不回$xh和$xm呢?