how to show all data. Only one row showing
ItsMe5247
0
Newbie Poster
Recommended Answers
Jump to Posthi ItsMe5247..
pls try this<?php $num =1; $sql = "SELECT pp_number,Nationality,employer_id FROM `submission_form`"; $result = $database->query($sql); while($row = $database->fetch_array($result)){ ?> <div id=form_group<?php echo $num; ?>> <input type="text" value="<?php echo $row['pp_number']; ?>" class="pp_number" /> <input type="text" value="<?php echo $row['Nationality']; ?>" class="nationlity" /> <input type="text" value="<?php echo $row['employer_id']; …
Jump to PostThis is why you need to read my tutorial about using PHP properly as an object-oriented language. Don't do this stuff inline. Build your data strings dynamically in a class method or a function first, then output it.
All 8 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
ItsMe5247
0
Newbie Poster
amith_ami
0
Junior Poster in Training
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
mattster
commented:
Too true.....
+4
mattster
195
Practically a Master Poster
Featured Poster
diafol
mattster
195
Practically a Master Poster
Featured Poster
ItsMe5247
0
Newbie Poster
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.