php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18825 Ignoring formatting (Read to understand)
Submitted: 2002-08-09 02:26 UTC Modified: 2002-09-11 11:52 UTC
From: php at awpti dot org Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at awpti dot org
New email:
PHP Version: OS:

 

 [2002-08-09 02:26 UTC] php at awpti dot org
Here's the code snippet:


<span>Links</span> - <?php print '<a href="'.$base_dir.'/awlinks.php">.:back:.</a> -- <strong>'._cat_title($getcat).'</strong>'; ?>

Here's the result:

Links - Cartoons<a href="/awlinks/awlinks.php">.:back:.</a> -- <strong></strong></td>

Cartoons SHOULD be between <strong></strong> (That's the point of _cat_title()

-- here's the code for _cat_title

function _cat_title($getcat) {
	$res = mysql_query("SELECT * FROM LinksCatalog WHERE ID = '$getcat'");
	$row = mysql_fetch_assoc($res);
	$title = $row['LinkGroup'];
	return $title;
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-09 04:27 UTC] rasmus@php.net
Somewhere along the line you are doing something silly.  Put up a .phps of your actual code somewhere.  Or show us a small self-contained script that illustrates this.  I'm 99.999% sure this is user error.  But I'll be nice and leave this in feedback mode for a little while.
 [2002-09-11 11:52 UTC] sniper@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 17:01:30 2024 UTC