Jump to content
php.lv forumi

Tabulas Dati Iekš Textarea Formas


neo

Recommended Posts

Ir kautkaadi dati tabulaa "tests". Vajag lai nolasot tabulu vini paraadaas formaa, piemeeram textarea laukaa.

Kaa to var dabuut gatavu?

<code><font color="#000000">

<font color="#0000CC"><?
show </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/mysql_query]mysql_query[/url]</font><font color="#006600">(</font><font color="#CC0000">"select * from tests"</font><font color="#006600">);
while (</font><font color="#0000CC">$a </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/mysql_fetch_array]mysql_fetch_array[/url]</font><font color="#006600">(</font><font color="#0000CC">$show</font><font color="#006600">))
{
</font><font color="#0000CC">?>
</font><form method="post" action="bullshit.php">
<input type="text" name="diena" size="2" value="<font color="#0000CC"><? </font><font color="#006600">echo </font><font color="#0000CC">$a</font><font color="#006600">[</font><font color="#CC0000">"diena"</font><font color="#006600">]; </font><font color="#0000CC">?></font>">
<textarea rows="10" name="teksts" cols="65"><font color="#0000CC"><? </font><font color="#006600">echo </font><font color="#0000CC">$a</font><font color="#006600">[</font><font color="#CC0000">"teksts"</font><font color="#006600">]; </font><font color="#0000CC">?></font></textarea>

<input type="submit" value="Aiziet!" name="submit">
<font color="#0000CC"><?
</font><font color="#006600">}
</font><font color="#0000CC">[url=http://lv.php.net/mysql_free_result]mysql_free_result[/url]</font><font color="#006600">(</font><font color="#0000CC">$show</font><font color="#006600">);
</font><font color="#0000CC">?>
</font>
</font>
</code>

Link to comment
Share on other sites

×
×
  • Create New...