Jump to content

about bookmarks application in php & mysql web development ebook


peacengell

Recommended Posts

here i run the login page and i received error message on the line where it says do_html_heading($title);

the error mean can't find the function i don't know where it is wrong

if anybody done this before can let me know or send me the file so i can have a look at them and know where is the problem as i'm new to php programing thanks bye

hope to get some help see you guys

 

 

 

 

Listing 27.4 do_html_header()Function from output_fns.php—This Function

Outputs the Standard Header That Will Appear on Each Page in the Application

function do_html_header($title) {

// print an HTML header

?>

<html>

<head>

<title><?php echo $title;?></title>

<style>

body { font-family: Arial, Helvetica, sans-serif; font-size: 13px }

li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px }

hr { color: #3333cc; width=300px; text-align:left}

a { color: #000000 }

</style>

</head>

<body>

<img src="bookmark.gif" alt="PHPbookmark logo" border="0"

align="left" valign="bottom" height="55" width="57" />

<h1>PHPbookmark</h1>

<hr />

<?php

if($title) {

do_html_heading($title);

}

}

Link to comment
Share on other sites

1.) You might want to try reading your code. The function you've tried to call is do_html_heading(); the function you wrote is called do_html_header()

 

2.) I assume you meant to call the function from outside of it. I can't imagine you want to recursively create a header.

 

3.) where is $title defined?

 

function do_html_header($title) {
// print an HTML header
?>
<html>
<head>
<title><?php echo $title;?></title>
<style>
body { font-family: Arial, Helvetica, sans-serif; font-size: 13px }
li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px }
hr { color: #3333cc; width=300px; text-align:left}
a { color: #000000 }
</style>
</head>
<body>
<img src="bookmark.gif" alt="PHPbookmark logo" border="0"
align="left" valign="bottom" height="55" width="57" />
<h1>PHPbookmark</h1>
<hr />
<?php
}

if($title) {
do_html_header($title);
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.