Adding Hyperlinks to scraped data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

typo, should be htmlentities
see http://de2.php.net/htmlentities
phpflixnewbie
Forum Contributor
Posts: 132
Joined: Fri Nov 17, 2006 11:46 am

Post by phpflixnewbie »

That error was just caused by a spelling mistake in your code (htmlentitites should be htmlentities).
This code adds the relevant html links to each title which is great.
However, i have now lost the zebra-style formatting of my table. Also the hyperlinked titles are in much smaller font and they are slightly misaligned with the rest of the data in the table, they are two cells higher than the other data, which means the top two cells actually 'leak' out of the top of the table.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

It's only an example. I'm not doing your work.
phpflixnewbie
Forum Contributor
Posts: 132
Joined: Fri Nov 17, 2006 11:46 am

Post by phpflixnewbie »

volka wrote:It's only an example. I'm not doing your work.
I didnt mean to sound ungrateful, im actually really pleased the links work. Im just not sure whether its a problem with my html/css or the php.
Thanks again
phpflixnewbie
Forum Contributor
Posts: 132
Joined: Fri Nov 17, 2006 11:46 am

Post by phpflixnewbie »

It was a problem with my css code, it looks fine now, i just need to integrate the zebra-stripes code back into it.
Thankyou very much indeed volka.
phpflixnewbie
Forum Contributor
Posts: 132
Joined: Fri Nov 17, 2006 11:46 am

Post by phpflixnewbie »

After getting the htmlentities working and having the a URL id automatically assigned to each title which is pulled from the database, how do i actually use the assigned id.

ie. if the assigned URL/id is http://www.domainname/detail.php?id=49

What filename do i give to the php file which has the details for id 49?
Its obviously a common problem, but as a beginner I need a hand please.
Post Reply