₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,345,033 members, 8,515,091 topics. Date: Sunday, 08 November 2026 at 04:01 AM

Toggle theme

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

Nairaland Forum › Science/Technology › Programming › Help Me Out.php Programmers In D House (924 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 History • No Programmers In Nairaland • 2 • 3 • 4

I Want To Make It! Please Help Me • Help Me Someone Else Is Using My Account • Alexa Rrank Checker