php to php in html

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

Post Reply
jeffmcsweeney
Forum Newbie
Posts: 1
Joined: Sun Mar 21, 2010 4:23 pm

php to php in html

Post by jeffmcsweeney »

Greetings,

A couple of years ago a company I contracted with made this site to enter random employees above the meatcase:
http://www.alwanandsons.com/packages.php

I am trying to recreate the site with html as the foundation but use php for the random images. So far I am to this point:
http://www.alwans.fatcow.com/bundles.html

I consider myself above competent in html but a novice in php. Is this something I can accomplish with almost no working knowledge of php?

Jeff
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: php to php in html

Post by requinix »

If you only want to use PHP for the random images, sure you can do it. Stuff beyond that... not so sure.

1. Rename bundles.html to bundles.php.
2. Your random image thing isn't all that great. You already have an array: shuffle it and use the first five items.
Post Reply