PHP MySQL data display problem

I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
Selected PHP as the type.
Saved it.
Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
NOTE: The database is on a remote server.
The TEST button displayed the records from the recordset with no problem.
On the new page, I then typed some text.
Then dragged some fields from the Bindings tab to the page.
I saved it and then went to preview it in my browser.
The page comes up completely blank. Not even the text shows.
I then saved the page as an HTML page.
When I preview this in my browser, the text shows, but the fields and data do not.
I then tried creating a dynamic table (again, using the Dreamweaver menus.).
A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
Nothing shows if I save it as a PHP file.
I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
It is just in pages created in Dreamweaver that don’t work.
What am I doing wrong?

My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
Frank
Date: Thu, 4 Jun 2009 19:04:03 -0600
From: [email protected]
To: [email protected]
Subject: PHP MySQL data display problem
To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
Mark A. Boyd
Keep-On-Learnin'
This message was processed and edited by Jive.
It shall not be considered an accurate representation of my words.
It might not even have been intended as a reply to your message.
>

Similar Messages

  • PHP/MySQL Date Format problems

    Dear all,
    In the past I successfully formatted a date from a Unix date format to my own desired output by using a PHP command as such:
    echo date($row_rsGNresults['date'], "Y F j"); 
    For a reason unbeknown to me, this no longer works and no matter what I try, the page always returns the date results in yyyy-mm-dd format.
    I've even tried using date format in the SQL query:
    SELECT * DATE_FORMAT('date', '%Y %F %j') AS showdate FROM gemnews_tab WHERE language LIKE %s AND entry LIKE %s AND works LIKE %s AND category LIKE %s ORDER BY date ASC 
    I've even tried installing various Dreamweaver extensions for date server formats (like Kaosweaver's) to no avail.  I've checked MySQL and the field is definitely set to 'date' and the dates are in yyyy-mm-dd format.
    Does anyone have any suggestions?  Would it matter that the dates are from the 18th century?
    Many Thanks
    J
    Message was edited by: Günter Schenk. Reason: the "PHP command" code was invisible

    Try this:
    <?php echo Date("M d, Y",
    strtotime($row_Recordset1['review_date'])); ?>
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "newhorizonhosting.com" <[email protected]>
    wrote in message news:et7lf6$q8a$[email protected]..
    > Can someone help me out here. I am trying to format my
    date. My MySQL is a
    > "datetime". How ever I would like to display only the
    month, day, year like so
    > "Jan,15,2007"
    >
    > Here is my current code, what should I add to make it do
    what I want.
    >
    > <?php echo $row_Recordset1['review_date']; ?>
    >
    > Thanks
    >

  • PHP/MySQL Date display format

    Can someone help me out here. I am trying to format my date.
    My MySQL is a "datetime". How ever I would like to display only the
    month, day, year like so "Jan,15,2007"
    Here is my current code, what should I add to make it do what
    I want.
    <?php echo $row_Recordset1['review_date']; ?>
    Thanks

    Try this:
    <?php echo Date("M d, Y",
    strtotime($row_Recordset1['review_date'])); ?>
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "newhorizonhosting.com" <[email protected]>
    wrote in message news:et7lf6$q8a$[email protected]..
    > Can someone help me out here. I am trying to format my
    date. My MySQL is a
    > "datetime". How ever I would like to display only the
    month, day, year like so
    > "Jan,15,2007"
    >
    > Here is my current code, what should I add to make it do
    what I want.
    >
    > <?php echo $row_Recordset1['review_date']; ?>
    >
    > Thanks
    >

  • Date display problems

    Hello,
    I have notice some date display problems with browsers when visiting a Podcast page :
    https://itunes.apple.com/fr/podcast/euronews-no-comment/id193275779
    For exemples :
    8/45/13
    8/32/13
    4/49/13
    Date problems available on other podcasts :
    https://itunes.apple.com/fr/podcast/arret-sur-images-les-podcasts/id289722236?mt =2
    https://itunes.apple.com/fr/podcast/telezapping/id206252481?mt=2
    https://itunes.apple.com/fr/podcast/france-3-19-20-paris-ile-france/id285421036? mt=2
    Theses problems don't exist on iTunes.
    Who can fix it ?

    I checked three of them and see the same peculiarity. Only the web page version of the Store page has the errors. The first podcast you list has a minor error in the 'iTunes declaration'  but I wouldn't have expected it to affect the pubDate tag. The second doesn't give the day in that tag, and the third appears to be OK.
    I can only guess that it's a glitch of some sort in the Store software used to generate the web page. Only Apple can fix it. You could try the 'report a problem' link in the Store page in iTunes though I don't know how much notice they will take.

  • Date display problem "Arabic"

    I am currently facing a problem related to date display as the date is being displayed in the following format:
    ������ 01, 2007
    I have checked the Locale and it was en_US.
    Can someone help me out so that the format that I get is the following:
    Sept 01, 2007
    Thanks

    What code are you using to format the date?

  • Multiple Language  : Data Display Problem

    Hi ,
    I have one problem regarding NLS_LANG, please advice.
    I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
    I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
    Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
    Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
    Thanking You

    Pl continue the discussion in your original thread for continuity purposes.
    Multiple data display problem

  • PHP/mySQL Insert/Update Problems

    I hope someone can help because I can't find anything online
    that is helping me with this problem. I can't get the Dreamweaver
    controls to work when coding a PHP insert or update record page. It
    looks like it creates the code correctly but when I put them out on
    my webserver and then fill out the form and click submit the page
    submits and tries to use a URL string of (null)/admin/index.php
    where index.php is the form page not the page I told it to redirect
    to. I don't know why the (null) value keeps getting inserted into
    the string either. The browser obviously can't find this URL so
    gives a page cannot be displayed screen and nothing get's inserted
    or updated in the mySQL database.
    Any help would be greatly appreciated. This problem is
    driving me crazy because I want to save time not having to hand
    code things. Below is a User Authentication page using the
    Dreamweaver controls that does the same thing when I try to
    login.

    tobyd wrote:
    > the page submits and tries to use a URL string of
    (null)/admin/index.php
    > where index.php is the form page not the page I told it
    to redirect to. I don't
    > know why the (null) value keeps getting inserted into
    the string either.
    The following two lines set the URL for login success and
    failure.
    > $MM_redirectLoginSuccess = "../admin_index.php";
    > $MM_redirectLoginFailed = "../admin/index.php";
    As you can see, they are relative paths, suggesting that the
    login form
    is in a different subfolder, but at the same level as
    admin_index.php
    and the admin folder. The (null) almost certainly comes from
    the fact
    that your login page is in the site root. If you're typing in
    the
    redirect filenames manually, use the Browse button instead.
    Dreamweaver
    should set the correct path for you.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP/mySQL data connection

    Hi,
    I've used DW CS3 to create a database connection to a mySQL
    database that I created in phpMyAdmin. When I do the setup and test
    all the connections, everything works - my table comes up, I'm able
    to select it. I created a recordset to display what's in the
    database. When I test the page, I'm getting this error:
    Warning: mysql_connect() [function.mysql-connect]: Access
    denied for user 'identity_teach'@'localhost' (using password: NO)
    in /home/identity/public_html/Connections/facultyDB.php on line 7
    Cannot connect to the database because: Access denied for
    user 'identity_teach'@'localhost' (using password: NO)
    The password info is in there - and I know it's right,
    because DW tests the connection and gives me a success message. Any
    ideas why I would be getting this error?
    Thanks!
    Carrie

    >in /home/identity/public_html/Connections/facultyDB.php
    on line 7
    Check your path in your code on line 7
    I had this same problem and it showed something like this
    (assuming you are using PHP)
    <?php virtual (/Connections/connbay.php'); ?>
    i changed to
    <?php require_once('../Connections/connbay.php'); ?>
    and it worked fine

  • Category Axis for dates display problems

    I am experiencing an odd display behavior in my flex chart.
    The xml for the chart skips some time, for example:
    <item date="10/31/2006" val="57"/>
    <item date="12/27/2006" val="55"/>
    <item date="02/14/2007" val="44"/>
    <item date="02/22/2007" val="43"/>
    <item date="02/28/2007" val="59"/>
    <item date="02/28/2007" val="58"/>
    <item date="03/03/2007" val="35"/>
    But when it displays on the axis, it displays the labels like
    so:
    10/31/2006 2/22/2007 03/03/2007 etc....
    Here is my definition of the CategoryAxis.
    <mx:horizontalAxis>
    <mx:CategoryAxis id="h1" categoryField="date"
    labelFunction="formatLabel"
    dataProvider="{instrument.lastResult.dataset.rightaxis.series.item}"
    title="{instrument.lastResult.dataset.bottomTitle}"/>
    </mx:horizontalAxis>
    Is this a bug? The chart uses two vertical axis as well.
    Maybe this is causing the problem. Ideally I'd just like to define
    a start and end date for the bottom axis and have it display the
    months uniformly. Is there a way to do that or at least fix this
    odd behavior?

    I am experiencing an odd display behavior in my flex chart.
    The xml for the chart skips some time, for example:
    <item date="10/31/2006" val="57"/>
    <item date="12/27/2006" val="55"/>
    <item date="02/14/2007" val="44"/>
    <item date="02/22/2007" val="43"/>
    <item date="02/28/2007" val="59"/>
    <item date="02/28/2007" val="58"/>
    <item date="03/03/2007" val="35"/>
    But when it displays on the axis, it displays the labels like
    so:
    10/31/2006 2/22/2007 03/03/2007 etc....
    Here is my definition of the CategoryAxis.
    <mx:horizontalAxis>
    <mx:CategoryAxis id="h1" categoryField="date"
    labelFunction="formatLabel"
    dataProvider="{instrument.lastResult.dataset.rightaxis.series.item}"
    title="{instrument.lastResult.dataset.bottomTitle}"/>
    </mx:horizontalAxis>
    Is this a bug? The chart uses two vertical axis as well.
    Maybe this is causing the problem. Ideally I'd just like to define
    a start and end date for the bottom axis and have it display the
    months uniformly. Is there a way to do that or at least fix this
    odd behavior?

  • Forms 6i Data Display Problem

    All:
    I am running Forms 6i on win 2k server. The problem I have is that when trying to display a field that has data longer than the size of the field the data becomes left justified. Meaning by placing the cursor on the field and using back arrow the rest of the data gets displayed.
    Thanks in advance..
    Rycourt

    If it is server and DataBase is installed(oracle-sql) is there, You cna't continue Froms and Reports there, Froms and Report can only run on client end and with pc where inatall Oracle Personal Database.
    If you try this way, Hope problem will solved
    Thanks
    Nazmul

  • Multiple data display problem

    Hi ,
    I have one problem regarding NLS_LANG, please advice.
    I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
    I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
    Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
    Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
    Thanking You

    Similar issue has been discussed in the below thread :
    NLS_LANG setting for a client with multiple Oracle servers
    Re: how to insert multi language data to oracle database
    You can use iSQL*Plus which have Multiple Language Support.
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch11.htm#i1026151
    You can write the question in Globalization Support forum too at :
    Globalization Support
    Regards
    Girish Sharma

  • Any cure for MySQL date entry problem?

    On user entry forms with a MySQL database, dates must be
    entered as YYYY-MM-DD, which for Americans is counter-intitutive. I
    know about the option to use a series of very long drop-down lists
    to select each of the pieces, but I find that both cumbersome and
    time consuming. I currently am using instructions to the user with
    each date field, but that is clutzy.
    Does anybody know of a way to use "mm/dd/yyyy"?
    Thanks!
    Marty

    .oO(MartyMatthews)
    >On user entry forms with a MySQL database, dates must be
    entered as YYYY-MM-DD,
    >which for Americans is counter-intitutive. I know about
    the option to use a
    >series of very long drop-down lists to select each of the
    pieces, but I find
    >that both cumbersome and time consuming. I currently am
    using instructions to
    >the user with each date field, but that is clutzy.
    >
    > Does anybody know of a way to use "mm/dd/yyyy"?
    MySQL expects the dates to be stored as YYYY-MM-DD in a DATE
    or DATETIME
    field. Use your script to convert from MM/DD/YYYY if
    necessary, before
    you insert the date into the DB. If you're on PHP, have a
    look at its
    date and time functions, especially strtotime() and
    strftime().
    Micha

  • 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

  • Date Display Problem

    Hello All,
    I have 2 text fields, namely, "Start Date" and "End Date". I am trying to set default text in these fields. The start date should default to Monday and End date should default to Friday of current week. My problem is the setText() Method accepts String as arguments but "cal.add(.." returns a calendar object. Is there anyway i can convert a calendar object to string? or is there some other way to achieve what i am trying to? Please help!!
    Below is my code.
    * This method gets the corr. day for the entered date
    public static int getDay(Date date){
    Calendar cal = Calendar.getInstance();
    cal.setTime(date);          
    return cal.get(DAY_OF_WEEK);     
    * This method sets default text in the fields "Start Date" and "End Date"
    private void setDefaultText(){                    
    int currentDay = getDay(currentDate); //Current Date is todays date
    Calendar cal = Calendar.getInstance();
    if(currentDay==1){
    getStartDateText().setText(cal.add(Calendar.DATE,1));                         
    getEndDateText().setText(cal.add(Calendar.DATE,5));
    if(currentDay==2){
    getStartDateText().setText(cal.add(Calendar.DATE,0));                         
    getEndDateText().setText(cal.add(Calendar.DATE,4));
    if(currentDay==3){
    getStartDateText().setText(cal.add(Calendar.DATE,-1));                         
    getEndDateText().setText(cal.add(Calendar.DATE,3));
    if(currentDay==4){
    getStartDateText().setText(cal.add(Calendar.DATE,-2));                         
    getEndDateText().setText(cal.add(Calendar.DATE,2));
    if(currentDay==5){
    getStartDateText().setText(cal.add(Calendar.DATE,-3));                         
    getEndDateText().setText(cal.add(Calendar.DATE,1));
    if(currentDay==6){
    getStartDateText().setText(cal.add(Calendar.DATE,-4));                         
    getEndDateText().setText(cal.add(Calendar.DATE,0));
    if(currentDay==7){
    getStartDateText().setText(cal.add(Calendar.DATE,-5));                         
    getEndDateText().setText(cal.add(Calendar.DATE,-1));
    }

    Mogambo_Khush_Hua wrote:
    I am sorry that did not work either. Calendar returns a string for toString(). I agree. But Calendar.add(int,int) does not as add(int,int) returns VOID. Here is what i tried doing as was suggested in the earlier postings.
    if(currentDay==1){
         getStartDateText().setText((cal.add(Calendar.DATE,1)).toString());
         getEndDateText().setText((Calendar.add(Calendar.DATE,5)).toString());
    If you notice the 2nd line reads cal.add and the 3rd line reads as Calendar.add.
    The 2nd line gives me an error, "Cannot Invoke toString() on primitive type void"
    The 3rd line gives me an error, "The method add(int,int) from type Calendar is not static"
    Any help would be greatly appreciated. Googling for stuff is not getting me anywhere either.You can't do it in one operation (at least not that way).
    The add() method operates on cal and changes it's value, but returns you nothing; so what you are in effect saying is:+nothing+.toString();which is what the compiler is complaining about.
    Hope that helps.

  • N8 Date Display Problem

    I've previously posted this in a similar thread, but recieved no replies, so am trying here.
    I've have a problem after the getting the Anna update.
    Got mine done at an NCC (UK Tesco 059C951). and all was fine. Put in parts 1/2 & 2/2 when I got home via Ovi Suite on PC.
    I have the problem in that the date format in my phone keeps reverting to YYYY:MM:dd format instead of DD:MM:YYYY as i'd like it.
    I've done a delete and restore and default reset to see if it cures it, but to no avail. I can't reinstall yet as Anna is not available for my Product code yet.
    In the" time settings", when I select the format I want, it switches back right in front of my eye's in about a second flat. I have to hit the back button before it changes back as that is the only way it remains.
    Once I turn off the phone, it reverts back to the yyyy:mm:dd settings again and I have to repeat the whole process again.
    It used to do this with PR1.1 and 1.2 sometimes, but a "delete and restore" usually cleared it. Hasn't worked this time though.
    Does anyone else have this problem or know what to do?
    Jurassic Park, Sam Neill to Dickie Attenborough " Mr. Hammond, the phones are working !"
    N8-00 Tesco UK 059C951, Lumia 920

    What code are you using to format the date?

Maybe you are looking for

  • Bug in Apex 2.2.1.00.04 in overload call of function?

    We are having custom table defined as: CREATE TABLE HTMLDB_USERS (   ID             INTEGER               CONSTRAINT HTMLDB_USERS_ID_NN NOT NULL,   USERNAME       VARCHAR2(64 BYTE)     CONSTRAINT HTMLDB_USERS_USERNAME_NN NOT NULL, desc htmldb_users N

  • How do we change the name of an album we are selling on iTunes ?

    This may not be the right forum, but perhaps someone can point us in the right direction. We submitted a new CD through CDBaby to be distributed though iTunes. We were very excited to see it pop up when we searched for it. However, though the cover a

  • Previous owner didn't erase info

    I recently purchased a previously used BlackBerry Curve 8330. The user who had owned it before me did not clear his information (including the email, Internet, and BBM settings). I do not know how to remove his information so that I can put mine in.

  • Why is the sitemap gone?

    For the second time, the sitemap is gone from the root folder of a site. The first one was generated using the online option: http://www.xml-sitemaps.com/ and placed in the Web/Sites/sitename folder, added using Google's webmaster tools. After it was

  • WLAN and N80

    Hi! I just bought my new N80 on monday and was very excited about the WLAN feature. (That was the main reason I had when compared to N73) But.. When I came home and should try the WLAN feature the phone only returned "Internal WLAN Error". If I tried