Hi!
how do i create a string $add with the text i write in the text area?
then when i click on submit it runs a php file that connects to a database and writes the content of the text area to a mysql database.
how do i create a string $add with the text i write in the text area?
then when i click on submit it runs a php file that connects to a database and writes the content of the text area to a mysql database.
RE: text to a string
Hope this helps
Stoot
RE: text to a string
<? $link = mysql_connect("localhost", "root", "965123015") or die("No foi possvel conectar: " . mysql_error()); echo "Conexo bem sucedida"; mysql_select_db("databasename") or die("No pude selecionar o banco de dados"); if ( ?????? == "ok") { mysql_query("INSERT INTO tablename (fieldname) VALUES (???????)"); echo "adicionado com sucesso"; } else { echo "no foi adicionado"; } ?>