Results 1 to 2 of 2

Thread: 2 things.

  1. #1
    Join Date
    Oct 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile 2 things.

    If you guys can help or let me know where I can find examples I would be gratefull..

    I have syntax within dreamweaver php that looks like

    print $row["date"]. " -- ". $row["title"]. " -- ". $row["description"]. " -- ".$row["author"]. "<br>";

    i would like to be able to change the format, (the way it will be laid out)
    as at present it will look something like

    26/10/06--PHP--Bit of a description--Author..

    Really i'd like it to be laid out as so..

    Date(bit of a space here) Title
    (Next Row is a space)
    Description here..
    And then right justified the author

    Any help where I can learn about layout?


    Next question..

    How do I show an Image.. how is it put into phpMyAdmin and how is it recalled..

    Thank you

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    How do I show an Image.. how is it put into phpMyAdmin and how is it recalled..
    Nothing is put into phpMyAdmin. phpMyAdmin is an administration utility for MySQL, which is a database.
    You can store and read to and from a BINARY BLOB field in MySQL just like any other data field, but it's usually considered a much neater approach to store the binary data to a file and save a filename in the database. This is especially handy on the web, since you need to provide a src attribute to the image tags (no, IE still doesn't support data: URIs) and storing the data in a database requires that you use a separate page to retrieve it.
    Any help where I can learn about layout?
    This has nothing to do with PHP. Look at a CSS tutorial.
    within dreamweaver
    I suggest you drop DreamWeaver. It takes a very skilled (and patient) designer to counteract the myriad problems such editors tend to introduce into code, and by the earlier question showing your lack of knowledge of CSS, I'm guessing you don't fall under this category. Please, use a text editor. You'll appreciate it eventually.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •