Why only one item is displayed?

Source: Internet
Author: User
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 );
?>

















$ Cx = mysql_query ("select * from td where person_id = '$ per_id '");While ($ rs = mysql_fetch_array ($ cx )){?> }?>
Position Shipping View

$ 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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.