Problem sending data from Dreamweaver forms to mySql databas

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
leslie_benjamin
Forum Newbie
Posts: 1
Joined: Thu Aug 07, 2003 7:02 am
Location: Tanzania, East Africa

Problem sending data from Dreamweaver forms to mySql databas

Post by leslie_benjamin »

I'd like to post data (usernam & password) from Dreamweaver forms to mysql database. What could be wrong for me to fail?

1. Are there database connectivity codes using PHP?
2. If so, what is the sample?

Kindly waiting a response...

Background:
Building site using Dreamweaver utility
Database is mySql
Table to be linked, "login"

Code: Select all

<?php

?>
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

assuming you have php installed, start here to open a connection:
http://us2.php.net/function.mysql-connect

use mysql_select_db()
http://us2.php.net/manual/en/function.m ... ect-db.php

and then mysql_query()
http://us2.php.net/manual/en/function.mysql-query.php

have fun!
snek_one
Forum Newbie
Posts: 7
Joined: Wed May 21, 2003 9:07 am

Post by snek_one »

ummm dreamweaver can do all that for you if you are using Dreamweaver MX..

I have built multiple sites with it now, and am admin of 1 which I keep on expanding.. most of the coding is done by dreamweaver and i just expand that with my own code..

if you need any example code let me know.. i got a couple of good scripts here which are easy to edit..
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

nooo learn to code my friends... never trust anything with a name like 'dreamweaver'. we will help you see the light lol
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Welcome to the forums.

This board is more for advanced theoretical issues - you'll probably get a better response in the normal board for basic questions.
Post Reply