Reply to Re: Insert Text From TEXTAREA into MySQL

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация