Displaying output from mysql table in a certain spot on the page

Posted on 2005-04-20
Last Modified: 2008-03-06
I have a page that displays the contents of a field using "printf".  It displays at the top of the page.  How can I format this so that the information is displayed at a different spot on the page.
Question by:rhindo
    LVL 6

    Expert Comment

    put the command at a different point in the page


    <!-- header stuff -->
    beginnning content<br>
    <?php print_f($whatever); ?>
    continue content

    that would have it print after the beginning content
    LVL 12

    Accepted Solution

    Here you have to use tables to control the place where the outputs are displayed...
    For eample to display....

    my static contents here                                                             something here

    some more here                                                                        output from DB

    some extra lines here .............

       <td>my static contents here </td>
       <td>something here</td>
       <td>some more here</td>
       <td><?php // fetch data from the db and display here.........?></td>

    This will surely help you :)

    Author Comment

    LVL 12

    Expert Comment

    You are welcome.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now