Jump to content


template arrays


5 replies to this topic

#1 romer

    Young Padawan

  • Members
  • Pip
  • 19 posts

Posted 30 August 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?

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 August 2009 - 09:23 AM

http://php.net/manua...fetch-array.php

#3 romer

    Young Padawan

  • Members
  • Pip
  • 19 posts

Posted 31 August 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

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 August 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.pixel2lif...showtopic=29903

#5 derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 341 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 31 August 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

#6 romer

    Young Padawan

  • Members
  • Pip
  • 19 posts

Posted 31 August 2009 - 11:54 PM

thx very much





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users