Moze troche chaotycznie to tlumacze, ale podaje link gdzie to mam
http://ogloszeniapoznan.com/aa/
Kod jest w trakcie porzadkowania. Prosze nie zwraca na niego.
Plik show.php
<?php
$pokaz = $_GET['pokaz'];
$sql="select * from atrakcje where id='$pokaz' ";
<div id="LEWA">
<div class="gg1"><div class="wer">
</div>
<ul>
<li><a href="show.php?pokaz=
<?php echo $row['id']?>&s=dane" >Dane obiektu</a></li>
</div>
<div style="width:850px;
float: right;
background-color: #fff;
margin-top: 10px;
padding:0px;">
<?
?>
<?php
if(($_GET['s']=="dane")||($_POST['s']=="dane")):
{
include("dane.php");
}
endif;
?>
</div>
Plik dane.php
error_reporting(E_ALL);
ini_set('display_errors','1');
$pokaz = $_GET['pokaz'];
mysql_query("SET NAMES 'latin2'");
$sql="select * from atrakcje where id='$pokaz' ";
$result=mysql_query($sql);
echo $row['gmina'];
if(isset($_GET['changes'])):
{
$opis = $_GET['opis'];
$sql="update atrakcje set opis='$opis' where id='$pokaz'";
mysql_query($sql);
echo "<p align=\"center\">Twoje dane zostały zmienione.</p>";
}
else:
{
### wywietlenie wpisu #######################################################?>
<form action="show.php" method="get">
<? echo $_GET['pokaz'];?> <div ><input type="text" name="opis" value="
<? echo $row['opis']; ?>"></div>
<input type="submit" name="changes" value="Zapisz">
<input type="hidden" name="pokaz" value="<?php $pokaz;?>">
<input type="hidden" name="s" value="dane">
</form>
<?php
}
endif;
Tak jak "Nospor" podal zrobilem, lecz dalej nie dodaje :/