/    Sign up×
Community /Pin to ProfileBookmark

Uploading PHP files onto my website

hi

i have created a website in HTML & using PHP to connect my membership form to a MySQL database.

i have created 3 files:
1)membershipform.php – this has the php to insert the details into mysql.

How do i make the html code appear because it is a php file?

2)mysql_connection.php – connects to my_sql & creates/selects database.

3)create_table.php – creates the tables in mySQL.

How do i make it when the user enters their details in the membership form & clicks submit, it goes to the mysql_connection.php & create_table.php file to create database&tables?????

hope this makes sense, just a beginner at this PHP stuff.

many thanks
mark

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@scragarFeb 03.2005 — [code=php]<? // start PHP
@include("mysql_connection.php") or die("Unable to connect to the database.");
@include "create_table.php" or die("unable to create tables.");
?>
The tables were successfully created.<br>
<a href="index.php" alt="return to the main page">Return to the main page</a>[/code]
×

Success!

Help @crippz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...