6
Contributors
8
Replies
45
Views
2 Years
Discussion Span
Last Post by ItsMe5247
1

hi 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']; ?>" class="registry_number" />
</div>
<?php $num++; } ?>
0

@rubberman I think I could say that to just about every PHP post that gets asked.

Those that aren't are normally using a framework and haave no choice aha.

0

Without going into it too deeply, this would probably do as well with concatenating the output into a string on every iteration and then outputting a single string.

0

Without going into it too deeply, this would probably do as well with concatenating the output into a string on every iteration and then outputting a single string.

That would make things alot simpler I suppose, maybe he should try that.

0

i cant have the text box iterated because the text box are fixed

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.