Pictures displayed in PHP

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Pictures displayed in PHP

    Sorry for the cross post if that offends you.

    First playing with PHP & MySQL. I want to create a 2 column table. Picture
    on one side and multiple MySql columns in the description Column. Like a
    shopping cart display page.

    Image Descript
    XXXXXXXX Table.Col3
    XXXXXXXX Table.Col4
    XXXXXXXX Table.Col5
    XXXXXXXX Table.Col8
    XXXXXXXX Table.Col9

    Column 6 in my table is the image "015689.JPG"

    Can someone give me a reference to how to display that image in a table and
    then how to get the various rows in a table.

    TIA

    __Stephen

    srussell at lotmate . com.


    Stephen Russell Guest

  2. Similar Questions and Discussions

    1. Flash not displayed in cf8
      I have developed an application and use flash (swf) as a banner. The problem is the swf object not being displayed at browser (ie6 and ie 7) if i'm...
    2. some files are not displayed
      I have a swf which it receives it's content from xml files. It displayes jpg's and mp3's by getting their paths from xmls. (also I must note that...
    3. getting ?????? displayed
      i am trying to display japanese from database utf 8 on the output page but no luck ...
    4. The XML page cannot be displayed
      'form' does not match the start tag 'input' This started popping up when my client whent to edit homepage. He is using v.2.0 Any ideas? ...
    5. Column with pictures instead of 0s and 1s (boolean value representation in pictures)
      Hi everybody, I have the following problem: I have a datagrid and a bound column to a data field which serves to indicate whether an item is...
  3. #2

    Default Re: Pictures displayed in PHP

    Sorry.

    I am have the SQL portion down. My $query has all the data I need. I just
    need to get the display rendered like I want.

    Within a table of two columns, I want an image in the left side. And in the
    right I want to have multiple MySQL columns displayed much like this

    Image Description
    XXXXXXXX Table.Col3
    XXXXXXXX Table.Col4
    XXXXXXXX Table.Col5
    XXXXXXXX Table.Col8
    XXXXXXXX Table.Col9

    Where the Table.ColY represent different aspects of $Query.

    When I make a for loop my data is more like

    Image Description
    XXXXXXXX Table.Col3 Table.Col4 Table.Col5 Table.Col8 Table.Col9
    XXXXXXXX
    XXXXXXXX
    XXXXXXXX
    XXXXXXXX

    TIA

    __Stephen


    "Darryl Porter" <dporter3@woh.rr.com> wrote in message
    news:lN3Va.27485$ib2.8601775@twister.neo.rr.com...
    > please provide concise info of what you want to do. Are you talking about
    > MySQL tables or HTML tables?
    >
    > "Stephen Russell" <Stephen.Russell@somewhereovertherainbow.org> wrote in
    > message news:4DYUa.95064$X43.17414@clmboh1-nws5.columbus.rr.com...
    > > Sorry for the cross post if that offends you.
    > >
    > > First playing with PHP & MySQL. I want to create a 2 column table.
    > Picture
    > > on one side and multiple MySql columns in the description Column. Like
    a
    > > shopping cart display page.
    > >
    > > Image Descript
    > > XXXXXXXX Table.Col3
    > > XXXXXXXX Table.Col4
    > > XXXXXXXX Table.Col5
    > > XXXXXXXX Table.Col8
    > > XXXXXXXX Table.Col9
    > >
    > > Column 6 in my table is the image "015689.JPG"
    > >
    > > Can someone give me a reference to how to display that image in a table
    > and
    > > then how to get the various rows in a table.
    > >
    > > TIA
    > >
    > > __Stephen
    > >
    > > srussell at lotmate . com.
    > >
    > >
    >
    >

    Stephen Russell Guest

  4. #3

    Default Re: Pictures displayed in PHP

    Well,

    Very simple decision is
    echo "<table>";
    while ( $r = mysql_fetch_array ( $rst ) )
    {
    echo "<tr><td>".$r[0]."</td><td>".$r[0]."</td></tr>";
    }
    echo "</table>";

    If Image is binary data then it won't be correct.

    Dima

    > Sorry.
    >
    > I am have the SQL portion down. My $query has all the data I need. I
    just
    > need to get the display rendered like I want.
    >
    > Within a table of two columns, I want an image in the left side. And in
    the
    > right I want to have multiple MySQL columns displayed much like this
    >
    > Image Description
    > XXXXXXXX Table.Col3
    > XXXXXXXX Table.Col4
    > XXXXXXXX Table.Col5
    > XXXXXXXX Table.Col8
    > XXXXXXXX Table.Col9
    >
    > Where the Table.ColY represent different aspects of $Query.
    >
    > When I make a for loop my data is more like
    >
    > Image Description
    > XXXXXXXX Table.Col3 Table.Col4 Table.Col5 Table.Col8 Table.Col9
    > XXXXXXXX
    > XXXXXXXX
    > XXXXXXXX
    > XXXXXXXX
    >
    > TIA
    >
    > __Stephen
    >
    >
    > "Darryl Porter" <dporter3@woh.rr.com> wrote in message
    > news:lN3Va.27485$ib2.8601775@twister.neo.rr.com...
    > > please provide concise info of what you want to do. Are you talking
    about
    > > MySQL tables or HTML tables?
    > >
    > > "Stephen Russell" <Stephen.Russell@somewhereovertherainbow.org> wrote in
    > > message news:4DYUa.95064$X43.17414@clmboh1-nws5.columbus.rr.com...
    > > > Sorry for the cross post if that offends you.
    > > >
    > > > First playing with PHP & MySQL. I want to create a 2 column table.
    > > Picture
    > > > on one side and multiple MySql columns in the description Column.
    Like
    > a
    > > > shopping cart display page.
    > > >
    > > > Image Descript
    > > > XXXXXXXX Table.Col3
    > > > XXXXXXXX Table.Col4
    > > > XXXXXXXX Table.Col5
    > > > XXXXXXXX Table.Col8
    > > > XXXXXXXX Table.Col9
    > > >
    > > > Column 6 in my table is the image "015689.JPG"
    > > >
    > > > Can someone give me a reference to how to display that image in a
    table
    > > and
    > > > then how to get the various rows in a table.
    > > >
    > > > TIA
    > > >
    > > > __Stephen
    > > >
    > > > srussell at lotmate . com.
    > > >
    > > >
    > >
    > >
    >
    >

    Dmitry Ruban Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139