/ Published in: PHP
nueva base de datos postgresql
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // Performing SQL query $query = 'SELECT * FROM person'; // Printing results in HTML echo "<table>\n"; echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; // Free resultset // Closing connection //echo "col_value=".$col_value."result=".$result; ?>