Jump to content

page fails to display echo


Lassie

Recommended Posts

I am trying to find a fault which is most bizarre.

I have a simple program to update an array when a page is bookmarked which fails to display and does not show error messages.

After posting on the forum and recieving some help the problem still persits.

I decided to start from basic and build the program again in steps.

The code for the rework is shown below.

I still get the same result  - blank page.

I decided to broaden my checks and am getting some odd results that might indicate a problem with my set up.

If copy code from a simple program that has a header and some html text with little php  (although it is a php page)

I get the text but no headers! The original page shows as normal.

 

I have no idea what to try to track this down and would be grateful for any suggestions.

 

Code for rework which is just the start is

 


<?php
require_once('db_fns.php');
require_once('./includes/config.inc.php');
echo "Requires completed<br /\n";
exit();
?>

 

The link to this page is:-


$target='bookmark_list.php?product_id='.$product_id;
display_bookmark($target, 'bookmark', 'add to browse list');

 

The function is

function display_bookmark($target, $image, $alt)
{
	echo "<a href=\"$target\"><img src=\"images/$image".".gif\" 
           alt=\"$alt\" border=0 height = 57 width = 55></a>";	
}

[code]
Also if I just reference the page as http://localhost/e_cart17/bookmark_list.php  - I also get a blank page.

[/code]

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.