View Single Post
Old 09-11-2011, 11:26 PM  
rickdu
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: Los Angeles
Posts: 239
you don't need a download.... too simple

Code:
<? 
mysql_connect("localhost","USERNAME","PASSWORD");
mysql_select_db("DATABASE_NAME");

mysql_query("insert into TABLE_NAME values('$_POST[name]','$_POST[email]')");

?>
Done!
A few obvious changes and you should be able to make it work..

http://dev.mysql.com/doc/refman/5.1/...ate-table.html
http://dev.mysql.com/doc/refman/5.5/en/insert.html

Last edited by rickdu; 09-11-2011 at 11:27 PM..
rickdu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote