Find Jobs
Hire Freelancers

Change a variable with if - else, using php

$10 USD

Completed
Posted about 10 years ago

$10 USD

Paid on delivery
Greetings, I've a website built in php. I have two twin pages which differ from each other for a few elements: [login to view URL] and mapfus.php. Both work with the same config file and function file, but with two different headers. Of course, they have a different url. Inside the function file, which is common to both [login to view URL] and [login to view URL], there's a variable called "$markerContent", which is printed through a line like this: return json_encode($markerContent); ____________________ $markerContent=$markerContent.$listingDelimeter."<div class='markerInfo' $featuredClass $markerHeightStyle>$classClause<h4 style='display:inline;'>".preg_replace( '/\s+/', ' ', addslashes($row0['headline']))."</h4><br /><font style='font-size:85%;'><b>".__($row0['retype'])." - ".__($row0['subtype'])."</b> (#".$row0['id']."), $priceString<b>".__("Phone").":</b> ".$row0['contact_phone'].", <b>".__("Address").":</b> ".$row0['address'].", <b>".__("City").":</b> ".$row0['city']."</font><br /><div class='mapInfoText' style='float:left; width:70%; padding:10px 10px 0 0;'>$smallDescription $featuredTag<br />$newTabButton $listingLink</div><div class='mapInfoPic'><a href='[login to view URL]".$row0['id'].$oodleRegionClause."'><img height='$thumbnailHeight' src='[login to view URL]$thumbnailHeight&src=".$rePicArray[0]."' /></a></div></div>"; $count++; } //return $markerContent; return json_encode($markerContent); _________________________ What I want is to have two different "markerContent" (let's call them: $markerContent and $markerContentFus). The first one must load always, like it does right now, the second one must load only if the page container is mapfus.php. For you to know, there's a function on the website to print the current url of the page and it works perfectly. So I'm pretty sure I tried everything I could find on internet, related to if "url" then. I also tried with if "page title" then, with no results. But I'm not a professional php developer, so maybe I need a professional help. Budget is limited because this task should be very simple for a professional developer. Hope to find a suitable one.
Project ID: 5402189

About the project

15 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
5 minutes of work ;-) As you said it's just if url contains [login to view URL] then ... Willing to solve this for you.
$10 USD in 1 day
2.2 (2 reviews)
2.4
2.4
15 freelancers are bidding on average $13 USD for this job
User Avatar
Hello! We have read your requirements and we will do this job for you. We have done similar kind of job before also. We have 100% completion rate and trust me, we are going to give you quality work and we are sure after that you will return to us for more work. We have 5 years of experience in php and its frameworks. Also, you need an experienced team for your job and we are surely the one. We hope that we will get a reply from you regarding the project details. Thank You!
$13 USD in 0 day
5.0 (417 reviews)
8.1
8.1
User Avatar
I am interested to work on this project. I have 5 years of experience in web development.I can start immediately and finish with a hour,Thanks
$10 USD in 0 day
4.8 (66 reviews)
6.4
6.4
User Avatar
I can do this very easily for you. I have a lot of experience in web development. I have been developing websites using PHP,HTML, Javascript, JQuery, CSS, Java, JSP, Wordpress, etc. for the past 4 years. I can do this task within hours.
$10 USD in 1 day
5.0 (36 reviews)
6.2
6.2
User Avatar
Hi, I have 3 years of experience in PHP and MySQL. Its a very easy job. Let me do this. Thanks Best Regards, Muzammil Versiani
$10 USD in 1 day
4.9 (31 reviews)
5.9
5.9
User Avatar
A proposal has not yet been provided
$10 USD in 1 day
5.0 (82 reviews)
5.5
5.5
User Avatar
HI, i got 5 years exp in php development, i can make our function work as u want fast and inbest quality code
$15 USD in 0 day
4.9 (25 reviews)
4.7
4.7
User Avatar
Hi i am ready to start this work. i will Provide Web Solutions Fast - Accurate - Professional. Our main target is 101% client satisfaction. We are part of a Professionals network.. i have brief knowledge of every thing required and necessary for website development. so if you are interested. Thanks
$10 USD in 0 day
5.0 (5 reviews)
2.2
2.2
User Avatar
A proposal has not yet been provided
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a Software Engineer capable of working on a wide array of programming languages. Lately, I'm focusing on Web related projects specifically PHP based such as Codeigniter, Prestashop, Wordpress OsCommerce, Joomla (both templates and plugins), API implementation on client and server side (lately using philsturgeon codeigniter RESTFUL Server and Client), Management Information Systems (including Enrollment systems, Billing, POS, Accounting). I can work also on a lot of PHP frameworks that is MVC and I consider myself an expert in Codeigniter having worked on this framework extensively for the last 2 years. I have created my own cms based on codeigniter which I can customize for you to every extent. I'm an expert in Database design, implementation (mysql) and data migration including designs with triggers, views and stored procs. I always give emphasis on efficient, well written and optimized databases and queries. I am always updated with recent technologies like responsive web designs, HTML5, CSS, and jquery. I can work on Ajax, LESS, and knows a lot about jquery plugins. I consider myself for the said job the most suited person. I can provide your software and design needs. You can count on me.
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Even though task sounds very simple, Being a professional I would focus on efficiency of code. Experience of working in PHP for more than 5 years will help me to do so.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I can do this with in 10 minutes after seeing code and you have to provide all other details I need to do this job.I hope you will be happy to see this.
$15 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
hi valentinafurno, i am quite familiar with PHP and ajax. i can do this for you with minimum cost. ols contact me if u want to work with me.
$10 USD in 1 day
5.0 (1 review)
0.1
0.1

About the client

Flag of ITALY
Gallarate, Italy
5.0
40
Payment method verified
Member since Sep 25, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.