Problem when displaying images when working  with PHP, mysql and dreamweaver in a brower

Hey Guys
I am new to dynamic development but I already did some
research and tutorials about how to get a dynamic web site working
with PHP and Mysql in Dreamweaver. I set up a test page to view
some content on it directly from the mysql database and it worked
just fine in dreamweaver only when I pressed the
live data view.
When I tried to view the same page using the browser preview
with firefox and internet explorer, plain text from the database
was correctly displayed on the brower but the images were absent.
In the mysql database I used the varchar as my picture data
type field so that I will refer in dreamweaver in the data binding
panel in the img.src to the picture column of my database.
I anyone can tell me what am I doing wrong so that my
pictures are not displayed in the browser when i click the browser
preview facility in dreamweaver I would be very very and very
pleased ! :)

The odds are that it is the way that you have referenced the
images rather
than an issue with the database. If you have the images root
relative like
this "/images" then they will work in preview, and on the
webserver, but
will not view when looking at the file via localhost.
If possible make the links page relative and then they should
work fine.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"mariosal026" <[email protected]> wrote in
message
news:ea3nq2$9ol$[email protected]..
> Hey Guys
>
> I am new to dynamic development but I already did some
research and
> tutorials
> about how to get a dynamic web site working with PHP and
Mysql in
> Dreamweaver.
> I set up a test page to view some content on it directly
from the mysql
> database and it worked just fine in dreamweaver only
when I pressed the
>
live
> data view.
>
> When I tried to view the same page using the browser
preview with firefox
> and
> internet explorer, plain text from the database was
correctly displayed on
> the
> brower but the images were absent.
>
> In the mysql database I used the varchar as my picture
data type field so
> that
> I will refer in dreamweaver in the data binding panel in
the img.src to
> the
> picture column of my database.
>
> I anyone can tell me what am I doing wrong so that my
pictures are not
> displayed in the browser when i click the browser
preview facility in
> dreamweaver I would be very very and very pleased ! :)
>

Similar Messages

  • Using Windows XP and working with Fireworks CS6 and Dreamweaver CS6.

    I'm a student and only have Windows XP. I'm working with Fireworks CS6 and Dreamweaver CS6. Can I just get the two of them or do I need to subscribe to the Creative Cloud? Also, can I get Dreamweaver CS6 on the Cloud? I know I can't use Dreamweaver CC with XP.

    Moving this discussion to the Creative Cloud Download & Install forum.
    Afec1707 I am sorry but you must have Windows 7 or later for your operating system.  You can find the system requirements to utilize Creative Cloud applications at System requirements | Creative Cloud.

  • When will Image Capture work with my Nikon D90?

    Hi,
    I'm just interesting in seeing some concrete info on when Image Capture will work with my Nikon D90 camera. Lightroom 3 is having problems, but that's probably because the image capture firmware is not working in OSX Lion yet.
    Regards,

    Image Capture in LIon is version 6.1 which is an update from the 6.0 in Snow Leopard. Contact the vendors and see when they will have updates compatible to Lion.

  • Displaying image from Database with php

    Hello everybody,
    I'm working on a website that displays videos courses and tutorials as my final project
    and I'm working with "Flash builder 4" the database with mySQL and the application server with php
    Basically, the goal is to display a datagrid that shows the manager of the website in column all the information stored on the "Course" table
    the structure of the table is :
    Course (id,img,src,title,description)
    -id : primary key
    -img : path to a photo of course {for example picture of JAVA}
    -src : path to the playlist file {xml file}
    -title : String
    -description : String too
    I already succeeded to display all these contents on a DataGrid, but not with the image, I couldn't display an imageon its column using the path stored on the database, I used a DataRenderer to do that, and here is my code for Renderer and the DataGrid.mxml
    CourseGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:courseservice="services.courseservice.*">
    <fx:Script>
    <![CDATA[
    import Renderers.CourseDeleteRenderer;
    import Renderers.CourseImageRenderer;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllCourseResult.token = courseService.getAllCourse();
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:CallResponder id="getAllCourseResult"/>
    <courseservice:CourseService id="courseService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:DataGrid x="10" y="10" id="dataGrid"
    creationComplete="dataGrid_creationCompleteHandler(event)"
    dataProvider="{getAllCourseResult.lastResult}"
    width="100%">
    <mx:columns>
    <mx:DataGridColumn headerText="" dataField="img" sortable="false" itemRenderer="Renderers.CourseImageRenderer"/>
    <mx:DataGridColumn headerText="id" dataField="id"/>
    <mx:DataGridColumn headerText="src" dataField="src"/>
    <mx:DataGridColumn headerText="title" dataField="title"/>
    <mx:DataGridColumn headerText="description" dataField="description"/>
    <mx:DataGridColumn headerText="Delete" itemRenderer="Renderers.CourseDeleteRenderer"/>
    <mx:DataGridColumn headerText="Update" itemRenderer="Renderers.CourseUpdateRenderer"/>
    </mx:columns>
    </mx:DataGrid>
    </s:Application>
    CourseImageRenderer.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      focusEnabled="true">
    <mx:Image source="{data}" width="60" height="60"/>
    </s:MXDataGridItemRenderer>
    Result :
    Problem :
    How can I access to the path of the image, I tried to write "data.img" instead of "data" as img is the name of the column in the database that stores the path but it wasn't successful.
    I know that it not complete statement "data" because "data" is a reference to what the DataGrid provides of information that gets from the (CreationComplete) event.
    Question :
    - Can you please help me with this so I can complete displaying images by accessing to what is on the column in tha DB so I can manipulate my datas that is stored there ?
    ==> I still have some questions about the buttons to update and delete datas fomr the DataGrid, but, until now I need to access successfully to the photo and display it
    Thank you,

    Anyone that can help me with this ?
    Please, try this with me, I'm asking Flex developpers this might be easy for you !
    It's just question of how to access the string stored in the variable "data", when I used XML I just type the path to the repeated element like this :
    XML file :
    XML File
    <parent>
    <child>
    <repeated_child></repeated_child>
    <repeated_child></repeated_child>
    <repeated_child></repeated_child>
    </child>
    </parent>
    I used a Model as a reference to the xml file
    and an arrayList as a container of the repeated child
    I just write in the code "data.parent.repeated_child" to access the text in the "repeated_child"
    and here is the code, that I implemented to generate videos from xml file to display a video play list
    Video Playlist code(extract from XML file "data.xml")
    <fx:Declarations>
    <fx:Model id="model" source="assets/data.xml"/>
    <s:ArrayList id="products" source="{model.video}"/>
    </fx:Declarations>
    <mx:List  dataProvider="{products}" labelField="title"
      change="list1_changeHandler(event,List(event.currentTarget).selectedItem)" x="103" y="77" height="350" width="198"/>
    That was my goal to do that with the database.
    Please help me
    If you have other solution I still need it.
    Thank you,

  • Creating a flash website to work with php & MYSQL for MMORPG

    Hi i have a website which is a gangster MMORPG, it using PHP,
    CSS, HTML and some javascript but however with the amount of game
    similar to mine i want to make it unique so i bought "building
    flash websites for dummies" i have read must of it and understand
    most of it. but however don't really have a clue i it could
    actually work with my website.
    what i want to know is can it work with my current PHP &
    MYSQL, so for example i want to create a logging page with flash to
    replace my old PHP/HTML one this will be my first crack at it. but
    will flash be able to check the MYSQL database and send error
    messages back to the view etc.

    Yeah, this can work... My recommendations would be to read a
    couple articles in the dev center on this topic, that should get
    you started...
    http://www.adobe.com/devnet/flash/articles/flash_databases.html
    http://www.adobe.com/devnet/flash/articles/datawizards.html
    http://www.adobe.com/devnet/flash/articles/ria_dataservices.html

  • Problem in displaying image when running a jad file

    I have written a midlet which displays an image in the welcome screen and then shows the main menu for the application. WHen I try to run the code directly from the console by using the command "midp -classpath . teledoc", the code runs fine and also displays the image which is stored in the same directory as the class files. Now i made a jad file so that i can install it on the mobile phone directly but while running the jad file it gives an error that "unable to locate and read the png file". Can anyone tell me why it is happening. I am attaching the code for the midlet below. Also the jad and manifest.txt files are attached.
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.io.*;
    public class teledoc extends MIDlet implements CommandListener{
    private Display display;
    private List list;
    private frmreg frmsub;
    private frmconsult frmsub1;
    private frmread frmsub2;
    private frmread_con frmsub3;
    private Command cmdexit;
    private Command cmdexit1;
    private Command cmdreg;
    private Command cmdconsult;
    private Command cmdread;
    private Alert altest;
    public teledoc(){
    display=Display.getDisplay(this);
    frmsub = new frmreg("New Registration", this);
    frmsub1 = new frmconsult("New Consultation", this);
    frmsub2 = new frmread("Select User", this);
    frmsub3 = new frmread_con("Select User", this);
    try{
         Image imgmain=Image.createImage("/teledoc.png");
         Image im1[] = {Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png"),Image.createImage("/teledoc1.png")};
         String options[] = {"New Registration", "Edit User Info", "New Consultation", "Edit Consultation", "Doctor's Reply", "Exit"};
         list = new List("Main Menu", List.IMPLICIT, options, null);
    cmdreg=new Command("New Registration", Command.SCREEN,3);
    cmdconsult=new Command("New Consultation", Command.SCREEN,4);
         cmdread=new Command("Edit User Info", Command.SCREEN,5);
         cmdexit1=new Command("Exit", Command.SCREEN,6);
    cmdexit=new Command("Exit", Command.SCREEN,2);                    list.addCommand(cmdexit1);
    list.setCommandListener(this);
    catch(java.io.IOException e)
    System.err.println("unable to locate");
    public void startApp(){
    try{
    Image im=Image.createImage("/teledoc.png");
    altest = new Alert("Welcome to TeleDoc", "", im, AlertType.INFO);
    altest.setTimeout(2000);
    catch(Exception e){
    System.out.println("Unable to Read PNG Image :");
    displayteledoc1();
    public void displayteledoc()
    display.setCurrent(list);
         public void displayteledoc1()
    display.setCurrent(altest, list);
    public void commandAction(Command c, Displayable s){
    //if(s==list){
    if(c==list.SELECT_COMMAND){
              switch (list.getSelectedIndex())
              case 0:
    display.setCurrent(frmsub);
              break;
              case 1:
    display.setCurrent(frmsub2);
              break;
              case 2:
    display.setCurrent(frmsub1);
              break;
              case 3:
    display.setCurrent(frmsub3);
              break;
              case 4:
              break;
              case 5:
    destroyApp(false);
              notifyDestroyed();
              break;
    if(c==cmdexit1){
    destroyApp(false);
    notifyDestroyed();
    //manifest.txt file
    MIDlet-Name: teledoc
    MIDlet-Version: 1.0
    MIDlet-Vendor: Jiva Research Institute.
    MIDlet-1: teledoc, /teledoc.png , teledoc
    MicroEdition-Profile: MIDP-1.0
    MicroEdition-Configuration: CLDC-1.0
    ////teledoc.jad file
    MIDlet-Name: teledoc
    MIDlet-Version: 1.0
    MIDlet-Vendor: Jiva Research Institute.
    MIDlet-Jar-URL: teledoc.jar
    MIDlet-Jar-Size: 18546
    MIDlet-1: teledoc, /teledoc.png , teledoc

    The problem probably isn't in you code, nor manifest nor jad file, but in the package process. Your image have to be in the root dir of the .jar file, but it isn't there. Try to see what is in you .jar with your favourite compress tool or with this command:
    %JAVA_HOME%\bin\jar -tfv <yoursuite.jar>

  • Getting image to work with nested styled and an image anchor

    Hello,
    I have created a nested style for a directory I will be creating. The style has a headline, subhead and body character style. That is all working fine.
    I am using a text anchor to anchor a photo to the left of where each headline starts.
    I am trying to get the text to wrap along the right side of the image. (so, head would move to the top right of the image, subhead would move up and the body copy would move up and wrap the rest of the image.
    See below what I have. I have tried to play with the anchor options, but have been unsuccessful. I can't use a regular text wrap, because it is no longer considered an image.
    Any suggestions?
    thanks!
    babs

    Nevermind -I figured it out.
    If I put the image above the first line of copy (the headline), not next to it, the following anchor options worked..
    See pic:

  • Working with Device Central and Dreamweaver

    This question was posted in response to the following article: http://help.adobe.com/en_US/dreamweaver/cs/using/WSBB2A56A3-CE82-400d-8CA4-E42A1EED6756a.h tml

    Hi, I have a question.
    (Quick explanation) I have dreamweaver cs6, I created an android app, a run the emulator and everything seems to be ok with the app, I download the .apk and everything ok so far, but when i wanted to upload it to Google Play i need to sign it, but I search all the web somehow to sign it and i did not find anything to sign an app made with dreamweaver and Phonegap, just those made with Eclipse.
    My question:
    Is there anyway to export driectly from Dreamweaver to Eclipse as a project? so i can export it and sign it...
    if Not, How can i convert those html files made with dreamweaver to Eclipse files, so I can use Eclipse to sign and generate the keystore file
    or, How can I generate a keystore file to sign an app made with Dreamweaver?
    Thakns.

  • When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    When I plug in my headphones into my imac only the right side plays music. I tried with other headphones and still has the same problem. I tried the headphones with other devices and they work properly. Can anyone help me with my problem please?

    Macs have crazy headpne jacks in different models.
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Problem in loading images when i am connected on company network

    Hi friends, I am using firefox since last 4 months on my windows 8 pro laptop.but since last month I am facing problem in loading images when i am connected on company network but same time it is working fine with ie10. But all these thinks are working well at my home when I am using broadband.

    I don't completely understand your issue. Does this issue occur on 1 network and does not occur on another? Have you tried clearing cache and cookies and making sure your plugins are up to date?
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • PDFs not displaying images when opened in Google Chrome.

    My PDFs are not displaying images when opened in Chrome. They do display in other browsers and when saved to the desktop. I have tested on multiple machines. Is there a problem with how they are saved? Here is a test: http://www.omnils.com/userfiles/files/Brochures/KL-003_REV_0914_APEX_CR_SPEC_SHEET_lo.pdf

    "... a known Chrome issue."  The resolution lies with Google for this - nothing you can do (other than disable the "in house" browser add-on and enable Adobe's (if you have Reader or Acrobat installed)).
    A similar issue exists with other, contemporary, browser releases.
    The "fix" is these software houses to deploy PDF viewer browser add-ons that actually comply with ISO 32000.
    Perhaps their lazy approach reflects the attitude of "Hey, Adobe will get the hit not us."
    Provide your users a feed-back mechanism; you'd be able to respond with the suggestion that they ping on the appropriate software houses to provide adequate software.
    Be well...

  • Iphone 4 the mike does not work when making a call.  it does work with speaker phone and face time

    Just activated new Iphone 4 and the mike does not work when making a call.  it does work with speaker phone and face time. Any known fixes?

    My wife's iphone 4 also has your same no ring problem as does my iphone 5 just less often.  I called her iphone 4 at home from where I work 20 miles away on my iphone 5.  With her phone in 3G mode ONE call went through and 9 went to voice mail in 10 tries.  This is a 10% sucess rate!!  I also could listen in real time from the wired work phone and the wired home phone.  She turned off 3G mode and it went to "O" mode at  the top left of the screen after the ATT.  In this mode it rang on the first ring tone 5 times out of 5 tries which is 100% of the time.  I have learned that the calling party will hear up to 4 ring tones when placing a call on the ATT network.  If the ring tone changes volume slightly before the 4th ring then and only then will the cell phone start to ring.  If the ring tone does not change after the 4th ring you get voice mail.  If the calling party does not leave a voice message there is never a missed call displayed on the iphone.  If the calling party does leave a voice message a few minutes later the iphone dings for arriving voice mail but still no missed call indication. 
    This appears to be related to the time of day and the ATT tower that the receiving caller is using.  Tried other towers and it works in 3G mode 10 times out of 10 tries.  Apple replaced the first iphone 4 with a new phone, no improvement.  ATT replaced the SIM card and no improvement.  ATT so far is clue less.  This has been going on every since we got the new iphones which is 4 months.  The ATT web site also describes this same problem from several years ago.  Has anyone got better information?
    Thanks

  • When I try to work with the publish window of lightroom cc, I am told that I do not have permissions to perform operations (remove picture, etc.)

    When I try to work with thhe publish window of lightroom cc, I am told that I do not have permissions to perform operations (remove picture, etc.). I also notice that when the particular picture is selected, another show in its place, and I cannot change the collection.

    To diagnose problems with Thunderbird, try the following:
    *Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX]
    ; If safe mode for the operating system fixes the issue, there's other software in your computer that's causing problems. Possibilities include but not limited to: AV scanning, virus/malware, background downloads such as program updates.

  • Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows

    Quicklook does not work with WMV files and quick look no longer maintains resized views when viewing from a folder using the up/down arrows. Any fixes?

    Same problem here...

  • HT1551 Atv3 doesnt want to finish installing update although ive tried several times, now the remote wont work with it either and when I press the remote the light on the box flashes several times, I unplugged everything but nothing works and I cant reset

    my Atv3 is due for an update and ive tried several times to install it but although it downloads it never finishes installing and tells me that it wasnt possible to update and to try another time. I try every other day and it only inches forward in the progress but it never completes the installation. I was tired of waiting and I decided to keep on trying in a period of time one night until it would finally install, that never happened and Im not sure what is going on but the remote stopped working with the atv3 and when I press a button the box light flashes several times but does nothing, ive disconnected it and left it that way for over 24 hrs, ive disconnected everything (tv, internet etc) and nothing. I cant reset the atv3 through the remote either...i dont know what else to do

    Hi Brian,
    Thanks restoring and restarting didn't fix my problem - i have started it fresh and still it doesn't work. Basically I press ONCE on the remote, after the machine has not had any commands for 10 minutes, and the cursor skips from one end of the menu to the other - so I can't choose network or update software etc - I sometimes manage to stop it randomly in the middle of the menu if I press on a command in the middle of the cursor skipping all the menu steps...not sure what the problem is but I have basically not used my brand new apple tv since I bought it for that reason! I should call Apple support I suppose! grrrr hate wasting time with stuff like this!
    Thanks for your help though!
    Pernille

Maybe you are looking for

  • Multiple Users on iPhoto Library & Time Machine

    I'm trying to figure out a way to set up my iphoto library so that it can be fully accessed by both my wife and myself from our separate accounts on a single machine. I have tried putting it in the shared folder and editing its permissions to no avai

  • Clear portal navigation cache from java

    Hi, I've written a navigation connector service based on the example in the ep6 pdk. It works fine but if I make changes to its configuration so that some new navigation entries should appear/disappear, it may last up to 2 hours until they show up. I

  • Multible displays same brand/model on different locations

    I run maveriricks on my MBP mid 2013 with two Dell 27" Displays via the display port, one at the office but and one at home. For various reasons i use a different rotation and screen posission (left/right side of the mb). For some strange reason is O

  • Recording a DJ mix on Garageband...only able to record an hour?

    Hi, I'm trying to record my latest mix but the track stops recording after just over one hour, Is there a way to extend record time, i'm making sure I have plenty of disk space, have 6gig spare and the current mixes of just over the hour are only 800

  • Install won't run

    I just downloaded Oracle 8i. I can run the autorun.exe and it brings up a screen where I choose Install/DeInstall Products. However, nothing happens after that. The window closes and nothing else runs. I've tried burning the files to CD - same proble