Alright... I'll Be The First To Show Off

liunx

Guest
I didn't want to be the first to start the 'show and tell' ... but I'll jump in to get the ball rolling.<br /><br /><!--sizeo:7--><span style="font-size:36pt;line-height:100%"><!--/sizeo-->Jobs Wanted/Jobs Avail<!--sizec--></span><!--/sizec--><br /><br />On this page,<br /><a href="http://www.travelnursedepot.com/jobs/" target="_blank">Travel Nurse Depot Jobs</a><br />There's a lot going on behind the scenes.<br /><br />First, I use php include() to bring in the header and footer portions.<br /><br />You'll notice that the header has date. That's a short snippet of php code right in the header file.<br /><br />What you might not notice, unless you navigate around the site, is that there are two logos I use. Currently, the php script in the header file generates a random number that determines which logo gets displayed. So you might revisit a page and see a totally different logo.<br /><br />(Think about the ways that type of code could be adapted... <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> )<br /><br />Then, in the body of the page, I've used include() to bring in the four main sections. Each of those four files runs a query on my database, pulls out a certain number of job postings, ranks them in the order I ask, and displays them in tables. I used css to get the dotted line around the three boxes.<br /><br />At the very bottom of the page, there is a footer section that is included by php. In it, there is a drop down select that submits to a page that does nothing more than redirect to the page selected. I used the header() function to make the redirect happen. You could view source on the form to see the drop down values, and you'd get a good clue of how it was written. Pretty straightforward... but home built.<br /><br />The database script that pumps out the 50 main job requests also puts in an extra snippet in the 'a href' html code that says <!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->title="something from the database"<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />The end effect is that when you hover your mouse over the job listings, a little information box pops up that gives the recruiter more info about the job request.<br /><br />Then the R boxes that are next to some of the job listings indicates that some of the job hunters have resumes on file. So, if you follow the link to their profile, you can click on the icon (R box) and an Adobe Acrobat file will pop up on your browser that is populated by information from my database.<br /><br /><!--sizeo:7--><span style="font-size:36pt;line-height:100%"><!--/sizeo-->Comparing apples to apples<!--sizec--></span><!--/sizec--><br /><br />This page:<br /><a href="http://www.travelnursedepot.com/compare/index.php" target="_blank">Compare Agencies</a><br /><br />Is populated with information from a database that some of my visitors put in for me.<br /><br />The page populates the drop down select boxes with information from the database so that any time a new entry is made, the <b>form automatically updates without any effort on my part!</b><br /><br />(See why I love php?)<br /><br />Then, the script submits the user input to the same page using $PHP_SELF<br /><br />Up comes a side by side comparison of the companies.<br /><br /><!--sizeo:7--><span style="font-size:36pt;line-height:100%"><!--/sizeo-->Other general ideas<!--sizec--></span><!--/sizec--><br /><br />I won't go through the other pages, but here is a bullet list of ways that I've used PHP to create a content rich site:<ul><li>Password protected pages (using php, not htaccess)</li><li>Forum with private messages</li><li>Email automatically sent out composed of html triggered by certain events</li><li>List of all the hospitals in the us, with paginated menus so that users can select by city or page number</li><li>Dynamically generated urls that enable me to show weather and maps in any city they choose, and I only had to write a few lines of code</li><li>A tell-a-friend form that asks the user how many referrals they want to give, and then populates the next form with only that many fields... sends out email to referrals as if sent by the referral giver</li></ul>Well, if I pat myself on the back any more, I'll risk breaking my arm. <br /><br />I'm looking forward to seeing what the rest of you come up with.<br /><br />It doesn't have to be unique or amazing... just something you're proud of... even if it's just getting your first PHP script to work.<br /><br />We'll give you helpful suggestions.<!--content-->
 
Top