romer
Aug 30 2009, 10:35 PM
Can anyone give me a tutorial on how to use arrays.i know how u use them to display text but how do i use them to display mysql data?
romer
Aug 31 2009, 03:45 PM
is that what u use to make {sitetitle}.i know how to make that but not how to use it to get database queries
rc69
Aug 31 2009, 08:53 PM
Oh, i must have misunderstood the question. Are you using a Template class such as Smarty? If so, it would help to know which you are using.
If you are building your own, then i refer you to this topic:
http://www.pixel2life.com/forums/index.php?showtopic=29903
derek.sullivan
Aug 31 2009, 11:12 PM
rc69, you were on the right track.
what you need to do is match the array with what variables are being replaced, i'm still trying to figure it out to. but just read more on php.net