Help please... I need a few lines to display an image...
Posted: Fri Jul 20, 2007 1:02 pm
I'm a PHP n00b, just started learning it, I'm trying to create a module for my Joomla based site...
I've been trying this for a week, but I simply can't figure it out...
What I want is the module to display a title, and then an image below it...
Here's the SQL Query:
SELECT title, image, category
FROM photos
WHERE date = ( SELECT Max( date ) FROM photos )";
That works perfectly, I just need a few lines of PHP to show this on my site...
So:
Show $title
Display Image <img src=mysite/folder/$category/$image>
Help me please
Thank You
I've been trying this for a week, but I simply can't figure it out...
What I want is the module to display a title, and then an image below it...
Here's the SQL Query:
SELECT title, image, category
FROM photos
WHERE date = ( SELECT Max( date ) FROM photos )";
That works perfectly, I just need a few lines of PHP to show this on my site...
So:
Show $title
Display Image <img src=mysite/folder/$category/$image>
Help me please
Thank You