Screamwalker Posted December 10, 2012 Share Posted December 10, 2012 How to put things into my table? I've got the html code (input type...), but how to connect to the database and put text into tables? Quote Link to comment https://forums.phpfreaks.com/topic/271828-imput-into-table/ Share on other sites More sharing options...
MrHaster Posted December 10, 2012 Share Posted December 10, 2012 I was actually using a little project at the moment, you could try this: <?PHP IF(isset($_POST['Start'])) { MYSQL_CONNECT(...); MYSQL_SELECT_DB(...); $One="INSERT INTO tabeltest(tabelone_name,tabeltwo_email)VALUES('{$_POST['name']}','{$_POST['email']}')"; MYSQL_QUERY($one); MYSQL_CLOSE(); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/271828-imput-into-table/#findComment-1398571 Share on other sites More sharing options...
Pikachu2000 Posted December 10, 2012 Share Posted December 10, 2012 I'm assuming since you posted in the MS SQL forum, you're indeed using Microsoft SQL? If so, here are all of the mssql functions: http://us1.php.net/manual/en/ref.mssql.php If not, what database are you using? Quote Link to comment https://forums.phpfreaks.com/topic/271828-imput-into-table/#findComment-1398573 Share on other sites More sharing options...
Screamwalker Posted December 10, 2012 Author Share Posted December 10, 2012 Thanks MrHaster, it works! Quote Link to comment https://forums.phpfreaks.com/topic/271828-imput-into-table/#findComment-1398574 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.