23355 Posts in 17734 Topics by 2862 members
|Go to End|
5 August 2009 at 10:45am
I'm feeling somewhat stupid at the moment. I have been through the tutorials and done all 5 of them and have not been able to work out how to dispaly data from a table. I want to simply display data from a table that I have successfully created in the data base. This is a simple table with 3 columns in it. All I want to do is display the data from one or more of these columns on each page of my site. I just want the most basic way of doing this to start off.
Some help on the basic syntax would be much appreciated.
6 August 2009 at 6:30am
In the controller (php):
public function MyThing()
In the template:
<% control MyThing %>
<li>This is the Title: $Title</li>
<% end_control %>
I suggest you re-read the tutorials more carefully because they're very good!
6 August 2009 at 11:39am
Thanks for that. It was exactly what I needed. I agree that the tutorials are pretty good. However they are designed with a specific goal in mind ie whatever it is that they have said they are going to create. When you want to do something slightly different and you are not familiar with the fundamentals of how things work it can be extremely time consuming to work out what to do.
Again thanks for your help I am now happy to work out how to do the more complex things which are my actual end goal.
19 August 2009 at 10:30pm
I guess I got stuck with the same as ronin. I tried the suggested solution but there is only one line appearing on my website, instead of showing all the approx 300 lines which are stored in the table.
I made the tutorials 2 and 5 which are related to data handling, but as ronin already said, it is hard for a newbie like me to transfer some things from the tutorials to individual soluitions which may me much simpler but dont work.
can somebody assist please?
thank you very much in advance
|Go to Top|