You are here: Re: Working with a table from inside a databse row « PHP Programming Language « IT news, forums, messages
Re: Working with a table from inside a databse row

Posted by milahu on 11/15/42 11:45

> Are you suggesting INSERTing entire tbl_Products code directly into the
> 'tbl_siteLayout.pageMiddleContent' field?

No, just store sth. like
-----
<ul>
<?php
// connect to mysql, query and parse result
?>
</ul>
-----
in the database and instead of printing the contents pass them to
eval():
-----
<?php
// fetch $content from mysql
eval($content);
?>
-----
Since you don't have access to variables as you would have with
include(), you have to connect to mySQL in the eval'ed code separately.

Cheers, milahu

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация