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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx>
Date: July 18, 2010 8:35:49 PM EDT
To: php-db@xxxxxxxxxxxxx
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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux