Reply
Looking for some help to assist a friend
Old 04-19-2007, 09:52 PM Looking for some help to assist a friend
Junior Talker

Posts: 2
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
boostman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-26-2007, 06:54 AM Re: Looking for some help to assist a friend
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
can you explain what is the reason you want to do this. So i can better understand what are you trying to do.

If you only want to set the title for example ... you can put at the begining of the script the variables
$page_title='Page title';
$company_logo='/images/logo.jpg';

and to put those where you want
<?php echo $page_title ?>
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 04-26-2007, 09:09 AM Re: Looking for some help to assist a friend
Junior Talker

Posts: 2
With more digging around I was able to get it all to work. It was for a class assignment that my friend was working on and its one of those classes that they are required to do but didn't really want to do type things.

I'm sure that it could be done alot different but it seemed to all work out in the end. Thanks for the reply.
boostman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Looking for some help to assist a friend
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13695 seconds with 12 queries