Professional Web Applications Themes

Pictures displayed in PHP - PHP Development

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 XX Table.Col3 XX Table.Col4 XX Table.Col5 XX Table.Col8 XX 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....

  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
    XX Table.Col3
    XX Table.Col4
    XX Table.Col5
    XX Table.Col8
    XX 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. #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
    XX Table.Col3
    XX Table.Col4
    XX Table.Col5
    XX Table.Col8
    XX Table.Col9

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

    When I make a for loop my data is more like

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

    TIA

    __Stephen


    "Darryl Porter" <dporter3woh.rr.com> wrote in message
    news:lN3Va.27485$ib2.8601775twister.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.Russellsomewhereovertherainbow.org> wrote in
    > message news:4DYUa.95064$X43.17414clmboh1-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
    > > XX Table.Col3
    > > XX Table.Col4
    > > XX Table.Col5
    > > XX Table.Col8
    > > XX 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

  3. #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
    > XX Table.Col3
    > XX Table.Col4
    > XX Table.Col5
    > XX Table.Col8
    > XX Table.Col9
    >
    > Where the Table.ColY represent different aspects of $Query.
    >
    > When I make a for loop my data is more like
    >
    > Image Description
    > XX Table.Col3 Table.Col4 Table.Col5 Table.Col8 Table.Col9
    > XX
    > XX
    > XX
    > XX
    >
    > TIA
    >
    > __Stephen
    >
    >
    > "Darryl Porter" <dporter3woh.rr.com> wrote in message
    > news:lN3Va.27485$ib2.8601775twister.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.Russellsomewhereovertherainbow.org> wrote in
    > > message news:4DYUa.95064$X43.17414clmboh1-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
    > > > XX Table.Col3
    > > > XX Table.Col4
    > > > XX Table.Col5
    > > > XX Table.Col8
    > > > XX 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

Similar Threads

  1. The page cannot be displayed
    By pankaj in forum ASP Components
    Replies: 10
    Last Post: February 2nd, 08:04 AM
  2. How come the images are not getting displayed in ie?
    By kchamarthi in forum Macromedia Flex General Discussion
    Replies: 11
    Last Post: May 26th, 01:03 PM
  3. some files are not displayed
    By arvin8 in forum Macromedia Flash Data Integration
    Replies: 3
    Last Post: September 1st, 11:20 AM
  4. getting ?????? displayed
    By quiero mas in forum Coldfusion Database Access
    Replies: 0
    Last Post: July 3rd, 12:29 PM
  5. Replies: 1
    Last Post: March 2nd, 03:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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