Fwd: [PHP-DB] always the logic that messes me up.... Database fun!

From: Date: Tue, 20 Jul 2010 22:07:22 +0000
Subject: Fwd: [PHP-DB] always the logic that messes me up.... Database fun!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-307036@lists.php.net to get a copy of this message
Hey Everyone, I know it's not strictly on topic but the php-db list hasn't responded and I haven't gotten any farther :) So please read below and earn a free beer for anyone that can help me, and can make it to Florida :) Begin forwarded message:
From: Jason Pruim <lists@pruimphotography.com> Date: July 18, 2010 8:35:49 PM EDT To: php-db@lists.php.net Subject: [PHP-DB] always the logic that messes me up.... Database fun! Hi everyone! I'm trying to put together a completely database driven site so I can learn how to do it... I've gone to the extent of creating apache rewrite rules to redirect all non-existent files/folders to my script to see if it exists which works perfectly. Where I'm running into trouble, is if I store the entire page inside the database, and inside that page I'm grabbing info from another part of the database how do I include that? Such as: pseudo -code: //Display current page info Grab current rate plans and prices from database finish displaying page. Now... It sounds easy enough but what I end up with on my page is: echo << hosting info hosting info host info hosting info hosting info hosting info host info hosting info Current Plans HTML; include "hostingprices.php"; echo << More info about hosting HTML; The only thing I changed was the actual text cause I didn't want to spam the list with my hosting schpeal :) So how do I make that work? Any points in a direction? :) --PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#307036) next »