Hi there - in my page (as an example) http://www.photosales.co.nz/view_photog.php?photogid=10 - I would like the photographer name Mark Barker I would like in the title. Now in the page, it has <? echo $photogl->name; ?> that prints the persons name - how can I get that to show in my page title? $page_title = "Freelance New Zealand Photographers, NZ Photos from <? echo $photogl->name; ?>"; // PAGE TITLE FOR THIS PAGE - IF BLANK USE DEFAULT TITLE Above is what I have at the moment.
$page_title = "Freelance New Zealand Photographers, NZ Photos from <? echo $photogl->name; ?> PHP: Are you sure that statement is inside the mysql fetch loop ? If its outside , I dont think $photogl->name will contain any data.
Glad you got it fixed but remember to use the "Edit" button Next time you post back-to-back lol , Some Mods will not like it
Ok, thanks for the tip. The end result I have now is http://www.photosales.co.nz/view_photog.php?photogid=20 - so each photographer's name is also in the page title, instead of each page having the same name.