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);

}

}

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);
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.