A gallery of fluid from MySQL using PHP and various column widths

I decided to try the new option of fluid page layout in Dreamweaver. I pull information from a (MySQL) database and use php to present.

To view a gallery, I pull the info and use repetition code and something as horizontal repeat of Tom Muck script to create a gallery. Images should be indicated with other text information (not only a legend). However, the script of HR is a fixed amount of columns - and I want the number of columns to change depending on the width of the browser.

So it's more than a gallery - pulling images from a database with title = 'x' would be a stylized DIV repeated with multiple fields of texts and styles to the breast.

For example, a site of car dealer that it must show the image of car, price, year, description etc all fonts of different style so it may just be a legend in the image.

If the options are:

A fixed number of columns for each width: Mobile Monitor, 5, 3 shelves, 1. This can be done by having an "IF" statement in the code, if width = x use this version of the horizontal repetition?

A fluid version which has 6 columns and do you drag the width of the browser, you can see the Gallery less than column width until it reaches 1 for mobile.

The fluid version would be better.

Any link to a tutorial or an example would be most appreciated.

Thank you very much

HVR

The only problem with the use of instead of a table to create columns of the grid is that you need to set a minimum height on the to keep them all at the same depth, a bit like a construction of table cell looks and behaves. If you do not set a minimum height that the grid will look all shredded MORE the very big disadvantage is that the will not clear if another

has more content in there that's going to happen if you include a 'description' of the car because it will never be the same length unless you are prepeared to edit the text.

See sample of fluid below: you can simply fill in the of your database and the loop through them

Untitled document

Price

£8500

Year

2009

Description

This is a description of the car

Price

£8500

Year

2009

Description

This is a description of the car

Price

£8500

Year

2009

Description

It is a description of the car. It is a description of the car. It is a description of the car.

Price

£8500

Year

2009

Description

This is a description of the car

Price

£8500

Year

2009

Description

This is a description of the car

Tags: Dreamweaver

Similar Questions

  • How to insert image from mysql into the table using php and create the checkbox in the table?

    How can I insert image from mysql into the table using php and create the checkbox for each data as a vote? Here is my code...

    WELCOME

    connect_error) {die ("connection failed:".)} $conn-> connect_error); } $sql = "SELECT no, Calon, ID, of course, the Image OF THE candidates." $result = $conn-> Query; If ($resultat-> num_rows > 0) {echo ' '; export data of each line while ($row = $result-> fetch_assoc()) {"echo"}}
    NO Candidate INFO Vote
    " . $row ["no"]. "-" . $row ["Calon"]. "
    -" . $row ['ID']. "
    -" . $row ['class']. "
    "; } ECHO ' ' ;} else {echo '0 results' ;} $conn-> close();?} >

    hope someone can help me because I am a newbie in this program... need to finish this project... Thank you.

    If you have saved the file name in the database, it's pretty simple.

    echo '' . $row['description'] . '';
    

    Is the same for the box:

    echo '';
    

    If you have saved the image file in the database, it is much more complicated. I recommend you store only the file name in the database.

  • Sites Web using php and mysql successfully stopped the week last of sorting drop-down lists. Change something?

    We run a programme of internal timesheet open source called Timesheet Next Gen available on Sourceforge. We have it worked for a few years without any problems. We moved all of our Firefox users because the developer has indicated that there are questions of the sort associated with PHP and MYSQL via Internet Explorer. Dropdown lists using surveyed data did not follow the order of sorting and list have been blurred without order with duplicate entries. We had experienced this on our Windows 7 workstations in Internet Explorer (any version) and everything worked fine in Firefox. For some of us with the MacBook, the sort worked well in Firefox and Safari.

    Departure last week (perhaps Tuesday or Wednesday) all our users to Workstation Windows 7 has started to have the same sorting problems in Firefox with our internal website of timesheet. There is no change for timesheet Web site or the server that is running as much as php and server extensions web apache. I've since updated the server (Ubuntu) and apache, mysql and php are underway. Now sort in Firefox has stop working on our mac workstations. Safari is the only browser that works. We have installed Chrome on mac and Windows 7 and it does not sort either.

    To wrap to the top of this thread, the solution is available here: http://sourceforge.net/p/tsheetx/discussion/779084/thread/02841540/

    The general idea behind that the solution can be applied to other projects where a JavaScript object is created in PHP and you need access to its members in order of addition.

  • Muse has the possibility to use php and mysql?

    I'm really digging muse but I cannot find where or if the muse can include the type of code to interact with mysql via php... Thank you.

    HTML, CSS and Javascript only at this time.

  • Extract data from database using php script and entry for datagrid.

    Hi all

    I intend to use the php script below to extract data from a database.

    I want to then display it in a datagrid control, the datagrid control has Ref columns job, the company and the position.

    The php script I have is

    <? PHP
    $hostname_conn = "localhost";
    $username_conn = "";
    $password_conn = "";

    $conn = mysql_connect ($hostname_conn, $username_conn, $password_conn);

    @mysql_select_db ("videochat");

    $query = "SELECT * FROM work."

    $result = mysql_query ($query);

    $row = mysql_fetch_array ($result);

    $ref = $row ["jobref"];
    $company = $row ['company'];
    $position = $row ["position"];

    echo "< Ref > $ref < / Ref >";
    echo "< company > $company < / company > ';
    echo "< location > $position < / location >."

    ? >

    Could someone show me how I chuck this data in a grid?

    Thank you

    Hello

    You should start using the authority, either zendamf which is used by the data wizards in flashbuilder 4 or with amfphp which is probably better than zend but has not all nicities such as the creation of objects of value.

    http://flashhub.NET/filter/

    This project uses amfphp, basically, it uses remoteobjects so returned php is in a ready to put directly into a grid or a datagroup arraycollection collection.

    If you need help with this sort of thing PM me and I can do a login session...

    the PHP services for calls used in the application

    <>

    class pets

    {

    var $db_host = "localhost";

    var $db_name = "flashhub_pets";

    var $db_user = "flashhub_david";

    var $db_pwd = "david";

    function pets()

    {

    Define the methodTable for this class in the constructor

    $this-> methodTable = array)

    "getPets"-online (table)

    'description' => 'Pets, database',

    'access' => 'remote '.

    )

    );

    }

    function getAllPets()

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from pet;

    $Result = mysql_query ($Query);

    return ($Result);

    }

    function getTypeOfPets ($category)

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from pet where CATEGORY = $category;

    $Result = mysql_query ($Query);

    return ($Result);

    }

    function getCategories()

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from category";

    $Result = mysql_query ($Query);

    return ($Result);

    }

    }

    ?>

    David

  • Is this possible using php and insert record?

    Hi I have a table to insert record named CV
    If I leave the choice of the CV, for example temp, international, student etc., can I do some fields not available or available depending on the choice of the CV. Why I need is that if the choice is temp user chooses their rate of pay, the others won't. It is a single difference there will be a few other institutions. I wonder if I can use a conditional statement with the insert record or will I need to put in place a variety of tables of CV in the database?
    Thanks I hope you can help I am new to this.

    jjjhbj111 wrote:
    > Hi David
    > Thank you for the great response. I'd put the code of adaptation before inserting registration data or after?

    The following code is from a real insert record server behavior:

    If ((isset($_POST["MM_insert"])) & ($_POST ["MM_insert"] ==))
    "insertAuthor')) {}
    $insertSQL = sprintf ("INSERT INTO authors (name, family_name)
    VALUES (%s, %s) ',)
    GetSQLValueString ($_POST ['name'], "text").
    GetSQLValueString ($_POST ['family_name'], "text"));

    The conditional statement must wrap the definition of $insertSQL. You
    you will need to create your own definition for $insertSQL for each scenario. For
    example, you might adapt this option to create different insert orders
    If a middle name is supplied in function:

    If ((isset($_POST["MM_insert"])) & ($_POST ["MM_insert"] ==))
    "insertAuthor')) {}
    If ($_POST ["middle_name"]! = "") {}
    $insertSQL = sprintf ("INSERT INTO authors (name, middle_name,
    Family_name VALUES) (%s, %s, %s) ',)
    GetSQLValueString ($_POST ['name'], "text").
    GetSQLValueString ($_POST ['middle_name'], "text").
    GetSQLValueString ($_POST ['family_name'], "text"));
    }
    else {}
    $insertSQL = sprintf ("INSERT INTO authors (name, family_name)
    VALUES (%s, %s) ',)
    GetSQLValueString ($_POST ['name'], "text").
    GetSQLValueString ($_POST ['family_name'], "text"));
    }

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Removed from Garmin using MSconfig and now I can't print. The print spooler is not running

    I wanted to speed up my computer and remove an item off my msconfig.  Now I can't print. missing spooler.  What should I do?  I tried dating back to some time earlier, but all previous changes are missing

    Operation could not be performed.  The print spooler is not running

    the question I wanted to delete was for Garmin

    don101947

    Hello

    I don't know if you have already solved the problem of the other answer, but here's something you can try if your not confident using the command line.

    Go to [start],-> [Control Panel]-> [administrative tools]-> [Services]

    Depending on if your running XP, Vista or 7 you can have 2 tabs at the bottom of the window you see.

    Select [Standard] if its not already selected. If you already have a large list, skip this step.

    Scroll down and find the print spooler. Double click it, and then set the "Startup type" to [Auto]

    then click [OK] and then make a right click again print spooler and select [start]

  • How to navigate through a recordset using PHP

    I have a recordset containing a MySql table with 5 columns, each containing an email address of a staff member in a club.

    Each line represents a different club and each column a different type of agent.

    The first column represents presidents, treasurers next etc...

    The recordset is called $mailset.

    I need to loop through each row in $mailset and extract the email addresses of each column and concatenate them into a string separated by semicolons semi so it ends like this:

    [email protected] ; [email protected] ; [email protected] ; and so on.

    This is how the recordset is implemented:

    @mysql_select_db ($database_dummyread, $dummyread);

    $query_mailset = "SELECT club_chair_email, club_treas_email, club_sec_email, club_delegate_email, club_deputy_email FROM clubs;

    $mailset = mysql_query ($query_mailset, $dummyread) or die (mysql_error ());

    $row_mailset = mysql_fetch_assoc ($mailset);

    $totalRows_mailset = mysql_num_rows ($mailset);

    ? >

    I tried to use a loop to iterate through the Recordset, but it always shows the first record, so its not to move the pointer in the file.

    The pseudo code of the punishment to be something like this:

    Initialize variables and move to the first record

    If the registration process

    Read a record

    Treat all columns

    Move to the next record

    on the other

    If there is no record

    print an error message

    on the other

    Print the results.

    Can someone give me a hint on how to move from one line to the other in a recordeset under the control of a loop.

    I use PHP and MySql. (as far as I know, this is the original - not AOP or MySqli)



    While ($mail = {mysql_fetch_assoc ($mail_seyt))}

    extract ($mail);

    echo "$club_chair_email - $club_treas_email".
    ";

    }

    That should put you on the right track.

  • Muse of adobe can work with databases like mysql or php language?

    I would like to know that muse adobe can work with databases or php. I have not used in the past this adobe program.

    I thank very you much for your reply later.

    Found a few postst Forum who can guide you

    Muse has the possibility to use php and mysql?

    MySQL DB & Adobe Muse

  • Muse work with PHP and MySQL

    I have an investigation designed to go to a page of a site.  The designer will be using PHP and MySQL.  Compatible?

    Thanks for any help.

    SS

    Not really relevant. Whatever your designer will do will have to be inserted manually in HTML customized or by editing the HTML files published one way or another. It has nothing to do any with the Muse herself and the design of the process beyond 'make room', i.e. respective free addition where the code can be inserted.

    Mylenium

  • I need PHP and MySQl base or image Extension download file

    I use php and MySQL in my web site, my site is www.cyberbogra.com
    Now, I suffer for php and MySQL based image or file upload extion.
    Please someone help find for free.

    I create a search engine with PHP and MySQL using DM8 now I suffer for it.
    My search engine address is www.cyberbogra.com/search

    Thank you.

    Here is a free extension for the PHP file upload.
    http://www.magicbeat.com/

    About 2/3 of the way to the bottom of the page.

    --
    Nancy Gill
    Adobe Community Expert
    BLOG: http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e - book for the DMX Zone
    Co-author: Dreamweaver MX: instant troubleshooting (August 2003)
    Technical writer: DMX 2004: The Complete Reference, DMX 2004: Beginner
    Guide, Mastering Macromedia contribute
    Technical reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web development

    "nobinxp" wrote in message
    News:e85rv8$1RN$1@forums. Macromedia.com...
    > I use php and MySQL in my web site, my site is www.cyberbogra.com
    > Now, I suffer for php and MySQL based image or file upload extion.
    > Please someone help find for free.
    >
    > I create a search engine with PHP and MySQL using DM8 now
    > I am
    > suffering for it.
    > Search engine my address is www.cyberbogra.com/search
    >
    > Thank you.
    >

  • set up, log in using PHP

    I'm trying to put in place a log in page (Dw CS5.5) to add a list of members, visible only to logged in members on my site. In the server behaviors panel, I got 1. create a site and 2. Choose the document type, but can not get 3. set up the server to test the site for you sign up. I think that I did everything she asked. I am very confused at this point and would like if someone could lead me through the main steps to put in place a log in page. I have used WAMP, but so far had no success. I think I must be missing a step.  I'm still a rookie using Dw so please keep it as simple as possible. Or - Is there a tutorial that would lead me through it? I could not find one. I want to use PHP and not ColdFusion.Thanks for any help.

    I found a very good tutorial on lynda.com Dreamweaver CS5 and PHP, and MySLQ with David Gassner. He answers my questions in a very logical and understandable way.

  • PhP and XML

    I have recently started to use php and understand the concept of script side server. I was chatting with a co worker who would be better:

    If I had to use php to query certain data in MySql and passes the data back to flex... now if I had several requests to run it would be more efficient to run 1 important query against the data and then store these data in a table, let say and search locally through it.

    OR

    Call several times to a php script which has different queries to the database?

    Is there a right answer or wrong?

    Thanks in advance!

    Depends on:
    How are the data?
    How often the data changes?
    When you view? is it paginated?
    Made all the data should be sought, or just a column?

    There is not really a correct answer or wrong.

  • How to make an image link to mysql database using php?

    Hey, I am shopping online as my project portal to term. I want to add an image for what is available in my database for sale, so that when user click on this picture everything remove all it are displayed in a form. Kindly help me about this ASAP.

    This tutorial will give you an idea of what it takes. Problem is that the tutorial uses PHP code which does not work in the latest version of PHP. MySQL has made the way for MySQLi and PDO.

  • Can I use Lightbox Gallery in fluid grid

    Can I use Lightbox Gallery in fluid grid

    If you work in Code view, I don't see why not.

    Nancy O.

Maybe you are looking for

  • How can I turn off live bookmarks and use the other drive

    I regret that I checked the possibility to always use live bookmarks for my RSS FEED. Now I want to use bloglines, but when I click on the flow RSS to add to bloglines, live bookmarks appears and I can't have the power to add to bloglines. I'm so fru

  • Artists don't include after I have change the name

    Since I've updated my itunes, when I try to add/change a name of an artist and put in a section, where it does not. For example, when I download my songs from itunes garage band the artist is under my computer name and which is different from my name

  • HP Long DST failed

    Hello I have the computer laptop hp envy m6. He doesn't start and give the error message attached. When did the test drive, it gives the error code in the second attachment. Thank you

  • I have Windows XP. I received emails in OE. Now when I go I get mail, but nothing comes.

    I received an email without problem. I received a notice that said filled box?   In any case when I go into OE It continues to display in the right lower corner that I get sent in that nothing comes.  I can open sent, delete etc, but can not get by e

  • MPR.dll 0xc000007b

    He seems to be having trouble with mpr.dllI can't open the management console (services.msc)Paint or wordpad and I'm sure that moreerror message is 0xc000007btried to return a week on windows reset but no dicesomewhere, I am unable to find mpr.dllgiv