Kod
$query = "SELECT ID, NAME, ZDSA FROM `spts` where ID=1";
$result = mysql_query($query);
while( $row = mysql_fetch_array( $result )){
$STGB01 .= $row[ 'ZDSA' ].'';
}
$STGB03 = trim($_POST['TSTGB01']);
$wywietlSTEG = '<form action="" method="post">
<textarea name="TSTGB01" style="width: 300px; height: 200px;">'.$STGB01.'
</textarea><br />
<form action="index.php" method="post">
<input type="hidden" name="STGB02" value="true">
<input type="submit" value="Zapisz" />
</form>';
if (isset($_POST['STGB02']))
{
$zapytanie = "UPDATE `spts` SET `ZDSA` = '$STGB03' WHERE `id`='1'";
$idzapytania = mysql_query($zapytanie);
}
$result = mysql_query($query);
while( $row = mysql_fetch_array( $result )){
$STGB01 .= $row[ 'ZDSA' ].'';
}
$STGB03 = trim($_POST['TSTGB01']);
$wywietlSTEG = '<form action="" method="post">
<textarea name="TSTGB01" style="width: 300px; height: 200px;">'.$STGB01.'
</textarea><br />
<form action="index.php" method="post">
<input type="hidden" name="STGB02" value="true">
<input type="submit" value="Zapisz" />
</form>';
if (isset($_POST['STGB02']))
{
$zapytanie = "UPDATE `spts` SET `ZDSA` = '$STGB03' WHERE `id`='1'";
$idzapytania = mysql_query($zapytanie);
}
Pozdrawiam
ok wszystko ok problem tkwi wyżej.
Kod
<?
if (isset($_POST['STEG']))
{
if (isset($_POST['STEG']))
{