Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > Non-VodaHost website development software products . > Microsoft Products

Notices

Microsoft Products All Microsoft web development products.

Closed Thread
 
Thread Tools
  #1  
Old 05-23-2006, 10:56 PM
Corporal
 
Join Date: May 2006
Posts: 12
Question installing a database in front page ?

How do you install a database in front page ?
I have it set up according to the tutorial,
how do i get it in there to have the input from
the form to go in to it ?
Thank you for your help.
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 05-24-2006, 07:11 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

Frontpage has nothing to do with writing the data in your database. After you have created your form in frontpage, you need a script (usually in php, to process the info submitted by the form. If you are using a php script to process your form info, you will have to add some lines of code in the script, in order to have the info writen in the database. Then, of course, you will need another script to retreive the info from the database, and have it presented in one of your pages.
Although there are such script examples on the net, they are usually hard to create and use, unless you have some knowledge of php and MySQL.



Lets suppose that you already have in your script a part that will define three variables $address, $lastname and $name getting them from the array submitted by the form. You now want to write these three values in your database.

Here is an example of what the writing piece of code could look like:

@$pfw_strQuery = "INSERT INTO `clients`(`address`,`lastname`,`name`)VALUES (\"$address\",\"$lastname\",\"$name\")" ;
@$pfw_host = "localhost";
@$pfw_user = "dbusername";
@$pfw_pw = "bdpassword";
@$pfw_db = "dbname";
$pfw_link = mysql_connect($pfw_host, $pfw_user, $pfw_pw);
if (!$pfw_link) {
die('Could not connect: ' . mysql_error());
}
$pfw_db_selected = mysql_select_db($pfw_db, $pfw_link);
if (!$pfw_db_selected) {
die ('Can not use $pfw_db : ' . mysql_error());
}
//insert new record
$pfw_result = mysql_query($pfw_strQuery);
if (!$pfw_result) {
die('Invalid query: ' . mysql_error());
}
mysql_close($pfw_link);

These lines will write the three variables, name, lastname and address in the database, in the table "clients", in their respective fileds.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Last edited by navaldesign; 05-24-2006 at 10:11 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 05-24-2006, 05:26 PM
Corporal
 
Join Date: May 2006
Posts: 12
Default Re: installing a database in front page ?

Navaldesign,
If i am just using the database to store info like firstname, lastname, zipcode, email address, Date and Time, with the info hide from others.
Would i use the script like you wrote it, except add the other varibles ?
I am located in the US, so i'm not on line when you are.
Thank you for your help.
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 05-24-2006, 05:53 PM
Watdaflip's Avatar
Major General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 2,151
Default Re: installing a database in front page ?

yes, that will store the data into the a database, but you also need a script to display the data
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 05-24-2006, 10:18 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

Data writen in the database are only visible to only who can connect to the database, with the correct loggin info. Usually the info can be retreived from the database using another script, and then it is displayed in one of your pages, using some more code. To create the necessary code, you can either hand compile it, if you have the necessary knowledge, or use one of the commercial php/html code generators. In both cases, it requires some effort from you.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 05-27-2006, 01:56 AM
Corporal
 
Join Date: May 2006
Posts: 12
Default Re: installing a database in front page ?

Where is a good place to find a frontend script, for taking info and putting it into a database table ?
thank you for your input.
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 05-27-2006, 01:28 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

You must create a form in one of your pages and make a script as shown above. There are no ready made scripts for such kind of application, as each case is a case appart. Your problem will be more to create the necessary script for data retrieval and presentation.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 05-27-2006, 04:46 PM
Corporal
 
Join Date: May 2006
Posts: 12
Default Re: installing a database in front page ?

I already have the form set up to receive the first and last name,
the zipcode and email address. and it is going into a html area
of the website. Can i install any table in the database or
is there a place to find a table, to install into the database ?
Then i would just need some script like what was sent above.

1 more question, to send back an email to those that hit the summit
button on the form, would you you'se a php script or a java script
to take their input and send it to them in an email ?

Thank you for getting back with me.
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 05-27-2006, 10:00 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

The above script, in php, after writing the data in the database can also send an email to you as well as to the visitor (like an autoresponder) . Youcan personalize the message sent to them as you wish.

You must CREATE the database. There is no database in your account initially. You create it through CP. Then use phpMyAdmin to set up the table (name it as you like it, f.e. "clients". Then set the type and lenght of the fields.

As i told you, it is not simple: if the ifo is of vital importance, you will need field validation to make sure that the fields have been completed, taht they are the appropriate type of data, etc. The hardest part will be the data retreival and presentation script, especially if you want the presentation page to suit the rest of your site.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old 05-29-2006, 06:44 PM
Corporal
 
Join Date: May 2006
Posts: 12
Default Re: installing a database in front page ?

Navaldesign,
Happy memorial day !
What is the best way to set up a table in phpMyAdmin ?
Thank you for your help !
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old 05-29-2006, 11:22 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

There is only one procedure: select the database you want to create the tble in, then from the field Create new table, select the name and number of fields you want. Are you sure you want to do this? I still don't feel very confident about MySQL....
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old 05-30-2006, 06:36 PM
Corporal
 
Join Date: May 2006
Posts: 12
Default Re: installing a database in front page ?

You told me that a database was the best way to collect the peoples info in. Unless you know of another way of collecting this info. i am open for a better suggestion. I just need to collect the first name, last name, zipcode and thier email address. However i need to be able to read it easily and be able to delete it easily if some one wants out of the mailling list.
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old 05-30-2006, 06:48 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

The meaning of my post was not to discuss on which way is the best. A database IS the best way to collect and search info. My post was about your ability (and mine as well ) to create the necessary frontend scripts to manage the database directly from your site. If you need to only collect the info and then manually edit it or delete it through phpMyadmin, it becomes easier.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #14  
Old 05-31-2006, 04:47 PM
Corporal
 
Join Date: May 2006
Posts: 12
Default Re: installing a database in front page ?

in the php and data base forum i ask witch would be the best to do.
a database or excell. you said a data base, that is why i came to this forum.
eapj1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #15  
Old 05-31-2006, 08:27 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

Again: a database is the best way to manage info. The problem is not the database itself, but creating the scripts that will do the editing, updating, managing, and searching of the database stored info.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #16  
Old 08-21-2006, 03:19 AM
Master Sergeant
 
Join Date: Aug 2006
Posts: 68
Default Re: installing a database in front page ?

sorry to interrupt naval but where can i get this php generators ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #17  
Old 08-21-2006, 07:20 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

What do you mean php generators ? i'm asking because i have re-read the above posts and there is no mention (or at least i didn't see any) on php generators.
Anyway, php code generators are programs that usually create the necessart php code as well as the necessary html frontend templates for managing (usually) databases. Take php Magik for example.

But they usually require a remote connection to the database, wich is not available with VH nor with many other hosters. Have a look at this thread
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #18  
Old 08-21-2006, 08:51 PM
Master Sergeant
 
Join Date: Aug 2006
Posts: 68
Default Re: installing a database in front page ?

Quote:
Originally Posted by navaldesign
Data writen in the database are only visible to only who can connect to the database, with the correct loggin info. Usually the info can be retreived from the database using another script, and then it is displayed in one of your pages, using some more code. To create the necessary code, you can either hand compile it, if you have the necessary knowledge, or use one of the commercial php/html code generators. In both cases, it requires some effort from you.




that's what i was asking
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #19  
Old 08-21-2006, 08:54 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: installing a database in front page ?

Ok, i had writen php code generators, you wrote php generator, that got me a bit confused.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #20  
Old 08-25-2006, 07:38 AM
Master Sergeant
 
Join Date: Aug 2006
Posts: 68
Default Re: installing a database in front page ?

no prob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203