Have a little project in that requires the use PHP to handle some simple HTML issues. The project requires pulling the company name, logo, and navigation using functions via an external PHP file.
So far I have defined a function to take care of the company name.
PHP Code:
<?php function print_top ($title = 'Lacees Handcrafted Woodworking Shop') { print ($title); } ?>
and call this function inside the HTML
HTML Code:
<font size="6"><?php echo print_top() ?></font></font></strong></p>
It works but do not know if that is the correct way of doing such a task. This code is housed both inside the HTML file and I had planned to move this outside to an external PHP page but wanted to get it working within first.
I have been looking hot to accomplish the loading of the logo image, but have not be successful yet. I was trying to use the open_image () function but so far no luck.
As for the navigation part I have not researched yet.
So I am hoping to find some help here or be pointed to some good how-tos, etc on thse subjects so that I can help out.
Thanks in advance
|