Why only one item is displayed? I made a recruitment website, and a common user submitted two resumes in the td table. However, in my resume posting query, only the first position at the top was displayed, but no other information was displayed. The result I want is to display the records cast by the user ID. The code is as follows:
$ Userid = $ _ SESSION ["userid"];
$ SQL = "select * from person where userid = '$ userid '";
$ Query = mysql_query ($ SQL );
$ Rs = mysql_fetch_assoc ($ query );
$ Per_id = $ rs ["per_id"];
Mysql_free_result ($ query );
?>
| Position |
Shipping |
View |
$ Cx = mysql_query ("select * from td where person_id = '$ per_id '");While ($ rs = mysql_fetch_array ($ cx )){?>
$ Cx = mysql_query ("select * from job where job_id = '". $ rs ["job_id"]. "'");
$ Myrs = mysql_fetch_assoc ($ cx );
Echo $ myrs ["title"];
Mysql_free_result ($ cx );
?>
|
$ Cx = mysql_query ("select * from person where per_id = '". $ rs ["person_id"]. "'");
$ Myrs = mysql_fetch_assoc ($ cx );
Echo $ myrs ["name"];
Mysql_free_result ($ cx );
?>
|
"Class =" text12 "> View |
}?>
Is the display result of failure:
Reply to discussion (solution)
I want the positions of tester 1 and Tester 2 to be displayed. Thank you!
@ Zhao4zhong1 @ jordan102
@ Zhao 4 instructor @ mix together
There may already be two lines to view the source code, but the repeated value assignment of the $ cx variable is affected.
@ Mix it together. I will not talk nonsense either. I have offered you 90 yuan. I have already done it!