Kod
www.my-psp.go.pl
A mojego małeho skryptu(który jeszcze nic nie wyświetla, bo zabardzo nie wiem jak to zrobić):
Kod
www.my-psp.go.pl/psp/
Skrypt do tej pory wygląda tak:
Kod
<html>
<head>
<title>My-PSP Portable! Strona o PSP dostosowana do PSP!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php
//Polaczenie z baza danych
$dbcnx = @mysql_connect('xxx', 'xxx', 'xxx);
if (!$dbcnx) {
echo( '<p>W tej chwili nie mozna sie polaczyc z baza danych, prosze sprobowac pozniej.</p>' );
exit();
}
//Wybieram baze danych
if (!@mysql_select_db('xxx')) {
exit('<p><p>Nie mozna w tej chwili zlokalizowac bazy danych. Prosze sprobowac pozniej.</p>'_;
}
?>
<table id="Table_01" width="481" height="273" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="8">
<img src="images/index_01.gif" width="480" height="10" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="10" alt=""></td>
</tr>
<tr>
<td rowspan="8">
<img src="images/index_02.gif" width="12" height="262" alt=""></td>
<td colspan="6">
<img src="images/top.gif" width="456" height="55" alt=""></td>
<td rowspan="8">
<img src="images/index_04.gif" width="12" height="262" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="55" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_05.gif" width="456" height="4" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="4" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/linkacze.gif" width="75" height="26" alt=""></td>
<td rowspan="4">
<img src="images/index_07.gif" width="6" height="184" alt=""></td>
<td colspan="4">
<img src="images/news1.gif" width="375" height="17" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/news2.gif" width="374" height="164" alt=""></td>
<td rowspan="3">
<img src="images/index_10.gif" width="1" height="167" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="9" alt=""></td>
</tr>
<tr>
<td>
<img src="images/linkacze2.gif" width="75" height="155" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="155" alt=""></td>
</tr>
<tr>
<td>
<img src="images/index_12.gif" width="75" height="3" alt=""></td>
<td colspan="3">
<img src="images/index_13.gif" width="374" height="3" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/michal.gif" width="116" height="14" alt=""></td>
<td>
<img src="images/arek.gif" width="116" height="14" alt=""></td>
<td colspan="2">
<img src="images/my-psp.gif" width="224" height="14" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_17.gif" width="456" height="5" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="12" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="75" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="35" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="116" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="223" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="12" height="1" alt=""></td>
<td></td>
</tr>
</table>
</body>
</html>
<head>
<title>My-PSP Portable! Strona o PSP dostosowana do PSP!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php
//Polaczenie z baza danych
$dbcnx = @mysql_connect('xxx', 'xxx', 'xxx);
if (!$dbcnx) {
echo( '<p>W tej chwili nie mozna sie polaczyc z baza danych, prosze sprobowac pozniej.</p>' );
exit();
}
//Wybieram baze danych
if (!@mysql_select_db('xxx')) {
exit('<p><p>Nie mozna w tej chwili zlokalizowac bazy danych. Prosze sprobowac pozniej.</p>'_;
}
?>
<table id="Table_01" width="481" height="273" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="8">
<img src="images/index_01.gif" width="480" height="10" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="10" alt=""></td>
</tr>
<tr>
<td rowspan="8">
<img src="images/index_02.gif" width="12" height="262" alt=""></td>
<td colspan="6">
<img src="images/top.gif" width="456" height="55" alt=""></td>
<td rowspan="8">
<img src="images/index_04.gif" width="12" height="262" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="55" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_05.gif" width="456" height="4" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="4" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/linkacze.gif" width="75" height="26" alt=""></td>
<td rowspan="4">
<img src="images/index_07.gif" width="6" height="184" alt=""></td>
<td colspan="4">
<img src="images/news1.gif" width="375" height="17" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src="images/news2.gif" width="374" height="164" alt=""></td>
<td rowspan="3">
<img src="images/index_10.gif" width="1" height="167" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="9" alt=""></td>
</tr>
<tr>
<td>
<img src="images/linkacze2.gif" width="75" height="155" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="155" alt=""></td>
</tr>
<tr>
<td>
<img src="images/index_12.gif" width="75" height="3" alt=""></td>
<td colspan="3">
<img src="images/index_13.gif" width="374" height="3" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/michal.gif" width="116" height="14" alt=""></td>
<td>
<img src="images/arek.gif" width="116" height="14" alt=""></td>
<td colspan="2">
<img src="images/my-psp.gif" width="224" height="14" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="14" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/index_17.gif" width="456" height="5" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="12" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="75" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="35" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="116" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="223" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="12" height="1" alt=""></td>
<td></td>
</tr>
</table>
</body>
</html>
I po połączeniu z bazą danych nie wiem co dalej robić :/ Chodzi mi o same newsy i ich tematy komentarzy nie chce wyświetlać... Z góry dziękuje za podpowiedzi(nie chce gotowca, chce tylko pomocy
