Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,770 members, 7,817,134 topics. Date: Saturday, 04 May 2024 at 06:50 AM

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

Nairaland Forum / Science/Technology / Programming / Help Me Out.php Programmers In D House (847 Views)

10 Greatest Computer Programmers In History / No Programmers In Nairaland (2) (3) (4)

(1) (Reply) (Go Down)

Help Me Out.php Programmers In D House by papydan(m): 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(m): 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.

1 Like

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(m): 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)

Pls, Help Me On This Resume Builder / Has Nairaland Truly Recovered, Or Does Mr. Seun Need Cybersecurity Help? / Which Hosting Site Do You Use For Your Java Based Web Apps?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.