Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
quiero mas #1
pull text from a database or file with html in it
Is it possible to pull html from a database a have the page dynamically
eg
<h3>hello</h3>
<p>bbbbbbbbbbbbbbbbbbbbbbb</p>
etc
then when this file is pulled the page is built to the style sheet
is it possible? How should i save a file if it is?
I want to do this for a article archive i have made with static pages but i
want the articles to look the same but have them stored in the database.
Regards Mark
quiero mas Guest
-
Using SPRY to pull from database and auto rotate
I am trying to create an effect for a client site where their current news will be 'scrolled' with page by page transitions on the home page. I am... -
Is it possible to pull pages of html from database?
I have a number of articles that I have applied a css sheet to. I have close to twenty articles. Each article has a couple of pictures - headings... -
Town (5) - how to pull this out of database/recordset?
Hi. Access/VBScript/ASP I have a table of records. Each record has a "town" field. Some of the records are from the same town. How do I: ... -
Load Text from Text file with html links?
Try http://opensource.brajeshwar.com/downloads/dynamictextscroll/ and just change it to your liking, it have html links as far as I can remember. ... -
database >> html file via FSO?
I would appreciate some help on how to convert a database table into an html file via FSO and whether more seasoned asp programmers recommned this... -
don Carlos #2
Re: pull text from a database or file with html in it
I would recommend looking into using PHP scripts to do it. You can store it as
a text field. You should have no issues with the tags < and > , but the
closing slash may require some special work. check out the forums and
information on [url]http://php.net[/url]
don Carlos Guest
-
VVebbie #3
Re: pull text from a database or file with html in it
Just store the content as text files (say, with .inc extensions), and then you
can load them into the page based on the $_GET superglobal array.
For example, you link to:
index.php?page=about
Then use somthing like what I attached to include the content. You may not be
able to include just using the include function, as I can't remember how that
works on plain text content, but it should just dump the content where you call
it. If it doesn't work, just take a look at the file() function. It's really
easy to use. Also keep in mind that there are security flaws in the above code,
so you need to perform some validation on the provided include name to prevent
people from including whatever they want.
<?php
if(array_key_exists('page', $_GET))
{
if(!@include('./content/'.$_GET['page'].'.php'))
{ die 'Content file ' . $_GET['page'] . '.inc not found.'; }
}
else
{
@include('./content/home.inc');
}
VVebbie Guest



Reply With Quote

