Dreamweaver/PHP/MySQL

I am so far out on the limb of my techno capability that if I
even think of leaning forward I will fall into the abyss.
Am using Dreamweaver MX 2004 to create PHP
view/add/update/delete forms to connect to a MySQL 5.0 database
hosted by HotZona.com. Use PhpMyAdmin to set up and define the
tables (about 20 tables). All of the work I have done so far has
been done inside of Dreamweaver MX 2004. Have not modified or
inserted any original code in any of the Php files generated so
far.
Have been able to setup view/add/update/delete forms for each
table. That took me some time and a major learning curve. Oh, and
that was after spending a month figuring out what happened to the
DW connection to the MySQL database.
Some of the tables are lists to be used as lists in other
tables. That is where I am now stumped.
I can set up (useing DW) an add form for a table that uses
another table for a list in one field. It shows properly in the add
form. But, when you look in the table using PhpMyAdmin, the field
in the table does not contain the value of the list item selected.
I've made a couple more changes so I may have licked this one.
But, I cannot figure out how to use DW to pull up the
sub-list value in vew, update or delete forms. Any suggestions on
how to do this in DW or do I have to write the code independent of
DW?
Any suggestions?
Thanks
Mike Garey

hi ,
you can always try the macromedia devnet sites , they have
ongoing tutorials and discussions on all areas, including php with
dreamweaver8.
http://www.adobe.com/devnet/topics/php.html
be aware though that some of the tutorials require the use of
third party php extensions, like interakt products, which is a
shame because most of them are expensive to buy. But they are still
worth a read.
hope this is some help.
ted.

Similar Messages

  • Dreamweaver PHP/mySQL poll problem?

    Hi,
    I'm a PHP/mySQL noob who's using some of Dreamweaver's 8
    (8.2) out-of-box Update server behaviors to update a database of
    results for a poll. I know there's a lot of free polling apps out
    there but I need to have the poll show up in another page as
    opposed to being refreshed/displayed in the same page/content area.
    I've successfully built the backend in phpMyAdmin and I'm
    able to list the database contents and do basic updates to the poll
    questions and answers. However, I've been unable to pass an
    incremented result value via a Dreamweaver radio button group
    (which is the normal poll format) without previous unselected
    results being overwritten.
    When an answer is selected the result is indeed incremented
    and is displayed in the Result Listing but unfortunately it also
    overwrites any preexisting data for that poll and replaces it with
    zero. For example:
    Question:
    Answer a) 0
    Answer b) 0
    Answer c) 1 (this would be the value that was selected)
    Answer d) 0
    If c is selected again the value is stored and incremented
    and the value is now 2. However, if that value is not selected,
    then another value is incremented and c would be wiped. I've even
    resorted to trying to use javascript to maintain the original state
    but to no avail I was just previously incrementing the inline php
    radio button value and/or assigning different names to each of the
    radio buttons. This, of course, allows people to select multiple
    values which runs contrary to the whole idea behind radio buttons,
    but I thought I'd see if that worked . Anyway, when the radio group
    is assigned the same value it merely increments everything.
    example:
    http://www.dailydatum.com/funFacts/funFactsListingSingleUpdate15.php
    As you can see, i'm up to version 15 and gritting me teeth,
    lol. Any help would be mighty appreciated.
    Mario

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

  • Dreamweaver php mysql date

    I have created a database in mysql 5 and I have also created
    a basic input record form. I am using Dreamweaver to create web
    pages, but I am having a little trouble with the date function.
    I am trying to figure out how to have "todays date"
    automatically input into the mysql database without user input in
    that field. Can anyone help?

    Sorry that it took me so long to respond top your post, but I
    have been trying a lot of things out.
    First off, I understand exactly what you were saying and it
    works on one page, but not on another. Here's the deal:
    the page that it works on is a project input page where the
    code is pretty much what you have already showed me. It works
    perfectly using the NOW()
    The other page is an update page, but the update code is
    writen differently, for example:
    UPDATE table SET field1=%s, field2=%s
    and in this script, the NOW() does not work.
    I want the date to be auto input into a different field and
    also I want the value "Y" to be input into another field once the
    update record buton has been pressed

  • How to use spry in the dreamweaver with the php/mysql

    hello,
    Iam new to the spry framework
    and i want to know can we use the spry in the dreamweaver
    along with php / mysql code
    if so please tell how to do this
    thanks in advance

    swetha123 wrote:
    > but when i complie this page it is not showing the
    preiew or any thing in the
    > browser i saved this page with the extension .php if i
    run the same page with
    > .html then i can see the design but it is not being
    executed
    The reason you get nothing when you save the page with a .php
    extension
    is because you have display_errors turned off, so you can't
    see the
    error message telling you there's a syntax error. The
    semicolon is
    missing at the end of this line:
    > echo "<font color='white'>Hello
    Swetha</font>"
    The reason it doesn't work with an .html extension is
    probably because
    you haven't uploaded SpryAssets/SpryTabbedPanels.js. I have
    copied your
    page and tested it locally with the correct JavaScript file,
    and the
    tabbed panels work as expected.
    There are lots of other mistakes in your page. You can't use
    float and
    position:absolute on the same element. In at least one place,
    you have
    used </br> instead of <br />. You have also got
    an closing paragraph tag
    after the paragraph that contains abc.jpg.
    Getting Spry or any other JavaScript library to work
    correctly relies on
    good, clean code. Your mixture of inline styles and font tags
    is going
    to make it difficult to incorporate Spry into your pages. I
    suggest you
    improve your HTML and CSS before bringing Spry into the mix.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP MySQL sites created by dreamweaver mx 2004 crash on safari

    Hello,
    The title says it all, but i will elaborate.
    I develop PHP, MySQl driven database websites, I use
    Dreamweaver MX 2004 and I work on a macintosh, using both safari
    version 2 and 3.
    i have noticed that whenever I post a database item (add,
    edit to table) my safari hangs and I get a page cannot be displayed
    error after 1 minute or so, even though the db function went
    through.
    Now, this only happens with safari and it only happens with
    pages I build with dreamweaver, any hand coded websites I build do
    not do this.
    i have posted this on the apple website with no response, I
    am hoping someone here can help me.

    On Fri, 23 Nov 2007 16:21:50 +0000 (UTC), "MacDaddy333"
    <[email protected]> wrote:
    >Hello,
    >
    > All of the sites that have this issue are secure, one is
    a shopping cart
    >
    >
    http://www.jennywrenpaperie.com
    >
    > You will need to create a user account and then log in
    to see the problem, as
    >for the code, well, there is so much code involved, many
    pages of includes, so
    >i cant post it all
    >
    > One more thing, this doesn't happen to every Safari
    user, only a few, very
    >frustrating as you can imagine
    And I should give you my email address because...
    Seriously, you want people to troubleshoot your site, create
    a dummy
    account that we can log in with.
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • Where to go next with Dreamweaver and server-side (php/mysql) applications?

    This question is mainly directed at David Powers but  I appreciate any input from anyone with the same concern or question.
    I've been using DW since the change from Macromedia and have developed a number of applications using built in server behaviors and sb extensions from ADDT, WebAssist, etc. I've learned to customize these behaviors to fit my needs always keeping within the "canned" code. In this way I've "learned" php.
    I own most of David's books and in fact, it was because of these that I have any idea about what I'm doing and went in this direction in my "developer" career (building php/mysql applications using Dreamweaver.)
    With the decision to remove server behaviors (and the other "developer" panels) from DW and with the deprecation of the mysql extension from the php landscape, I'm wondering where to go next? I fully understand this has to happen.
    I'm aware of some alternatives:
    Zend or some other framework - to me, this seems extremely complex
    Keep several versions of DW installed
    Stick to Joomla/WordPress/Drupal - let others who know what they're doing build the architecture
    Actually LEARN php - wish I had time; too much work to do (I know how illogical that sounds but it's a very real situation)
    I know I'm going to have to switch out all that deprecated code or better yet, rebuild the many applications which used the DW (and other) server behaviors. I'm just not sure which way to turn.

    rjjacob wrote:
    Since I wrote this post I concluded that there is no substitute for understanding and have started my re-education by delving further into the issue with updated PHP/MySQL books and tutorials so I can prepare for a Dreamweaver without this functionality.
    Yes, I too have concluded that is the way to go as well. There really is no substitute for learning as much as you can. Whilst the DW Server Behaviours were very convenient they have not kept pace, Adobe prefering to spent their time on less important updates in my opinion. The Server Behaviours are what makes Dreamweaver the tool of choice  for database integration for those who lack the knowledge. I feel the Adobe team will regret not coming up with an alternative. Anything that detracts from making the program what it is is a step in the wrong direction and for sure this is a big step in the wrong direction.
    rjjacob wrote:
    I have mainly used DW server behaviors in my development projects that's why I am curious about what others are doing to make the change. I'm surprised there haven't been more posts; perhaps I'm the last one to be taking action about this, or maybe no one is too worried about it yet.
    I think a lot have changed their working practice but many more are burying their heads in the sand. sql_ support is a way off from being completely dropped yet.
    rjjacob wrote:
    Anyway, your assessment of how terrible the server behaviors are is correct. I'm finding that true after barely breaking the binding on a few books about the greater subject and looking into mysqli and PDO.
    Yes, because I relied heavily on them I did not know how bad they were until I forced myself to look further afield. What you can do in a couple of lines of code the DW Server Behaviors produced quadruple or more to achieve the same.
    rjjacob wrote:
    But they sure were convenient!
    Yes, I agree. Maybe some extention developer will come up with a set of new improved behaviours. I tell you if they do they will make a shed load of money.

  • Dreamweaver newbie - php & mysql help

    hi,
    new to dremweaver, have used .net in past with vwd and found it straight forward to drag over grid view etc to view data from sql database.
    i want to use php and mysql now and looking at dreameaver cs4 i really want to know what each navigation is. i.e. how do i create my mysql database and drag say a grid view in dreamweaver cs4 over to view?
    basically just need to know the basics navigation of what buttons i need for to interact using php and mysql?
    any help would be great, and also if anyone can recommend a good book on php/mysql with dreamweaver cs4 as a by the by then would greatly appreciate it.
    many thanks
    andy

    Take a look at this book:
    http://www.amazon.com/Essential-Guide-Dreamweaver-Ajax-Essentials/dp/1430216107
    I didn't read it, but I am currently reading the author's another book (David Powers: PHP Object-Oriented Solutions) and he is good.
    David is also a community expert on these forums.

  • Macromedia Dreamweaver "Unidentified Error" PHP MySQL, help please

    Ok,
    I've been developing web applications with with PHP/MySQL for some time now, but had been unable to afford dreamweaver to help me out. Thus every website I made came from strait "notepad" style typeing. Everything always worked just fine. Recently though I got my hands on Macromedia Studio MX, but have been having troubles ever since then.
    I wrote my own PHP script to connect to my MySQL database on my computer (localhost), and it worked like a charm. Then I went over to dreamweaver, followed all the steps, entered the information, clicked the "test" button and I get the an error "an unidentified error occured".
    At this point I checked everything tried again, and then that rendered the same result, I went online and found the same problem at Macromedia's webstie: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16515
    I've tried everything mentioned there to no avail. I was hopeing someone out there would know what is wrong with my connection. Quick summary:
    Trying to connect with Dreamweaver to localhost MySQL database, with PHP MySQL settings. I get "an unidentified error occured". But the informaiton has been verified as correct with my own PHP script.

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?

    When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective.  I cannot use the server behavior.  I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want.  I cannot change that except in the server behavior, so I'm stuck.  I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case.  I will appreciate any suggestions!  Is there any way to embed a call to a target page manually?  All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page.  That'll drive a user bonkers!
    Thanks!
    Delete Record in CS6 Dreamweaver using PHP & MySQL?

    Well, your error message is self-explanatory.
    DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
    I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
    http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
    Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
    Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
    Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
    It should work as expected.
    If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
    Let us know how it goes.
    -ST

  • Using LIMIT function in PHP/MySQL Dreamweaver RecordSet

    I want to have a record set that skips the first record, and shows the next three. I've found several suggestions online to use the LIMIT function, but I keep getting "error in SQL syntax." What am I missing?
    mysql_select_db($database_adventcms, $adventcms);
    $query_rsSideNews = "SELECT * FROM tb_news LIMIT 1, 3 WHERE status = 'Live' ORDER BY `date` DESC";
    $rsSideNews = mysql_query($query_rsSideNews, $adventcms) or die(mysql_error());
    $row_rsSideNews = mysql_fetch_assoc($rsSideNews);
    $totalRows_rsSideNews = mysql_num_rows($rsSideNews);

    And there we go. That's the reason I need to go through PHP/MySQL training rather than relying on google searches!

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • PHP/Mysql issue

    I use Dreamweaver CS3 to create my sites on a Windows/Apache
    Server with PHP5 and Mysql 5. The site works perfectly on my
    testing server at home. On the Web server I'm getting the following
    error which causes the page to not load:
    PHP Warning: mysql_query(): supplied argument is not a valid
    MySQL-Link resource in
    /hermes/bosweb/web248/b2488/ipw.horsehelp/public_html/residents/residents.php
    on line 63
    PHP Warning: mysql_select_db(): supplied argument is not a
    valid MySQL-Link resource in
    /hermes/bosweb/web248/b2488/ipw.horsehelp/public_html/residents/residents.php
    on line 61
    The lines in question are:
    Line 61 - mysql_select_db($database_conn_phh, $conn_phh);
    $query_getSuccess = "SELECT * FROM horses WHERE status =
    'Success Story' ORDER BY horse_barn ASC";
    $getSuccess = mysql_query($query_getSuccess, $conn_phh) or
    die(mysql_error());
    $row_getSuccess = mysql_fetch_assoc($getSuccess);
    $totalRows_getSuccess = mysql_num_rows($getSuccess);
    All of the code is supplied by Dreamweaver. I did not tweak
    the code. I'm not a web developer and what I have found out there
    is still reading greek to me. My connection file is working and
    connecting the database that I have tested.
    Since the above code is throughout the site in one form or
    another it's causing me major headaches. Any help would be
    appreciated.

    This is the first time I've used Adobe products so if the
    following is in the wrong forum (It's the closest one I found so
    far) or the format is incorrect please forgive me.
    I'm new to Dreamweaver CS3 and as I was reading the "first
    steps" it mentions to set up a Dreamweaver site right away. I got
    as far as completing "Site Definition" page under the basic side of
    the setup screen.
    The next screen is "Do you want to work with server
    Technology?"
    There are 2 options - Yes or No. If you select yes a
    drop-down menu appears with several options (but you can only
    select one)...
    Asp Javascript
    Asp VbScript
    Asp.net#
    Asp.net Vb
    Cold Fusion
    JSP
    Php MySql.
    I know nothing about these format and brand new to web design
    so I thought it best to contact GoDaddy (my hosting account) to
    find out what their servers would support. I spoke to a tech rep
    but she wasn't sure.
    She did mention that I have a windows hosting account and Php
    MySql would not work unless I changed to their Linux platform at no
    additional charge.
    The site I have in mind will design with CSS, Liquid layout,
    have some flash, widgets, an inquiry form that clients complete and
    results e-mailed to me, auto-responder, Paypal link and whatever
    else I can discover from Dreamweaver.
    My question being:
    I haven't even begun designing my site because I do not know
    what weather I should select the Yes option and select one of the
    formats mentioned above (if so which one) - or select the No
    option. If I do select the No option at the very beginning, will I
    have problems with my site uploading and working correctly?
    Thank you
    Travis

  • Command in php / mysql

    Hello,
    I used to program a lot in ASP, and loved the command
    function.
    However, now that I'm programming in PHP I do not have this
    at my disposal unfortunately.
    How does everyone perform certain actions on forms right
    now?, for example I'm performing an update on a record, but want to
    update all records in the table first by setting a certain field to
    0.
    Any thoughts and ideas / samples are greatly
    appreciated!

    Jasmine2002 wrote:
    > Correct, in ASP however I had the command so I can later
    on easily call up the
    > box and change / add / update my SQL.
    >
    > Do you just write the appropriate PHP for it?, I don't
    really know how to
    > properly write this in conjuction with Dreamweaver.
    I suspect that command is probably a stored procedure.
    Unfortunately,
    stored procedures were added to MySQL only in version 5.0,
    and
    Dreamweaver doesn't support stored procedures in the PHP
    MySQL server
    model. (I've lobbied for support, but it hasn't happened
    yet.)
    Your update is rather unusual, but you should be able to get
    Dreamweaver
    to generate the code for you using the Update Record server
    behavior.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Setting up MAMP and Dreamweaver - PHP - URL Not Found

    Hello,
    I'm running into a seemly simple problem, but I just can't figure out the cause. I wanted to test a php file. I installed MAMP on my Mac 10.6.8 with all the default settings...Apache port 8888, MySQL port 8889 and document root /Applications/MAMP/htdocs.
    In Dreamweaver CS5.5, the settings are: Site Name: PHP Testing; Local Site Folder: /Applications/MAMP/htdocs; Server Name: Local Testing; Connect using: Local/Network; Server Folder: /Applications/MAMP/htdocs; Web URL: http://localhost:8888/. Testing server model is selected as PHP MySQL.
    In the htdocs folder, I have a simple timetest.php with php echoing the system time. When I preview in a browser or even do Live View in Dreamweaver, the URL is "http://localhost:8888/timetest.php", it's giving me the error "Not Found. The requested URL/timetest.php was not found on this server".
    Am I missing something simple?
    Thank you!

    Oops, I guess the images didn't show.

  • I need help with DW, PHP & MySQL please.

    Hello, I am new to website development and am trying to set up a form for collecting data on my website and have a question that I can’t find an answer to anywhere else. I was wandering if someone there would be kind enough to help?  I am using Dreamweaver in CS4 and my host already has PHP & MySQL installed on the server that I can use.  My question is: Do I need to download XAMP or WAMP on my computer before trying to connect my form to the server?  Also, do I need to change the page I am putting the form on to .PHP extension or can I just embed the PHP form into an existing HTML page?
    Most of the training tutorials I’ve read don’t start at the most basic beginning but rather expect people to already have a basic knowledge of the topics they are trying to learn.  If anyone knows the best place to get answers to the most basic questions like this one or a beginners guide to working with DW, PHP & MySQL I will gladly go there rather than waste your time on questions you’ve probably already answered a bezillion times.
    Thank you for the help.

    Strictly speaking, you don't need XAMPP or WAMP on your local computer. But if you're serious about getting involved with PHP/MySQL, you should definitely set up a local testing environment with one or the other. It's safer and more efficient. Don't expose all your errors on a live server. You can find instructions on  how to set up a testing environment here: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
    To develop with PHP, you should always use a .php file name extension. Any other choice is very rare.
    There's a tutorial on building your first dynamic website with DW here: http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html.
    For more in-depth help, you might want to consider grabbing hold of a copy of "The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP". (Yes, I wrote it, so it's a bit of shameless self-promotion, but you'll find it answers many of your questions - and probably a lot you hadn't even thought of.)

Maybe you are looking for