₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,405 members, 8,421,762 topics. Date: Sunday, 07 June 2026 at 12:23 AM

Toggle theme

Help Me Out.php Programmers In D House - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHelp Me Out.php Programmers In D House (908 Views)

1 Reply (Go Down)

Help Me Out.php Programmers In D House by papydan(op): 6:44pm On Apr 08, 2013
<?php function don($title){ ?> <html><head> <title><?php echo $title; ?></title></head> <body><?php if($title){echo $title;} }?> ...when i call d function it works fine,but d title of d page we nt out any thing.how do i go abt outputing d title of d page cos i want to b d same with d body head. Tanks in advance.
Re: Help Me Out.php Programmers In D House by prodam(m): 1:45pm On Apr 09, 2013
define function within the tittle tag...then call the function for that of the body..
Re: Help Me Out.php Programmers In D House by papydan(op): 2:22pm On Apr 10, 2013
It nt wking.any other way?
Re: Help Me Out.php Programmers In D House by oti4: 7:33pm On Apr 10, 2013
That's because u don't put a value for the variable $title, wats the title of ur site? Eg $title = “sample site”; just do that and u r cool.
Re: Help Me Out.php Programmers In D House by Nobody: 8:34pm On Apr 10, 2013
oti4: That's because u don't put a value for the variable $title, wats the title of ur site? Eg $title = “sample site”; just do that and u r cool.
Yeah! Rite Man
Re: Help Me Out.php Programmers In D House by papydan(op): 2:04pm On Apr 13, 2013
oti4: That's because u don't put a value for the variable $title, wats the title of ur site? Eg $title = “sample site”; just do that and u r cool.
tanks.but dat is nt what i want.wat i am luking 2 do is 4 example when programming section on dis forum is click,programming appear as its head line of d page & same time it appear on d title bar 2.hw do i go abt dat?
Re: Help Me Out.php Programmers In D House by Nobody: 12:12pm On Apr 14, 2013
Output Buffering, processing the webpage and adding the title before flushing to the client. works for me
Re: Help Me Out.php Programmers In D House by adexsimply(m): 2:01pm On Apr 16, 2013
if there is a variable set for the programming section, all u just need to do is append the variable to ur title on every page

e.g..
$section .=$_GET['section'];

putting this on every page will always display the current section
<html><head><title><?php echo $section; ?></title></head></html>



try that..
1 Reply

10 Greatest Computer Programmers In HistoryNo Programmers In Nairaland234

An Amazing Tool For Solving Math ProblemsLearn MoreLearn Ruby On Rails Here On Nairaland