|
Posted by Rik on 05/15/06 20:16
TristaSD wrote:
> Could you give me an example? I'm not following you.
1. Learn to quote.
2. some pseudocode, I'm not going to write it all out, protect against SQL
injection, and so on:
<?php
if(isset($_POST['submit'])){
mysql_query("UPDATE table SET field='".$_POST['my_textfield']."' WHERE
something");
} else {
$field= mysql_query('SELECT field FROM table WHERE something');
echo "<textarea name='my_textfield'>$field</textarea>";
}
?>
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|