Php query problems & lt; form & nbsp; namechangjiachaxun & nbsp; actionchangjiachaxun. php & nbsp; methodpost & nbsp; & gt; & lt; div & nbsp; & gt; enter the employee name & lt; input & nbsp php to query the problem
$ Link = mysql_connect ("localhost", "root ","");
$ Db = mysql_select_db ("ms_qua ");
Mysql_query ("set names 'utf8 '");
?>
Table name: manufacturer qualification information
$sql="SELECT * FROM qua WHERE xingming='$xingming'";
$query=mysql_query($sql) or die(mysql_error());
| Serial Number |
Department |
Position |
Name |
ID card number |
Contract Signing Time |
Certificate name |
Issuing Authority |
Certificate ID |
Date of Issuance |
If (isset ($ _ POST ['submit ']) {$ Xingming = $ _ POST ['xingming'];$ SQL = "SELECT * FROM qua WHERE xingming =". $ xingming ."";$ Query = mysql_query ($ SQL );While ($ row = mysql_fetch_row ($ query )){Echo'
';Foreach ($ row as $ v)Echo"
| $ V | ";Echo'
';}}?>Please help me query this for several days or else =------ Solution ----------------------Isn't php telling you something wrong?