Question about Macromedia Dreamweaver MX 2004

1 Answer

Connectivity how to connect a databse with dreamweaver. and which script will be best .

Posted by on


1 Answer



// Connects to your Database
mysql_connect("", "username", "password") or die(mysql_error());
mysql_select_db("Database_Name") or die(mysql_error());

//This code runs if the form has been submitted
if (isset($_POST['submit'])) {

//This makes sure they did not leave any fields blank
if (!$_POST['username'] | !$_POST['pass'] | !$_POST['pass2'] ) {
die('You did not complete all of the required fields');

// checks if the username is in use
if (!get_magic_quotes_gpc()) {
$_POST['username'] = addslashes($_POST['username']);
$usercheck = $_POST['username'];
$check = mysql_query("SELECT username FROM users WHERE username = '$usercheck'")
or die(mysql_error());
$check2 = mysql_num_rows($check);

//if the name exists it gives an error
if ($check2 != 0) {
die('Sorry, the username '.$_POST['username'].' is already in use.');

// this makes sure both passwords entered match
if ($_POST['pass'] != $_POST['pass2']) {
die('Your passwords did not match.');

// here we encrypt the password and add slashes if needed
$_POST['pass'] = md5($_POST['pass']);
if (!get_magic_quotes_gpc()) {
$_POST['pass'] = addslashes($_POST['pass']);
$_POST['username'] = addslashes($_POST['username']);

// now we insert it into the database
$insert = "INSERT INTO users (username, password)
VALUES ('".$_POST['username']."', '".$_POST['pass']."')";
$add_member = mysql_query($insert);

Posted on Dec 13, 2007


1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

A 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
The service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Good luck!

Posted on Jan 02, 2017


Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

Navman My50T - screen has frozen, can't get any other screen apart from initial start-up screen (except for screen showing connected to computer when connected by usb).

Had a similar problem with a MY60T.
Spoke to Navman support.
1. Connect your unit to the computer.
2. Use windows explorer to go to the Navman folder
3. Go to the database folder.
4. Delete "Database.db"
5. Switch off & re-start you unit. The databse file is re-created on startup

Dec 24, 2010 | GPS

1 Answer

How to import Xara menu in Dreamweaver?

make a div tag -link the javascript file, then insert <script menumaker src="gfx/menu_.js"></script> into the tag and then u can see the menu using live view

May 22, 2010 | Xara Menu Maker 1.1 Full Version for PC

1 Answer

Recommendation of the dreamweaver cs4

Windows Dreamweaver System Requirements

In order to run Dreamweaver CS4 on the Windows platform, you need the following minimum system requirements:
* 1GHz or faster processor
* Microsoft® Windows® XP with Service Pack 2 (Service Pack 3 recommended) or Windows Vista® Home Premium, Business, Ultimate, or Enterprise with Service Pack 1 (certified for 32-bit Windows XP and Windows Vista)
* 512MB of RAM
* 1GB of available hard-disk space for installation; additional free space required during installation (cannot install on flash-based storage devices)
* 1,280x800 display with 16-bit video card
* DVD-ROM drive
* Broadband Internet connection required for online services

Macintosh Dreamweaver System Requirements

In order to run Dreamweaver CS4 on a Macintosh, you need the following minimum system requirements:

* PowerPC® G5 or multicore Intel® processor
* Mac OS X v10.4.11–10.5.4
* 512MB of RAM
* 1.8GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system or on flash-based storage devices)
* 1,280x800 display with 16-bit video card
* DVD-ROM drive
* Broadband Internet connection required for online services
Hope it Helped!

Aug 26, 2009 | Adobe Dreamweaver CS4 for Mac

1 Answer

Dreamweaver FTP Error

i would suggest that your server ip address has possibly changed. I would contact the people who support your server and ask them if anything has changed.

the fact that your website is up and running does not mean that the FTP should work. Very often your FTP server is physically separate to your web server

please rate this answer if it has been useful



Feb 16, 2009 | Macromedia Dreamweaver MX 2004

1 Answer

I want connet foxpro databse to visiual basic

Using a DSN-less connection to open a free table
cn.Connect = "SourceType=DBF;" _
& "SourceDB=C:\Vfp\Samples\Data;" _
& "Driver={Microsoft Visual FoxPro Driver}"

Jan 20, 2009 | Computers & Internet

3 Answers

Uploading a SWF -

All sorted, i did not upload the script. Having done that it now works.

Dec 10, 2008 | Macromedia Flash MX

2 Answers

How to connevt visual basic with oracle(sql)

You need to install oracle client on client machine, and than you can use datasource (ODBC) to connect from vb to oracle.

Jan 23, 2008 | Computers & Internet

2 Answers


Dear peedamutu, javascript is a client side scripting language that works with browser. To learn it completely please read following tutorial

please press fixya if that hashelped you.

Dec 12, 2007 | Macromedia Dreamweaver MX 2004

1 Answer

Popup menu

Put you javascript part in between head tag..

<script language="javascript">
<!-- begin

function popup(Site)

// end -->


And add the following code into your <BODY> tag:



Your <BODY> tag should then look something like this:

<BODY bgcolor="#ffffff" text="#000000"

Note: In this and all script examples that follow, change the attributes "toolbar", "statusbar", etc., to on (1) or off (0) as you prefer (or omit them), and set the width and height to the size you require.

Oct 16, 2007 | Adobe Photoshop 7.0 for PC

2 Answers

How to make up a design using the dreamweaver?

Macromedia Dreamweaver for the first time, or on a new site for the first time, you need to define the Web site so that Dreamweaver can work with it. This process includes naming the site, placing the local files on a directory on your hard drive, and showing Dreamweaver where those files will be published on the Web. Follow these easy instructions to define a new Web site for Dreamweaver .

First, you should go to the "Site" menu and choose "Manage Sites".
As you can see from the image below, this will open a dialog window. Choose "New Site" from the "New" button.

Open Dreamweaver and Start the Site Definition Wizard
Name Your Site

Using Server Technologies on Your Dreamweaver Site
Where Should You Edit Your Dreamweaver Site Files
Defining Access to Your Dreamweaver Site
Always Test Your Connection
Site Check-out and Check-in with Dreamweaver
Review Your Site Definition
Your Site Now Appears in the Manage Sites Window
Start Editing Your Files in Dreamweaver

Oct 11, 2007 | Macromedia Dreamweaver MX 2004

Not finding what you are looking for?
Macromedia Dreamweaver MX 2004 Logo

Related Topics:

110 people viewed this question

Ask a Question

Usually answered in minutes!

Top Macromedia Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18420 Answers

Folusho Adeyanju
Folusho Adeyanju

Level 2 Expert

131 Answers


Level 3 Expert

2600 Answers

Are you a Macromedia Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides