PDA

View Full Version : List thru template


ZeepySea
10-01-2009, 01:30 AM
I am trying to create a list like the memberlist with different info of course.

I do the call to the DB get the results, but going thru the VB memberlist.php file to figure out how you create the memberlist with templates and all. It's a little confusing, to me it looks like you create a variable and then do a while loop for each member on the page. Getting the memberlist_bits templated and adding it.

But I tried that and didn't get anything, can someone throw a simple example up. I am able to do the main part of the template even called the variable inside the template, still nothing.

Lynne
10-01-2009, 02:38 AM
The example you were looking at was a good example. You should post your code here and then we can see what you forgot to do. Be sure to put it in the code/php tags and include the template code also.

ZeepySea
10-02-2009, 12:43 AM
Thanks for letting me know that was a good example, I figured out my error after I went thru the code again.

It was in the sql query, I used query_first_slave, switched it to query_read_slave and it worked without a problem.

Now to finish building the rest of it