Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $id_pol = mysql_connect('127.0.0.1', 'ka40779', 'Ka40779');
- if($id_pol)
- {
- $id_baza = mysql_select_db('aleksandrakrawiec');
- if($id_baza)
- {
- $tekst = "SELECT * FROM tabela";
- $id_zap = mysql_query($tekst);
- if($id_zap)
- {
- echo '<table>
- <tr><th>ID
- </th><th>Imię
- </th><th>Nazwisko
- </th><th>Płeć
- </th><th>Naz. pan.
- </th><th>Email
- </th><th>Kod
- </th></tr>';
- while($wiersz = mysql_fetch_array($id_zap))
- {
- echo '<tr><td>'.$wiersz['id'].
- '</td><td>'.$wiersz['imie'].
- '</td><td>'.$wiersz['nazwisko'].
- '</td><td>'.$wiersz['plec'].
- '</td><td>'.$wiersz['nazwisko_panienskie'].
- '</td><td>'.$wiersz['email'].
- '</td><td>'.$wiersz['kod_pocztowy'].
- '</td></tr>';
- }
- echo '</table>';
- }
- else
- echo 'kom3'.mysql_error();
- }
- else
- echo 'kom2'.mysql_error();
- mysql_close($id_pol);
- }
- else
- echo 'kom3'.mysql_error();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement