UILoader won't display images from PHP/MYSQL query

I'm working on an online photo catalog, it works in straight PHP/HTML http://www.buckleyphotos.com/search/index.php but the photos are too easy to grab (Facebook and myspace are loaded with my photos). I know anything on screen can be grabbed, I just want to make it a little harder.
I've got a version of the ordering page with a SWF on it that will hopefully display the photos, http://www.buckleyphotos.com/searchtest/showpic.php?num=1&showpic=21_71909_6908.jpg&el=200 9-07-19+NEMX+Crow+Hill&riderno=21, but so far no luck.
Here's the PHP:
<?php
$page = $_GET['num'];
$el = urlencode($_GET["el"]);
$riderno = $_GET["riderno"];
$showPic = strtolower($_GET["showpic"]);
echo "$showPic";
?>
This is the Actionscript:
import fl.containers.UILoader;
var loader:UILoader = new UILoader();
loader.scaleContent = false;
loader.source = "showPic.php";
addChild(loader);
The SWF is in the same folder as the images.
Any help will be much appreciated.

I'm stil woking on this one,
http://www.buckleyphotos.com/wsp5706/source/image/showpic.php?num=1&showpic=21_71909_6487. jpg&el=2009-07-19+NEMX+Crow+Hill&riderno=21
Here's the PHP code
<?php
$page = $_GET['num'];
$el = urlencode($_GET["el"]);
$riderno = $_GET["riderno"];
$showPic = strtolower($_GET["showpic"]);
echo "$showPic";
?>
You can see the file name of the photo above the light gray SWF, that's the result of the PHP query, echo "showPic"
This is the AS 3 code:
import fl.containers.UILoader;
var loader:UILoader = new UILoader();
loader.scaleContent = false;
loader.source = "showPic";
addChild(loader);
This is the HTML:
<param name="movie" value="http://www.buckleyphotos.com/wsp5706/source/image/Main2.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="6.0.65.0">
<param name="expressinstall" value="../Scripts/expressInstall.swf">
<param name="allowScriptAccess" value="always">
<param name="loader.source" value="$showPic">

Similar Messages

  • Help displaying images from PHP query as SWF

    I have a searchable photo site where a racer can enter his rider number, choose an event and find his photos. It's fast and easy but also too easy for my customers to right click on all the photos they want. I'd like to be able to load those jpegs into a SWF so it would at least be a little harder for them to get the files. I've search these forums but haven't found anything. Anyone know of a tutorial that would show me how to do that?
    Here's a link to my site, http://www.buckleyphotos.com/search/index.php

    hello, can i ask you a question, that is how to convert image to RGB or binary code.thanks

  • My MAC won't display images from websites, all of a sudden. Any ideas?

    My e-mail works fine and includes pictures, but websites only download text.

    Remove all other plugins you have installed for viewing PDFs and install [https://www.adobe.com/products/reader.html Adobe reader]

  • Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.

    Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.  Any suggestions?

    Solution discovered.  Faulty connector cable.  Tried a different one and it worked.

  • Problem Displaying image from blob

    Hi all,
    I m using,
    Database : 10g Rel 2
    Frontend : DevSuite 10g
    OS : WinXp
    Browser : IE 6
    Problem : In my forms i m displaying images from blob column but some of the images are not displayed. I have tried with all image formats available in combination with all available display quality but no luck. What could be the reason for it and how do i solve it?
    Can anyone help me plz?
    Thnx in advance.
    Imtiaz

    Hello,
    It is very difficult for us to "guess" what images you can read and what others you cannot.
    Maybe you could provide more information on images that are not displayed ?
    What is their native format ?
    Francois

  • My iphone 4s suddenly displays images from Yahoo, Google, and Flickr at low resolution. The camera on my phone works fine, but any web related photo content is now pixelated and low res, what's the deal?

    My iphone 4s suddenly displays images from Yahoo, Google, and Flickr at a low resolution. I have IOS 7.0.4. My phone camera works fine, but any web based photo content from Safari, Yahoo images, Google images, and Flickr all come in pixelated and low res. What's the deal?

    It happened to me but later I figured out that cellular signal was not that great and so the Internet was very slow. It took me about 2 minutes to get the full resolution picuture on either of the app you've described. Try to get faster internet either by wifi or good signal and then check.

  • Display image from table!

    Hi,
    I have in my aplication a table user, where we can save is image:
    t_user{id_user, name , adress..., foto(blob),foto_size(number),foto_name,foto_mime_type};
    An user can upload his imageand save it in his table!
    I wanted to display his image, but i onle found infomation how to show images saved in htmldb_application_files:
    how to display image from tables?
    Thank's in advance

    Look at the sample application. It shows you how to do this

  • Display Images from  HTMLDB_APPLICATION_FILES Table?

    How do I display images from the HTMLDB_APPLICATION_FILES Table?
    Are the contents full available potentially for display? Or only after I have written them to another display?
    Please advise what I need to do or what corrections below is required:
    The calling procedure is a item in a SELECT statement as part of a report query:
    <P>
    <(img src="#OWNER#.download_HAF_file?p_file=  ' || nvl(ID,0) || ' height="50" width="50" )>, HAFimg<P>
    The Procedure is a adaptation of the Chapter 8 Exercise of the 2 day developer guide:
    CREATE OR REPLACE PROCEDURE "DOWNLOAD_HAF_FILE" (p_file IN NUMBER) AS
         v_mime VARCHAR2(48);
         v_length NUMBER;
         v_file_name VARCHAR2(2000);
         Lob_loc BLOB;
    BEGIN
         SELECT MIME_TYPE, BLOB_CONTENT, NAME, DBMS_LOB.GETLENGTH(BLOB_CONTENT)
         INTO v_mime, lob_loc, v_file_name, v_length
         FROM HTMLDB_APPLICATION_FILES
         WHERE ID = p_file;
         -- set up HTTP header
         -- use an NVL around the mime type and
         -- if it is a null set it to application/octect
         -- application/octect may launch a download window from windows
         owa_util.mime_header( NVL(v_mime,'application/octet'), FALSE );
         -- set the size so the browser knows how much to download
         htp.p('Content-length: ' || v_length);
         -- the filename will be used by the browser if the users does a save as
         htp.p('Content-Disposition: attachment; filename="'||SUBSTR(v_file_name,INSTR(v_file_name,'/')+1)|| '"');
         -- close the headers
         owa_util.http_header_close;
         -- download the BLOB
         wpg_docload.download_file( Lob_loc );
    END Download_HAF_File;
    /Message was edited by:
    luddite1812

    I believe you put HTML "pre" tags around your quote (with square brackets, I can't type them here because they'll be escaped).
    If the example below looks formatted then using "pre" works, if not...then ignore me ;)
    begin
      select
        count(*)
      into
        v_count
      from big_table;
    end;

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

  • Display images from a SQL database

    I want to display images from a SQL database. The images are in a table under a specific column and are stored as a link to the image. How would I display the images from the column in LabVIEW?
    I'm using LabVIEW 2013 version 13 and SQL Server 2012
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere

    Hi PauldePaor,
    I hope you are well.
    Once you have pulled the data from the database into LabVIEW in a string form (or path), you can simply use the Read BMP File (Or jpg, png depending on the file type) VI.
    More information can be found here:
    http://digital.ni.com/public.nsf/allkb/02971A30F5D8FC6986256A0A004F11A0
    Kind Regards,
    Aidan H
    Applications Engineer
    National Instruments UK & Ireland

  • How to display image from wamp if the data type i use is blob?

    please help me with the problem of displaying image from wamp if data type is blob. Thanks

    Don't store the images in the database. Store the image file names in the database and put the images in a folder.

  • Displaying images from url's (9i)

    Is it possible to some how display images retrieved from a url within an image item? I know its possible to display images from within the database and from a file but these images are stored on another server and all i have is a web address, can it be done? Also is it possible to dislpay a series of images that are retrieved in this way in a report?
    Any help is much appreciated.

    Hi,
    this would require a Java Bean to be written. Its not natively possible in Forms
    Frank

  • Why won't RAW images from my new Powershot SX50 import in LR3?

    Why won't RAW images from my new Powershot SX50 import in LR3?

    hello,
    minimum lightroom version required:4.3
    camera raw minimum required:7.3
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html

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

  • AS3 gallery with xml written from php/mysql

    I am creating an Image Gallery for products for a company.
    When you click on a product, it takes you to a page with
    description, images, etc.. I have all the data, including file
    names, on a MySQL server. I use php to load the data, and write a
    generic xml file.
    This xml file is re-written everytime someone clicks on a new
    product, so that the correct images from the data base are
    associated with the xml file. The file is then loaded into flash,
    parsed, and used to make up the gallery.
    The problem is, when I publish it on the website, the gallery
    works for the first product selected, but when I go back and choose
    a seperate product, that product gives me the following error when
    trying to display the gallery:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load
    Never Completed.

    Ok I solved the problem by myself. I changed the php like
    this:
    (added header() and change return $xml to echo $xml):
    subscribe.php
    <?php
    header("Content-Type: application/xhtml+xml");
    $sql = mysql_query("...");
    $xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
    $xml .= "<abmeldung>";
    while ($result = mysql_fetch_assoc($sql)) {
    $xml .= "<benutzer>";
    $xml .=
    "<name>".$result['name']."</name><grund>".$result['grund']."</grund>";
    $xml .= "</benutzer>";
    $xml .= "</abmeldung>";
    echo $xml;
    ?>

Maybe you are looking for

  • I cannot enter text in the iTunes search box

    I'm having a really bizarre problem with iTunes latest version (10.5,0.142). When I click in the search field in the upper right-hand corner of the program, I cannot enter any text--no text cursor appears.  I can click on the little down arrow next t

  • How to block goods exit regarding a reservation?

    When I reserve all the goods in stock, somebody else still could consume the quantity in stock even though it is reserved by me. Is there a possible way to block the amount of stock which is reserved? I mean the system should not allow 201 movement w

  • I REGRET CHOOSING THE 5800XM

    I know some of you are in love with it but there's a whole lot of others who'll agree with me on this one. My 5800XM is one of the worst in history, what happened to customer satisfaction? The fone crashes a lot, the photo gallery shows no photos but

  • How to access Hyper-V Client from Hyper-V Server to the new machines?

    Hi We have a small company in that we have 50 machines, i am having windows 2012 r2 server, i installed Hyper-V with that i have created virtual OS(winxp and win7) in the Hyper-V server. My question is how to access them in client Machines, Can Anybo

  • Video clips and animated content works on AC ?

    Hi I have to show a PPT presentation which includes an AVI video clip, but it does not work > black area instead of the video Another problem when I try to share an application with animated contents (Stellarium, a program that shows stars and conste