Hello Experts!
I am stuck here while generating QR Code using php sql. Basically I am generating code for students using their ids and other information while fetching data from database. But the problem is that when i click on submit button so that table data store in QR Code, then it only generate the QR Code of of only last one student. For Example if i have 6 students, it only generate the qr code of student whose id is 6.
Code is here:
Recommended Answers
Jump to PostYou are duplicating HTML fields instead of setting them up as an array:
<td><input type="text" value="<?php echo $row['student_id']; ?>" name="student_id" ></td> <td><input type="text" value="<?php echo $row['fname']; ?>" name="fname" >
Try this:
<td><input type="text" value="<?php echo $row['student_id']; ?>" name="student_id[]" ></td> <td><input type="text" value="<?php echo …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.