How To....? Dummy question from a newbie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
quax
Forum Newbie
Posts: 2
Joined: Mon Jun 11, 2012 8:50 am

How To....? Dummy question from a newbie

Post by quax »

Hi, may I ask a question about how I could add an Logo picture in the header.php file
<?php $htmlUserBar=htmlUserBar(); ?>
<!doctype html public "-//W3C//DTD html 4.0 //en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>licenses | <?php echo $x->TableTitle; ?></title>
<script src="resources/lightbox/js/prototype.js"></script>
<script src="resources/lightbox/js/scriptaculous.js?load=effects,builder,dragdrop,controls"></script>
<script src="resources/lightbox/js/lightbox.js"></script>
<script src="common.js.php"></script>
<link rel="stylesheet" type="text/css" href="resources/lightbox/css/lightbox.css" media="screen">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<!-- Add header template below here .. -->

<?php echo $htmlUserBar; ?>
<!-- process notifications -->
<?php echo showNotifications(); ?>
What kind of pic file I could use like: jpg, png, gif or whatsoever? and what I will be need to key in etc.?

I've haven't any knowledge about PHP, so could someone please explain and help me?

Thanks a lot.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How To....? Dummy question from a newbie

Post by Celauran »

Essentially, you just need to add in an img tag. There's no real HTML being shown in the code you posted. You'll need to post the code for htmlUserBar() and showNotifications() if you need a more detailed/specific answer.
quax
Forum Newbie
Posts: 2
Joined: Mon Jun 11, 2012 8:50 am

Re: How To....? Dummy question from a newbie

Post by quax »

Thanks for that.

As I told, I don't know anything about php.

As I read in that file, it says: <!-- Add header template below here .. --> What that is really meaning and how to do? Could you give me some example please? And what kind of pic format I could use?

Thanks for your help.
Post Reply