Results 1 to 2 of 2

Thread: help with displaying users

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    help with displaying users

    I am stuck with a logic here. I have a users information saved in the database, now I have 2 If conditions

    1. If the user is in the datbase and with a "flag" true, then display the user's information.
    2. If the user is in the db but no flag, then display that user's information too.

    I have a for loop to loop through that database, and create a table with 2 "tds" in it. I have the function display(user1, user2) with 2 arguments.

    For ... user1 array then I create first td and second td, but I don't know how to corporate user2 array in that loop.

    For instance,

    Column1 has user A
    Column2 has user B

    My probme is if userB's flag = false then it won't show up on column 2, but rather shows up on Column1 for the next td.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: help with displaying users

    Could you rephrase your question because it is not clear what you are asking. A bit of source code and HTML will also help.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width