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? 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(); } ?> 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? 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! Link to comment https://forums.phpfreaks.com/topic/271828-imput-into-table/#findComment-1398574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.