Następnie zrobiłem skrzynkę odbiorczą i tam pokazuje wiadomości jedna pod 2-gą i po kliknięciu na wybraną wiadomość przycisk pokaż pokazuje 1-szą wiadomość poprawnie a jak kliknę wiadomość następną wyświetla tę samą wiadomość którą otworzyłem wcześniej i nie wiem o co chodzi



PLIK ODBIORCZA.PHP
<?php require_once('../Connections/config.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": break; case "double": break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $query_rsreklamacja = "SELECT reklamacja.wiad_id, reklamacja.nr_nadania, reklamacja.`data`, reklamacja.tem_wiad FROM reklamacja WHERE reklamacja.`data` ORDER BY reklamacja.`data` DESC"; ?> <? include '../config.php'; ?>
Wyświetlanie wiadomości jedna pod drugą
<p><table width="0" border="0" id="tbl_repeat"> <tr> <th scope="col">Nr Nadania</th> <th scope="col">Temat Wiadomości</th> <th scope="col" style="width:15%">Data Wiadomości</th> <th scope="col" style="width:10%">Pokaż </th> </tr> <?php do { ?> <tr> <td><a href="pokaz.php?id=<?php echo $row_rsreklamacja['wiad_id']; ?>"><input name="" type="button" value="Pokaż"></a></td> </tr> </table>
PLIK POKAŻ.PHP
<?php require_once('../Connections/config.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": break; case "double": break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $query_Recordset1 = "SELECT reklamacja.wiad_id, reklamacja.nr_nadania, reklamacja.imie_rekl, reklamacja.nazwisko_rekl, reklamacja.ulica_rekl, reklamacja.kod_poczt_rekl, reklamacja.miasto_rekl, reklamacja.tel_rekl, reklamacja.mail, reklamacja.`data`, reklamacja.tresc, reklamacja.tem_wiad FROM reklamacja"; $query_Recordset1 = "SELECT reklamacja.wiad_id, reklamacja.nr_nadania, reklamacja.imie_rekl, reklamacja.nazwisko_rekl, reklamacja.ulica_rekl, reklamacja.kod_poczt_rekl, reklamacja.miasto_rekl, reklamacja.tel_rekl, reklamacja.mail, reklamacja.`data`, reklamacja.tresc, reklamacja.tem_wiad FROM reklamacja ORDER BY reklamacja.`data` DESC"; ?> <? include '../config.php'; ?>
Część dalsza która pokazuje wiadomość
<table width="77%" border="0" > <tr> <th width="27%" scope="row">Nr Nadania:</th> </tr> <tr> <th scope="row">Imie :</th> </tr> <tr> <th scope="row">Nazwisko:</th> </tr> <tr> <th scope="row">Ulica:</th> </tr> <tr> <th scope="row">Kod Pocztowy:</th> </tr> <tr> <th scope="row">Miasto:</th> </tr> <tr> <th scope="row">Telefon:</th> </tr> <tr> <th scope="row">E-mail:</th> </tr> <tr> <th scope="row">Data Wiadomości:</th> </tr> <tr> <th scope="row">Temat Wiadomości:</th> </tr> <tr> <th scope="row">Wiadomość:</th> </tr> <tr> <th scope="row"> </th> <td style="width:-20%; text-align: center;"><a href="usun.php?id=<?php echo $row_Recordset1['wiad_id']; ?>">Usuń Wiadomość</a></td> </tr> </table>
Dziękuję za wszelkie podpowiedzi
