vbbit
Jul 30th, 2008, 10:11 AM
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.
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.