03-25-2013, 03:33 AM
|
#9 (permalink)
|
|
The Wanderer
Join Date: Feb 2013
Posts: 7
Thanks: 0
|
Html
Quote:
Originally Posted by yusufsaifi
Thanks for reply every one,
I solved my problem, but now I have a new question:
How I can show all registered users in my website from MySQL database in a table like this:
Thank you for support
|
Y,
I can tell you have not got the basics of PHP down. PHP is server side processing that renders HTML, which is the only thing passible to the user, which is why even though you can not see PHP in the browser, it passed the "All code must be inspectable" requirement of the 2 year old "Secure Mode Mandate" as it only yields HTML and has no "client side" processing, making it the only "Secure" internet processing platform.
That said you have to process to a var/vars which is then display via the browser in the following manner:
Code:
<?php
$tbl_hdr = "<table>";
$tbl_row = "";
foreach ($row = mysql_{row}) {
$tbl_row .= "<tr>".
"<td>$row[0]</td>".
"<td>$row[1]</td>".
....
"</tr>";
} // end foreach
$tbl_ftr = "</table>";
?>
<html>
<?php echo $tbl_hdr.$tblrow.$tbl_ftr; ?>
</html>
Where {row} is one of the many ways to pull the row of data from mysql. Google "PHP HOWTO mysql" to get the manual with the list of possible commands.
Cheers!
OMR
|
|
|
|