{"id":1417,"date":"2018-01-19T19:22:49","date_gmt":"2018-01-19T19:22:49","guid":{"rendered":"http:\/\/goofy-trucks.flywheelsites.com\/interfacing-with-ms-access-page-4\/"},"modified":"2018-01-19T19:24:46","modified_gmt":"2018-01-19T19:24:46","slug":"interfacing-with-ms-access-page-4","status":"publish","type":"post","link":"https:\/\/phpbuilder.com\/interfacing-with-ms-access-page-4\/","title":{"rendered":"Interfacing with MS Access Page 4"},"content":{"rendered":"<div class=\"phpbuilder-content\">\n<div class=\"phpbuilder-meta\">\n<div class=\"\">By Siddharth Venkatesan<\/div>\n<div class=\"\">on July 30, 2000<\/div>\n<\/p><\/div>\n<div id=\"overflow-content\">\n<h2>Interfacing With Database<\/h2>\n<div class=\"articlePara\">\nOk, now we can get down to the fun part, interfacing with a database!<\/div>\n<div class=\"articlePara\">\nWe first create 2 php files. One to act as a form to get data from the user and<br \/>\nanother to actually process the command. I know there are more elegant ways of<br \/>\ndoing this. However, I was after a way which would be the easiest to understand.<\/div>\n<div class=\"articlePara\">\nThe first PHP file is as follows. It is the form into which the user enters information.<br \/>\nYou should be able to copy and paste the code into you favourite editor. You can<br \/>\ncall this file whatever you want. I have called it <b>FormInput.php3.<\/b><\/div>\n<div class=\"articlePhpEx\">\n<font face=\"courier\"><code><span style=\"color: #000000\"><\/p>\n<p><span style=\"color: #0000BB\">&lt;?php<\/p>\n<p><\/span><span style=\"color: #007700\">function\u00a0<\/span><span style=\"color: #0000BB\">HTML_Head<\/span><span style=\"color: #007700\">()\u00a0{<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0echo\u00a0<\/span><span style=\"color: #DD0000\">\"<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;HTML&gt;&lt;HEAD&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;TITLE&gt;Processing\u00a0Form&lt;\/TITLE&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;\/HEAD&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;BODY\u00a0BGCOLOR=\"#D5D5AB\"&gt;\"<\/span><span style=\"color: #007700\">;<br \/>\n<br \/>}<\/p>\n<p>function\u00a0<\/span><span style=\"color: #0000BB\">HTML_Form<\/span><span style=\"color: #007700\">()\u00a0{<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0echo\u00a0<\/span><span style=\"color: #DD0000\">\"<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;FORM\u00a0NAME\u00a0=\u00a0\"AccessInterface\"\u00a0METHOD=post\u00a0ACTION=\"DataAccess.php3\"&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0Please\u00a0enter\u00a0the\u00a0details\u00a0you\u00a0wish\u00a0to\u00a0be\u00a0inserted\u00a0into\u00a0the\u00a0Access\u00a0Database.&lt;br&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0First\u00a0Name:&lt;input\u00a0name=\"FirstName\"\u00a0TYPE=\"text\"\u00a0SIZE=\"25\"&gt;&lt;br&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0Last\u00a0Name:&lt;input\u00a0name=\"LastName\"\u00a0TYPE=\"text\"\u00a0SIZE=\"25\"&gt;&lt;br&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0Phone\u00a0Number:\u00a0&lt;input\u00a0name=\"PhoneNumber\"\u00a0TYPE=\"text\"\u00a0SIZE=\"25\"&gt;&lt;br&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;INPUT\u00a0type=\"Submit\"&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0&lt;\/form&gt;<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0\"<\/span><span style=\"color: #007700\">;<br \/>\n<br \/>}<\/p>\n<p>function\u00a0<\/span><span style=\"color: #0000BB\">HTML_Existing<\/span><span style=\"color: #007700\">()\u00a0{<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0echo\u00a0<\/span><span style=\"color: #DD0000\">\"Existing\u00a0database\u00a0entries\"<\/span><span style=\"color: #007700\">;<br \/>\n<br \/>}<\/p>\n<p>function\u00a0<\/span><span style=\"color: #0000BB\">HTML_Foot<\/span><span style=\"color: #007700\">()\u00a0{<br \/>\n<br \/>\u00a0\u00a0\u00a0\u00a0echo\u00a0<\/span><span style=\"color: #DD0000\">\"&lt;\/body&gt;&lt;\/html&gt;\"<\/span><span style=\"color: #007700\">;<br \/>\n<br \/>}<\/p>\n<p><\/span><span style=\"color: #0000BB\">HTML_Head<\/span><span style=\"color: #007700\">();<br \/>\n<br \/><\/span><span style=\"color: #0000BB\">HTML_Form<\/span><span style=\"color: #007700\">();<br \/>\n<br \/><\/span><span style=\"color: #0000BB\">HTML_Existing<\/span><span style=\"color: #007700\">();<br \/>\n<br \/><\/span><span style=\"color: #0000BB\">HTML_Foot<\/span><span style=\"color: #007700\">();<\/p>\n<p><\/span><span style=\"color: #0000BB\">?&gt;<\/span><br \/>\n<\/span><br \/>\n<\/code><\/font><\/div>\n<\/div>\n<p><\/p>\n<div style=\"float: left; padding:15px; color:#17AAF3\">\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"siddarth200002289ba9.html?page=3\">\u00ab Previous Page<\/a><\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"siddarth20000228.html\">1<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"siddarth200002284658.html?page=2\">2<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"siddarth200002289ba9.html?page=3\">3<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"background-color:#B6E5FC; font-size:16px; margin-top:1px; padding:1px 4px 1px 4px; color:#000; font-style:bold; float:left;\">4<\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"siddarth20000228af4d.html?page=5\">5<\/a> <\/div>\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"siddarth20000228af4d.html?page=5\">Next Page \u00bb<\/a><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>By Siddharth Venkatesan on July 30, 2000 Interfacing With Database Ok, now we can get down to the fun part, interfacing with a database! We first create 2 php files. One to act as a form to get data from the user and another to actually process the command. I&#8230; <a href=\"https:\/\/phpbuilder.com\/interfacing-with-ms-access-page-4\/\" class=\"readmore\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1417","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/comments?post=1417"}],"version-history":[{"count":1,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1417\/revisions"}],"predecessor-version":[{"id":3280,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1417\/revisions\/3280"}],"wp:attachment":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/media?parent=1417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/categories?post=1417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/tags?post=1417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}