Php & mysql images

I have some images in a mysl table(blob field)
does anyone have a sample to show how to display some images
in a movie?
Cheers
Stevew

Gotcha. In that case you can just make a php script to pull
the images and
return them. I just did a little test and it worked fine - I
placed a jpg
into a mediumblob field in MySQL. I then made a little PHP
script, test.php:
<?PHP
include_once("../scripts/db_connect.php");
$sql = "SELECT image FROM test WHERE id=1";
$result = mysql_query($sql, $connection);
$row = mysql_fetch_array($result);
echo($row['image']);
?>
Then in Flash, I simply loaded the image from the script into
an empty
movieClip (imClip) using:
var lm = new MovieClipLoader();
lm.loadClip("url/test.php", imClip);
HTH
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • PHP -Mysql image resize and upload

    All,
    Any good ideas, code out there to help me do a PHP MySQL image resize, uploade and display? Thanks for your help!

    For upload image, u may look at the similar thread HERE

  • PHP/MySQL image upload

    I am looking for an easy to understand PHP tutorial on
    uploading an image to a folder. However I would like to put a
    reference/path to the image in a MySQL batabase table.

    newhorizonhosting.com wrote:
    > I am looking for an easy to understand PHP tutorial on
    uploading an image to a folder. However I would like to put a
    reference/path to the image in a MySQL batabase table.
    The PHP online manual is pretty comprehensive on file
    uploads.
    http://www.php.net/manual/en/features.file-upload.php
    You can get the name of the file from
    $_FILES['fieldName']['name']
    (where 'fieldName' is the name of the form field that uploads
    the
    image). It's just a question of using that information to
    insert into a
    database.
    I cover image file uploads in considerable detail in "PHP
    Solutions" if
    you're interested in a more comprehensive approach.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Best way to update images using PHP / MySQL?

    HI
    I want to update images using PHP/MySQL, so users can update their images and maybe some other files but mainly images.
    thanks

    How messed up is this code?!
    <?php
    //connect to database
    $con = mysql_connect("testhost","testuser","pass");
    // file properies
    $file = $_FILES['image']['tmp_name'];
    if (!isset($file))
    echo "please select an image";
    else {
        $id = $_REQUEST['id_display'];
        $image = ($_FILES['image']['tmp_name']) ? file_get_contents ($_FILES['image']['tmp_name']) : '';
        $image_name = ($_FILES['image']['name']) ? addslashes($_FILES['image']['name']): '';
        $image_size = ($_FILES['image']['tmp_name']) ? getimagesize($_FILES['image']['tmp_name']): '';
        if ($image_size == FALSE)
        echo "You have not selected an image.";
        else {
            mysql_select_db("test_display", $con);
            mysql_query("UPDATE testtable SET image = '$image', imagename = '$image_name' WHERE id_display='$id'");
    ?>
    And the upload page....
    /*Update code */ /*End update code */                            

  • Php/mysql ajax toggle div

    Hi,
    I have recently started using ajax in my pages, and I am very impressed!
    But my skills have not yet developed and I am using a code snippet off the internet to do what I want.
    I have a hidden div tag called photo to which I want to load images into
    I have a link tag with an ID of the "album name"
    I want to call the div by clicking on the link and have the div animate down with a do while loop consisting of the images in that "album name"
    Here is my code:
    AJAX
    window.addEvent('domready', function(){
        var mySlide3 = new Fx.Slide('photo');
        mySlide3.hide();
        $('<?php echo $row_listAlbumPhotos['album_name'];?>').addEvent('click', function(e){
            e = new Event(e);
            mySlide3.toggle();
            e.stop();
    PHP
    <?php do { ?>
        <table border="0" cellpadding="5" cellspacing="5" >
          <tr>
            <?php
    $listAlbumPhotos_endRow = 0;
    $listAlbumPhotos_columns = 4; // number of columns
    $listAlbumPhotos_hloopRow1 = 0; // first row flag
    do {
        if($listAlbumPhotos_endRow == 0  && $listAlbumPhotos_hloopRow1++ != 0) echo "<tr>";
       ?>
            <td><div class="AlbumNameText"><a href="#" id="<?php echo $row_listAlbumPhotos['album_name']; ?>"><?php echo $row_listAlbumPhotos['album_name']; ?></a></div></td>
            <?php  $listAlbumPhotos_endRow++;
    if($listAlbumPhotos_endRow >= $listAlbumPhotos_columns) {
      ?>
          </tr>
          <?php
    $listAlbumPhotos_endRow = 0;
    } while ($row_listAlbumPhotos = mysql_fetch_assoc($listAlbumPhotos));
    if($listAlbumPhotos_endRow != 0) {
    while ($listAlbumPhotos_endRow < $listAlbumPhotos_columns) {
        echo("<td> </td>");
        $listAlbumPhotos_endRow++;
    echo("</tr>");
    }?>
        </table>
      <?php } while ($row_listAlbumPhotos = mysql_fetch_assoc($listAlbumPhotos)); ?>
    HTML
    <div id="photo">
    This is a test
    <br />
    </div>
    Currently this works for the first record found.
    I have setup two albums "Friends" and "Other"
    Currently Other is not accepting <a href="#" id="<?php echo $row_listAlbumPhotos['album_name'];  ?>"> the ID or the Ajax is not allowing the ID
    I'm not sure which. Can anyone help me?

    Take a look at this list:
    http://www.hotscripts.com/PHP/Scripts_and_Programs/Calendars/index.html
    Ignore the first few that have a colored background because
    those are paid resources, but the rest will do what you want.
    One note to mention on this subject is that there are
    combination scripts, PHPiCalendar being the most notable, that
    allow you to use a stand alone calendar application like iCal
    (Mac), Windows Calendar (only in Vista), or Sunbird (from Mozilla,
    Win or Mac). From those programs you could publish the calendar.
    All you would need to do is edit the template files in that script
    and then your users can publish from easy applications they know
    over a calendar app based entirely on PHP/mySQL.
    This is not say there are not good solutions, but this is
    just an observation. Also if you are using a forum, most forum
    software (ie: Invsion Power Board, vBulletin, Simple Machines Forum
    (SMF), etc) all have built in calendar scripts that are tied into
    the forum software. So that might be another avenue to consider.
    But if you just need a stand-alone app, then check out that
    list. There are some pretty good scripts there.

  • Football/soccer results grid advice php/mysql

    I need to create the above from my database, and I am not sure how to go about it.
    Basically  this calculates all the goals scored against another team. If team 1  (column) is the same as team 1 (row) an "x" is put in place as team 1  cannot play itself
    I have added my database structure
    Image of example
    http://filedb.experts-exchange.com/incoming/2010/08_w34/t337870/Untitled-1.jpg
    CREATE TABLE IF NOT EXISTS `matches` (
      `match_id` int(8) NOT NULL auto_increment,
      `date` date default NULL,
      `time` varchar(5) default NULL,
      `report` longtext,
      `referee_id` int(8) NOT NULL,
      `season_id` int(8) NOT NULL,
      PRIMARY KEY  (`match_id`),
      KEY `referee_id` (`referee_id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
    -- Dumping data for table `matches`
    INSERT INTO `matches` (`match_id`, `date`, `time`, `report`, `referee_id`, `season_id`) VALUES
    (1, '2010-08-02', '15:00', 'N/A', 1, 2010),
    (2, '2010-08-10', '15:00', 'n/a', 1, 2010);
    CREATE TABLE IF NOT EXISTS `matchscores` (
      `matchscores_id` int(8) NOT NULL auto_increment,
      `match_id` int(8) NOT NULL,
      `team` int(8) NOT NULL,
      `score` int(8) default NULL,
      PRIMARY KEY  (`matchscores_id`),
      KEY `match_id` (`match_id`,`team`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
    -- Dumping data for table `matchscores`
    INSERT INTO `matchscores` (`matchscores_id`, `match_id`, `team`, `score`) VALUES
    (1, 1, 1, 2),
    (2, 1, 2, 1);
    CREATE TABLE IF NOT EXISTS `team` (
      `team_id` int(8) NOT NULL auto_increment,
      `team_name` varchar(255) NOT NULL,
      `team_address` text,
      `team_phone` varchar(25) default NULL,
      `team_email` varchar(255) default NULL,
      `team_web` varchar(255) default NULL,
      `colours_home` varchar(50) default NULL,
      `colours_away` varchar(50) default NULL,
      `manager` varchar(255) default NULL,
      `assistant` varchar(255) default NULL,
      `club_rep` varchar(255) default NULL,
      `division` varchar(255) default NULL,
      `team_pic` varchar(255) default NULL,
      `team_logo` varchar(255) default NULL,
      `profile` mediumtext,
      `honours` mediumtext,
      `password` varchar(10) NOT NULL,
      PRIMARY KEY  (`team_id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

    Tbilly,
    I have just the thing you are looking for. Check this out
    here:
    http://www.smithmediafusion.com/poll/poll.html
    MySQL and php with a Flash front.
    drop me an email if you are interested and would like more
    info.
    danswhc AT yahoo dot Com
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    *Must Read*
    http://www.smithmediafusion.com/blog
    "tbilly" <[email protected]> wrote in
    message
    news:erfeo6$9a$[email protected]..
    > Can anyone recommend a book or tutorial for a survey or
    poll script I
    > could
    > implement using php/MySQL? Preferably one with options
    such as: changing
    > question types (radio vs. checkboxes), sessions, and
    graphical displays of
    > results. Would like to use dreamweaver to set up content
    management pages
    > to
    > edit/add answers and questions in a database. Thanks in
    advance.
    >

  • 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!

  • Show if field is not empty - PHP/MySQL

    Is there a way I can only show bits of a page if a recordset
    has entries in a certain field, automatically hiding the area if
    the field is empty. (PHP/MySQL)
    To put it in real terms, I have loads of products listed in a
    repeating table. If a product has a photo gallery related to it
    there is a 1 entered in 'photos' field, it has a video attached
    here is a 1 entered in 'videos field and likewise for reviews it
    will have a 1 entered in the reviews field.
    What I'd like to have is a photo, video and review icon/link
    in the 'master table' which only appears in the repeated products
    that have a 1 listed in that field and have them not appear at all
    when there is a 0 in the field.
    Can anyone help me figure it out

    ADDT is certainly a great help, as it - among many other
    features - will allow you define whatever page element as
    "show/hide" based on a query result -- for this it´s using a
    so-called "condition builder" which lets you do that without
    coding.
    However you can achieve the same result without needing to
    resort to ADDT -- by using a basic "if" condition that´s
    checking the respective table column for having the value "1"
    stored, and if so, display the page segment
    The following 3 examples should work when replacing the
    sample "queryname" with the query name your page is actually using:
    <?php if ($row_queryname['photos'] == '1') {?>
    display photo icon here
    <?php }?>
    <?php if ($row_queryname['videos'] == '1') {?>
    display video icon here
    <?php }?>
    <?php if ($row_queryname['reviews'] == '1') {?>
    display videos icon here
    <?php }?>

  • If I try and follow a link from another website to open another I get awclick.php (GIF Image 1x1) pixels in a new tab instead of the web page I want.

    I was trying to open a website as a link from another website and I get a new tab that says
    awclick.php(GIF Image 1x1 pixels)
    I can open the website without clicking on a link to it by just typing in the address but as this is a cash back site I am linking from it doesn't help!

    You're welcome

  • 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

  • PHP/MySQL issue after security update 2010-005

    Hello,
    I run Apache/PHP/MySQL on my MBP for testing Web sites.
    After the 2010-005 security update I can't connect to my databases anymore.
    I don't know how to fix this, I even don't know where to start looking.
    Ideas, anyone?

    coloma wrote:
    etresoft, thanks for sharing this ... I decided to go with the TriangleJuice suggestion instead for two reasons ... first is that I wasn't sure where to find this launchd file.
    There is nothing wrong with TriangleJuice's suggestion. My only issue with creating a php.ini file is that now I have to worry about all those other settings in the ini file. If something else in PHP breaks, I have to figure out if I am the one who broke it.
    Apple ships MySQL with MacOS X Server. They probably adjusted the PHP settings to match how they have MySQL setup in MacOS X Server.
    For MySQL's, no, Sun's - drat! no, Oracle's part, they still haven't acknowledged the fact that Apple has shipped MacOS X 10.4. MySQL still ships with a Startup Item. If you don't know where the launchd file is, it is because you don't have one. You probably have a MySQL entry in /Library/StartupItems or maybe /System/Library/StartupItems. Startup Items were deprecated in 10.4. Oracle should be creating a file named com.mysql.mysqld.plist in /Library/LaunchDaemons.
    Here is what mine looks like now:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>com.mysql.mysqld</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/local/mysql/bin/mysqld</string>
    <string>--socket=/var/mysql/mysql.sock</string>
    <string>--basedir=/usr/local/mysql</string>
    <string>--datadir=/usr/local/mysql/data</string>
    <string>--user=mysql</string>
    <string>--log-error=/usr/local/mysql/data/Pele.local.err</string>
    <string>--pid-file=/usr/local/mysql/data/Pele.local.pid</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    I also don't have a /var/mysql directory and wasn't sure whether I should just create one or if this meant my configuration was different. If you feel like explaining any of this, I'd be curious to know.
    You have to create one. Such a directory probably already exists on MacOS X Server. Just make sure it is owned by mysql.
    sudo mkdir /var/mysql
    sudo chown _mysql:staff /var/mysql
    sudo chmod 0755 /var/mysql
    [jdaniel@Pele:516] /var $ ls -al /private/var | grep mysql
    drwxr-xr-x 3 _mysql staff 102 Aug 26 20:03 mysql
    Of course, /var is a symbolic link to /private/var. Long story there.

  • 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!

  • 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/

  • 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.)

  • 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/

Maybe you are looking for