Käynnissä

PHP Array Project

I have a calendar script that outputs to a text file. I'm opening the text file, reading it into an array and then outputting the results. The text file contains:

7/9/2013-7/13/2013

Hot Stuff

By Robert More. Yes, folks, it's all platform shoes, leisure suits..

[url removed, login to view]

1,1,0,

*-*

7/16/2013-7/20/2013

Hot Stuff

By Robert More. Yes, folks, it's all platform shoes, leisure suits..

[url removed, login to view]

1,1,0,

*-*

My PHP code looks like this:

$content = file('DC_PictureCalendar/admin/database/[url removed, login to view]');

$content_chunked = array_chunk($content, 6);

if (count($content_chunked > 0))

{

echo "";

for ($i=0;$i<count($content_chunked);$i++)

{

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo $content_chunked[$i][1];

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo $content_chunked[$i][2];

echo "";

echo "Read more..";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

echo "";

}

echo "";

}

Problem is, if there is a duplicate entry in the $content_chunked[$i][1] (which is the title in this case), I just want to display it once instead of twice (no duplicates!). The successful coder will implement this solution.

Taidot: PHP

Näytä lisää: php code for calendar, php file array, php text array, php read text file, php read txt, php script echo, php array file, php admin calendar, php script hot, database outputs, leisure project, script duplicate entry php, read txt file php, echo script php, php hot script, php count txt, read text file array, echo file php, php echo file, php echo script, duplicate content php script, duplicate content script php, php duplicate content script, read php code, php script duplicate content

About the Employer:
( 57 reviews ) London, Canada

Projektin tunnus: #4239265

Myönnetty käyttäjälle:

erwindraft

Hi, I have read the requirements, and ready to help you validate the duplicate title, so it will only be displayed once. Ready to work on it now. Please check pmb for detail.

30 $ USD 1 päivässä
(79 arvostelua)
5.6

4 freelanceria on tarjonnut keskimäärin 30 $ tähän työhön

mbenchekroun

hello sir I'm ready.

120 $ USD 0 päivässä
(16 arvostelua)
4.8
seldimi

I have fixed your code and made a way to filter duplicate entries... If you want to, you can get me and i will give you the code

30 $ USD 1 päivässä
(17 arvostelua)
4.1
XWebHunter

I CAN HELP :)

30 $ USD 0 päivässä
(7 arvostelua)
3.2
wbslivera

Hello, I can help you, thanks

30 $ USD 2 päivässä
(2 arvostelua)
1.9