Read the directions completely before beginning
Read the directions completely before beginning.
All things you need to be aware of are in red.
To set up your MySQL Database you will need to consult your hosting service.
They have different protocols for setting it up. Once you get it setup follow
the instructions below.
First in the folder with the rest of your scripts you will notice
Iframe tag script.txt Place this script in
you HTML page. You may need to change the link info to the script
src="qmessage/quickmessage.php.
If you know how to use sql.txt
you
can set up your database table by clicking SQL at the top
of the database page. Once the page loads, go down to "Or
Location of the textfile :" and click browse. Here you will upload
qmessage-sql.txt and click Go.
Your Database table should set up. If the tables are set and checked
scroll down this page to the instructions on "configmail.php"
On some websites you may have to load manually. If so the
instructions are below.
MySQL Manual Table Instructions.
1. Once you open you Database, go down to "Create new
table on database..."
and type "quickmessage" in the "name"
text box.
2. Then type "7" in the text box labeled "Fields"
and click on GO.
3. On the next page, Going across from the left type "id"
in the "Field" box.
4. Then in the "Type" select "INT"
5. In the box "Length/Values*", type "11"
6. Skip "Attributes" and in "Null"
box select "not null".
7. Go to Extra and Select "auto_increment"
8. Then select "Primary" radio
button. On some Databases you may have to Select "Index"
9. Go to the next line.
10. In the "Field" box type "ticket"
11. In the "Type" box select "INT".
12. In the box "Length/Values*", type "11".
13. Skip "Attributes" and in "Null"
box select "null".
14. Go to the next line.
15. In the "Field" box type "postdate"
16. In the "Type" box select "VARCHAR".
17. In the box "Length/Values*", type "100".
18. Skip "Attributes" and in "Null"
box select "null".
19. Go to the next line.
20. In the "Field" box type "name"
21. In the "Type" box select "VARCHAR".
22. In the box "Length/Values*", type "100".
23. Skip "Attributes" and in "Null"
box select "null".
24. Go to the next line.
25. In the "Field" box type "email"
26. In the "Type" box select "VARCHAR".
27. In the box "Length/Values*", type "100".
28. Skip "Attributes" and in "Null"
box select "null".
29. Go to the next line.
30. In the "Field" box type "message"
31. In the "Type" box select "VARCHAR".
32. In the box "Length/Values*", type "100".
33. Skip "Attributes" and in "Null"
box select "null".
34. Go to the next line.
35. In the "Field" box type "STATUS"
36. In the "Type" box select "VARCHAR".
37. In the box "Length/Values*", type "100".
38. Skip "Attributes" and in "Null"
box select "null".
39. Click Save.
-----------------------------------------------------------------
To set up your php script.
This script is already conformed to work with almost all Databases. But depending on the
hosting company this part of the script could be different. Email the tech
support of your hosting company and ask "What is the connection string protocol
for the MySQL database?"
1. Right-click "configmail.php" and go to "open
with..." and then "notepad".
$conf['database_name'] = "databasename";
//Type the name of the database
$conf['database_host'] = "localhost or databasehost";
//Type database host. Many times it's localhost
$conf['database_login'] = "username";
database user name
$conf['database_pass'] = "yourpassword";
password to your database
$bgcolor="FFFFFF"; // Webpage background color.
Omit # symbol
$textcolora = "000080"; // text color Omit # symbol
$reply="ON"; // Email Auto Respond
ON or OFF
$headers = "From: test@abynex.com\r\n"; // Email
Address
$body = "Thanks for stopping by. Your input is greatly
appreciated.\n\nAbynex.com"; // Email message.
$subline = "Thanks for Stopping by."; // Email
subject line
Save the script.
Upload everything to
your website. In the same folder as your other HTML Documents.
Wyszukiwarka
Podobne podstrony:
Read Firstread firstRead FirstRead FirstRead Firstread firstRead Firstread firstRead FirstRead FirstRead FirstRead Firstread firstREAD FIRSTREAD FIRSTwięcej podobnych podstron