Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

PHP newbie (generating HTML content in a generic way)- HOW ?

 
   Database Help (Home) -> PHP RSS
Next:  php and mysql  
Author Message
Ronald Raygun

External


Since: Apr 10, 2008
Posts: 20



(Msg. 1) Posted: Thu Apr 10, 2008 4:52 pm
Post subject: PHP newbie (generating HTML content in a generic way)- HOW ?
Archived from groups: alt>php, others (more info?)

Sorry for the crossposting - I'm not sure which is the most
active/relevant php ng yet ....


Hi, I am a PHP newbie, but have been programming C/C++ for over 10
years, so in that respect, I'm not a programming noob.

I am putting together a few web pages and I want to 'modularize' the
page content into 'blocks', so that I have php script responsible for
creating different blocks - e.g.

header.php (responsible for creating header section)
footer.php (responsible for creating footer section)
lhsnavig.php (responsible for creating lefthandside menu navigation section)

etc ....

can some one please provide me with skeleton code that I can use to
create such a 'framework' ? MTIA

 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Guillaume

External


Since: Apr 10, 2008
Posts: 41



(Msg. 2) Posted: Thu Apr 10, 2008 6:05 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ronald Raygun a écrit :
> can some one please provide me with skeleton code that I can use to
> create such a 'framework' ? MTIA

Smarty is an easy one, not really a framework, it's a template engine
which can help you with your request.

http://www.smarty.net/

Regards,
--
Guillaume

 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Ronald Raygun

External


Since: Apr 10, 2008
Posts: 20



(Msg. 3) Posted: Thu Apr 10, 2008 6:05 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Guillaume wrote:
> Ronald Raygun a écrit :
>
>> can some one please provide me with skeleton code that I can use to
>> create such a 'framework' ? MTIA
>
>
> Smarty is an easy one, not really a framework, it's a template engine
> which can help you with your request.
>
> http://www.smarty.net/
>
> Regards,


Hi Guillame,

I know about smarty - even though its quite 'lightweight', its too much
of an overhead (not to mention leaning curve) for what I want to do,
which is create little scripts, each of which generates a 'block' of
html code - and then combining all of the little 'blocks' of html into
an html code.

This way, I can easily and quickly, build little libraries (PHP
scripts), each of which builds specific html 'blocks', e.g. navigation
menus etc, so I can quickly put a page together using these blocks.

The problem is not how to write the script that generates the html
(thats basically a case of using the echo statement), its how I can use
those 'little blocks' in a single page - this will save me typing the
same text over and over in my pages - and also reduce possibility of
error, provide code resuse etc, etc...
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
ZeldorBlat

External


Since: Dec 10, 2007
Posts: 107



(Msg. 4) Posted: Thu Apr 10, 2008 6:05 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Apr 10, 12:35 pm, Ronald Raygun wrote:
> Guillaume wrote:
> > Ronald Raygun a écrit :
>
> >> can some one please provide me with skeleton code that I can use to
> >> create such a 'framework' ? MTIA
>
> > Smarty is an easy one, not really a framework, it's a template engine
> > which can help you with your request.
>
> >http://www.smarty.net/
>
> > Regards,
>
> Hi Guillame,
>
> I know about smarty - even though its quite 'lightweight', its too much
> of an overhead (not to mention leaning curve) for what I want to do,
> which is create little scripts, each of which generates a 'block' of
> html code - and then combining all of the little 'blocks' of html into
> an html code.
>
> This way, I can easily and quickly, build little libraries (PHP
> scripts), each of which builds specific html 'blocks', e.g. navigation
> menus etc, so I can quickly put a page together using these blocks.
>
> The problem is not how to write the script that generates the html
> (thats basically a case of using the echo statement), its how I can use
> those 'little blocks' in a single page - this will save me typing the
> same text over and over in my pages - and also reduce possibility of
> error, provide code resuse etc, etc...

<http://www.php.net/include>
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
"Álvaro

External


Since: Jan 12, 2008
Posts: 36



(Msg. 5) Posted: Thu Apr 10, 2008 8:41 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 17:35:09 +0100):
> The problem is not how to write the script that generates the html
> (thats basically a case of using the echo statement), its how I can use
> those 'little blocks' in a single page - this will save me typing the
> same text over and over in my pages - and also reduce possibility of
> error, provide code resuse etc, etc...

If you mean blocks like headers, footers, navigation bars... I've always
kept them in individual files inside a directory called "inc" (for
"included files", since I insert them with the PHP include construct).
They're typically plain HTML with some PHP bits inside.


<div id="footer">
<p>© 2008 by John Smith, generated on <?=date('d/m/y')?>, blah blah</p>
<p>More blah blah.</p>
</div>


My site pages have a very basic skeleton (all design goes in *.css and *.inc.php files):


<?

$title = 'Template';

require($_SERVER['DOCUMENT_ROOT'] . '/inc/config.inc.php');

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="es">
<head><title>borrame.com ¤ <?=htmlspecialchars($title)?></title>
<? include($_SERVER['DOCUMENT_ROOT'] . '/inc/head.inc.php') ?>
<body>

<? include($_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php') ?>
<? include($_SERVER['DOCUMENT_ROOT'] . '/inc/menu.inc.php') ?>
<? include($_SERVER['DOCUMENT_ROOT'] . '/inc/options.inc.php') ?>
<? include($_SERVER['DOCUMENT_ROOT'] . '/inc/recommended.inc.php') ?>

<div id=content>


<h1><?=htmlspecialchars($title></h1>

<? codigo('__plantilla.sql') ?>

<p>Here comes content.</p>

</div>

<? include($_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php') ?>

</body>
</html>





--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Ronald Raygun

External


Since: Apr 10, 2008
Posts: 20



(Msg. 6) Posted: Thu Apr 10, 2008 10:45 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Álvaro G. Vicario wrote:
> *** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 17:35:09 +0100):
>
>>The problem is not how to write the script that generates the html
>>(thats basically a case of using the echo statement), its how I can use
>>those 'little blocks' in a single page - this will save me typing the
>>same text over and over in my pages - and also reduce possibility of
>>error, provide code resuse etc, etc...
>
>
> If you mean blocks like headers, footers, navigation bars... I've always
> kept them in individual files inside a directory called "inc" (for
> "included files", since I insert them with the PHP include construct).
> They're typically plain HTML with some PHP bits inside.
>
>
> <div id="footer">
> <p>© 2008 by John Smith, generated on <?=date('d/m/y')?>, blah blah</p>
> <p>More blah blah.</p>
> </div>
>
>
> My site pages have a very basic skeleton (all design goes in *.css and *.inc.php files):
>
>
> <?
>
> $title = 'Template';
>
> require($_SERVER['DOCUMENT_ROOT'] . '/inc/config.inc.php');
>
> ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
> <html lang="es">
> <head><title>borrame.com ¤ <?=htmlspecialchars($title)?></title>
> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/head.inc.php') ?>
> <body>
>
> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php') ?>
> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/menu.inc.php') ?>
> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/options.inc.php') ?>
> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/recommended.inc.php') ?>
>
> <div id=content>
>
>
> <h1><?=htmlspecialchars($title></h1>
>
> <? codigo('__plantilla.sql') ?>
>
> <p>Here comes content.</p>
>
> </div>
>
> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php') ?>
>
> </body>
> </html>
>
>
>
>
>

Thanks Álvaro, this looks like EXACTLY what I was looking for. By the
way, what is the codigo() function used for ? (is it a spanish word or a
PHP keyword)?
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Gene Kelley

External


Since: Jan 21, 2008
Posts: 10



(Msg. 7) Posted: Thu Apr 10, 2008 10:45 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ronald Raygun wrote:
>
>
> �lvaro G. Vicario wrote:
>> *** Ronald Raygun escribi�/wrote (Thu, 10 Apr 2008 17:35:09 +0100):
>>
>>> The problem is not how to write the script that generates the html
>>> (thats basically a case of using the echo statement), its how I can
>>> use those 'little blocks' in a single page - this will save me typing
>>> the same text over and over in my pages - and also reduce possibility
>>> of error, provide code resuse etc, etc...
>>
>>
>> If you mean blocks like headers, footers, navigation bars... I've always
>> kept them in individual files inside a directory called "inc" (for
>> "included files", since I insert them with the PHP include construct).
>> They're typically plain HTML with some PHP bits inside.
>>
>>
>> <div id="footer">
>> <p>© 2008 by John Smith, generated on <?=date('d/m/y')?>,
>> blah blah</p>
>> <p>More blah blah.</p>
>> </div>
>>
>>
>> My site pages have a very basic skeleton (all design goes in *.css and
>> *.inc.php files):
>>
>>
>> <?
>>
>> $title = 'Template';
>>
>> require($_SERVER['DOCUMENT_ROOT'] . '/inc/config.inc.php');
>>
>> ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd">
>> <html lang="es">
>> <head><title>borrame.com ¤ <?=htmlspecialchars($title)?></title>
>> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/head.inc.php') ?>
>> <body>
>>
>> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php') ?>
>> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/menu.inc.php') ?>
>> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/options.inc.php') ?>
>> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/recommended.inc.php') ?>
>>
>> <div id=content>
>>
>>
>> <h1><?=htmlspecialchars($title></h1>
>>
>> <? codigo('__plantilla.sql') ?>
>>
>> <p>Here comes content.</p>
>>
>> </div>
>>
>> <? include($_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php') ?>
>>
>> </body>
>> </html>
>>
>>
>>
>>
>>
>
> Thanks �lvaro, this looks like EXACTLY what I was looking for. By the
> way, what is the codigo() function used for ? (is it a spanish word or a
> PHP keyword)?

Not to speak for the poster Vicario or anything here, but codigo() could
be a user-defined function defined in one of the many include()ed source
code files.... The parameter passed to the function is quite possibly a
reference to an SQL script to execute when the function is called....

...gk
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
kenoli

External


Since: Dec 27, 2007
Posts: 204



(Msg. 8) Posted: Fri Apr 11, 2008 1:02 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I do something similar. In addition, you can create functions and
call them at various points in the page to insert content of all sorts
along with appropriate html and tags, style attributes and
javascript. Using a master function with a switch operator, you can
vary the template, location of content in the page and other
variables. I actually found it was easier to set this up myself than
to learn Smarty, which looked like a challenge.

I'm really happy with what I have and can customize it to do exactly
what I want it to do.

--Kenoli

On Apr 11, 8:40 am, "Álvaro G. Vicario"
wrote:
> *** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 22:45:17 +0100):
>
> > Thanks Álvaro, this looks like EXACTLY what I was looking for. By the
> > way, what is the codigo() function used for ? (is it a spanish word or a
> > PHP keyword)?
>
> It's a custom function I use in the site the sample comes from. I just
> forgot to remove it <Smile
>
> --
> --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programación web:http://bits.demogracia.com
> -- Mi web de humor en cubitos:http://www.demogracia.com
> --
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
"Álvaro

External


Since: Jan 12, 2008
Posts: 36



(Msg. 9) Posted: Fri Apr 11, 2008 5:40 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 22:45:17 +0100):
> Thanks Álvaro, this looks like EXACTLY what I was looking for. By the
> way, what is the codigo() function used for ? (is it a spanish word or a
> PHP keyword)?

It's a custom function I use in the site the sample comes from. I just
forgot to remove it <Smile


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
kenoli

External


Since: Dec 27, 2007
Posts: 204



(Msg. 10) Posted: Fri Apr 11, 2008 9:19 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Apr 11, 6:23 pm, Jerry Stuckle wrote:
> kenoli wrote:
> > On Apr 11, 8:40 am, "Álvaro G. Vicario"
> > wrote:
> >> *** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 22:45:17 +0100):
>
> >>> Thanks Álvaro, this looks like EXACTLY what I was looking for. By the
> >>> way, what is the codigo() function used for ? (is it a spanish word or a
> >>> PHP keyword)?
> >> It's a custom function I use in the site the sample comes from. I just
> >> forgot to remove it <Smile
>
> >> --
> >> --http://alvaro.es-Álvaro G. Vicario - Burgos, Spain
> >> -- Mi sitio sobre programación web:http://bits.demogracia.com
> >> -- Mi web de humor en cubitos:http://www.demogracia.com
> >> --
>
>  > I do something similar.  In addition, you can create functions and
>  > call them at various points in the page to insert content of all sorts
>  > along with appropriate html and tags, style attributes and
>  > javascript.  Using a master function with a switch operator, you can
>  > vary the template, location of content in the page and other
>  > variables.  I actually found it was easier to set this up myself than
>  > to learn Smarty, which looked like a challenge.
>  >
>  > I'm really happy with what I have and can customize it to do exactly
>  > what I want it to do.
>  >
>  > --Kenoli
>  >
>
> (Top posting fixed)
>
> Much better than using a switch() function is to use classes - or
> different functions to do different things.  Never have one function do
> multiple things - like output different HTML based on a switch()
> statement.  It makes troubleshooting a nightmare.
>
> P.S. Please don't top post.  Thanks.
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck....RemoveThis@attglobal.net
> ==================

The usefulness of the switch operator for me is that based on a
particular field or combination of fields in a record it can select a
specific template, a specific page placement in a template, a
particular navigation function, data from a particular related table,
etc. As far as I can see, to do this kind of thing is going to
require some kind of conditional operator to select the appropriate
templates and functions and it seemed efficient to me to have it all
taken place in one location using a switch, and pretty easy to debug.
I'd be interested knowing more about the downside of this and
alternative constructs. Even using a class would require some kind of
switch like conditional within the class.

The way I am doing this is to send a get query to a php script in a
file that sets a series of variables based on what it receives
triggering a switch that selects the right template and functions
based on what it receives. It seemed pretty efficient and elegant to
me, though I am flying by the seat of my pants and a lot of non-
programmer intuition. I essentially have one script creating all the
pages in my site by connecting data through a set of functions applied
to a set of templates.

--Kenoli
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3779



(Msg. 11) Posted: Fri Apr 11, 2008 9:23 pm
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

kenoli wrote:
> On Apr 11, 8:40 am, "Álvaro G. Vicario"
> wrote:
>> *** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 22:45:17 +0100):
>>
>>> Thanks Álvaro, this looks like EXACTLY what I was looking for. By the
>>> way, what is the codigo() function used for ? (is it a spanish word or a
>>> PHP keyword)?
>> It's a custom function I use in the site the sample comes from. I just
>> forgot to remove it <Smile
>>
>> --
>> --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
>> -- Mi sitio sobre programación web:http://bits.demogracia.com
>> -- Mi web de humor en cubitos:http://www.demogracia.com
>> --
>
>
> I do something similar. In addition, you can create functions and
> call them at various points in the page to insert content of all sorts
> along with appropriate html and tags, style attributes and
> javascript. Using a master function with a switch operator, you can
> vary the template, location of content in the page and other
> variables. I actually found it was easier to set this up myself than
> to learn Smarty, which looked like a challenge.
>
> I'm really happy with what I have and can customize it to do exactly
> what I want it to do.
>
> --Kenoli
>

(Top posting fixed)

Much better than using a switch() function is to use classes - or
different functions to do different things. Never have one function do
multiple things - like output different HTML based on a switch()
statement. It makes troubleshooting a nightmare.

P.S. Please don't top post. Thanks.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex RemoveThis @attglobal.net
==================
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Jerry Stuckle

External


Since: Aug 11, 2004
Posts: 3779



(Msg. 12) Posted: Sat Apr 12, 2008 8:32 am
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

kenoli wrote:
> On Apr 11, 6:23 pm, Jerry Stuckle wrote:
>> kenoli wrote:
>>> On Apr 11, 8:40 am, "Álvaro G. Vicario"
>>> wrote:
>>>> *** Ronald Raygun escribió/wrote (Thu, 10 Apr 2008 22:45:17 +0100):
>>>>> Thanks Álvaro, this looks like EXACTLY what I was looking for. By the
>>>>> way, what is the codigo() function used for ? (is it a spanish word or a
>>>>> PHP keyword)?
>>>> It's a custom function I use in the site the sample comes from. I just
>>>> forgot to remove it <Smile
>>>> --
>>>> --http://alvaro.es-Álvaro G. Vicario - Burgos, Spain
>>>> -- Mi sitio sobre programación web:http://bits.demogracia.com
>>>> -- Mi web de humor en cubitos:http://www.demogracia.com
>>>> --
>> > I do something similar. In addition, you can create functions and
>> > call them at various points in the page to insert content of all sorts
>> > along with appropriate html and tags, style attributes and
>> > javascript. Using a master function with a switch operator, you can
>> > vary the template, location of content in the page and other
>> > variables. I actually found it was easier to set this up myself than
>> > to learn Smarty, which looked like a challenge.
>> >
>> > I'm really happy with what I have and can customize it to do exactly
>> > what I want it to do.
>> >
>> > --Kenoli
>> >
>>
>> (Top posting fixed)
>>
>> Much better than using a switch() function is to use classes - or
>> different functions to do different things. Never have one function do
>> multiple things - like output different HTML based on a switch()
>> statement. It makes troubleshooting a nightmare.
>>
>> P.S. Please don't top post. Thanks.
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck... RemoveThis @attglobal.net
>> ==================
>
> The usefulness of the switch operator for me is that based on a
> particular field or combination of fields in a record it can select a
> specific template, a specific page placement in a template, a
> particular navigation function, data from a particular related table,
> etc. As far as I can see, to do this kind of thing is going to
> require some kind of conditional operator to select the appropriate
> templates and functions and it seemed efficient to me to have it all
> taken place in one location using a switch, and pretty easy to debug.
> I'd be interested knowing more about the downside of this and
> alternative constructs. Even using a class would require some kind of
> switch like conditional within the class.
>
> The way I am doing this is to send a get query to a php script in a
> file that sets a series of variables based on what it receives
> triggering a switch that selects the right template and functions
> based on what it receives. It seemed pretty efficient and elegant to
> me, though I am flying by the seat of my pants and a lot of non-
> programmer intuition. I essentially have one script creating all the
> pages in my site by connecting data through a set of functions applied
> to a set of templates.
>
> --Kenoli
>

Which means anytime you need to add a new value or combination of
values, you need to redo your code. Data should never drive code.

But I'm not going to get into an argument with you as to why it's a bad
design. It sounds like you already have your mind made up.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex RemoveThis @attglobal.net
==================
 >> Stay informed about: PHP newbie (generating HTML content in a generic way)- HOW ? 
Back to top
Login to vote
Tom

External


Since: Oct 15, 2007
Posts: 42



(Msg. 13) Posted: Wed Apr 16, 2008 11:00 am
Post subject: Re: PHP newbie (generating HTML content in a generic way)- HOW ? [Login to view extended thread Info.]
Imported from groups: alt>php (more info?)

Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problem When Generating HTML - I am having troubles with my script. It is supposed to generate a "map" from a serialized array stored in a database. However, it is not generating any html. I know the data is being retrieved from the database and being unserialized properly a...

need help with generating html source from the php - Hi every body, I need your help in a problem am facing, I have two forms on my website which when submitted they goto single page (confirmation.php) and the two forms are for English and Arabic versions and what I want to do is to create a single..

help needed for mailing HTMl content - hai...can someone plzz help me in writing a class to send Mails with HTML content. Try to suggest some working Class library if there is any on the web so that i may not re-invent the wheel. thanx...

HTML email using PHP problem (Receive html tags) - Hi all, When I send the html email, the only thing I receive is the tags (the html codes basically). I want to be able to see the email like a html page, what is wrong with my code? Here is a copy paste of it. $HTML = "</html><body...

HTML email using PHP problem (Receive html tags) - Hello, If I had beheld a thousand roses blowing in a top set of chambers, in that withered Gray's Inn, they could not have brightened it half so much. Miss Agnes's above all! You don't remember your own eloquent expressions, Master Brugen; but I remembe...
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]