Find Jobs
Hire Freelancers

Change a variable with if - else, using php

$10 USD

Selesai
Dibuat sekitar 10 tahun yang lalu

$10 USD

Dibayar ketika dikirim
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.
ID Proyek: 5402189

Tentang proyek

15 proposal
Proyek remot
Aktif 10 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
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 dalam 1 hari
2,2 (2 ulasan)
2,4
2,4
15 freelancer menawar dengan rata-rata $13 USD untuk pekerjaan ini
Avatar Pengguna
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 dalam 0 hari
5,0 (417 ulasan)
8,1
8,1
Avatar Pengguna
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 dalam 0 hari
4,8 (66 ulasan)
6,4
6,4
Avatar Pengguna
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 dalam 1 hari
5,0 (36 ulasan)
6,2
6,2
Avatar Pengguna
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 dalam 1 hari
4,9 (31 ulasan)
5,9
5,9
Avatar Pengguna
A proposal has not yet been provided
$10 USD dalam 1 hari
5,0 (82 ulasan)
5,5
5,5
Avatar Pengguna
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 dalam 0 hari
4,9 (25 ulasan)
4,7
4,7
Avatar Pengguna
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 dalam 0 hari
5,0 (5 ulasan)
2,2
2,2
Avatar Pengguna
A proposal has not yet been provided
$15 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
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 dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
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 dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
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 dalam 0 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
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 dalam 1 hari
5,0 (1 ulasan)
0,1
0,1

Tentang klien

Bendera ITALY
Gallarate, Italy
5,0
40
Memverifikasi Metode pembayaran
Anggota sejak Sep 25, 2012

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.