Jump to content

xampp and dreamweaver


Recommended Posts

I have developed several web sites using xampp within dreamweaver. One my new web site which has
frames as all of them do, my php scripts are not working properly. I am asked if I want to save or
open the php script, to open it will put me in dreamweaver. I am using dreamweaver 8.

On the ones I have previously created they also have frames and are working correctly. What could I
doing wrong. I get the same results on Netscape and IT. Apache, MYSQL, etc. is working. If I just go
to the page that call the php script from either of these the PHP script brings up the correct page.

Thanks for any help.
Dee [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /]
Link to comment
https://forums.phpfreaks.com/topic/12981-xampp-and-dreamweaver/
Share on other sites


hi Dee,
first of all im very sorry..im not here to help on your topic posted..im a new member in tis forum n im not sure where to post my question..im a practical student currently doing a project under one company..i was asked to develop an intranet system..im using xampp sotfware..i have already developed a database in myphpadmin. im not sure on how to connect it to the dreamweaver...is there any coding needed??hope u can help me on it..tnx a million

jams

im using dreamweaver mx
apache server
mysql



[!--quoteo(post=388325:date=Jun 26 2006, 09:27 PM:name=deemurphy)--][div class=\'quotetop\']QUOTE(deemurphy @ Jun 26 2006, 09:27 PM) [snapback]388325[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I have developed several web sites using xampp within dreamweaver. One my new web site which has
frames as all of them do, my php scripts are not working properly. I am asked if I want to save or
open the php script, to open it will put me in dreamweaver. I am using dreamweaver 8.

On the ones I have previously created they also have frames and are working correctly. What could I
doing wrong. I get the same results on Netscape and IT. Apache, MYSQL, etc. is working. If I just go
to the page that call the php script from either of these the PHP script brings up the correct page.

Thanks for any help.
Dee [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /]
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/12981-xampp-and-dreamweaver/#findComment-50294
Share on other sites

To asnwer your question this is what I use:

$conn = mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("database",$conn) or die(mysql_error());

This worked for me with dreamweaver MX and dreamweaver 8.

I just hope someone can help me soon.

Thanks
Dee
Link to comment
https://forums.phpfreaks.com/topic/12981-xampp-and-dreamweaver/#findComment-50375
Share on other sites

hi dee,
tnx for quick reply..i have a another doubt..where am i suppose to insert that function? and do i need to do any modification in the config.inc?tis file can be found in phpMyAdmin


jams




[!--quoteo(post=388798:date=Jun 28 2006, 07:12 AM:name=deemurphy)--][div class=\'quotetop\']QUOTE(deemurphy @ Jun 28 2006, 07:12 AM) [snapback]388798[/snapback][/div][div class=\'quotemain\'][!--quotec--]
To asnwer your question this is what I use:

$conn = mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("database",$conn) or die(mysql_error());

This worked for me with dreamweaver MX and dreamweaver 8.

I just hope someone can help me soon.

Thanks
Dee
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/12981-xampp-and-dreamweaver/#findComment-50622
Share on other sites

  • 2 weeks later...
[quote author=deemurphy link=topic=96917.msg388798#msg388798 date=1151496738]
To asnwer your question  this is what I use:

$conn = mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("database",$conn)  or die(mysql_error());

This worked for me with dreamweaver MX and dreamweaver 8.

I just hope someone can help me soon.

Thanks
Dee
[/quote]

if you use php5, use mysqli extension... oop available for mysqli connection,
easier, and i think safer.
[code]
<?php
$mysqli = new mysqli ($host, $username, $password, $schema);
if (mysqli_connect_errno()) echo "error connection to database";
else
{

    //inset, update, alter, etc... which returns nothing.
    $mysqli->query ($query);
    if (mysqli_error ($mysqli)) echo "error updating database";


    //select
    $result = $mysqli->query ($query);
    if (!$result) echo "error getting information from database";
    elseif ($result->num_rows == 0) echo "no result";
    else
    {
        while ($row = $result->fetch_assoc())
        {
            //example:
            $something_id = $row['row_id'];
            $something_name = $row['row_name'];
        }
    }

    //if the result was successful ( even 0 row ) be sure to close result before user further $mysqli->query
    if ($result) $result->close();

    //and close the connection once your done.
    $mysqli->close(); //or unset ($mysqli)
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/12981-xampp-and-dreamweaver/#findComment-56044
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.