You are here: Re: Learning php Sql « PHP SQL « IT news, forums, messages
Re: Learning php Sql

Posted by Frankly on 04/23/06 19:56

"J.O. Aho" <user@example.net> wrote in message
news:4avr38Fv88f3U1@individual.net...
> Frankly wrote:
>
>> it is working now.. the tech support chat guy told me that i used the
>> code wrong.
>> I used html and php code together I need to use only php and not html.
>
> As "mike white" wrote, thats pure nonsense, you get a lot cleaner code to
> read if you use both HTML and PHP in you php scripts
>
>
> --- test1.php: only php ---
> <?PHP
> echo "<html>\n<head>\n<title>Test1</title>\n</head>\n<body
> text=\"green\">\n";
> $myvar = "Hello World";
> echo $myvar;
> echo "</body></html>";
> ?>
> --- eof ---
>
>
> --- test2.php: both html and php ---
> <html>
> <head>
> <title>Test2</title>
> </head>
> <body text="green">
> <?PHP
> $myvar = "Hello World";
> echo $myvar;
> ?>
> </body>
> </html>
> --- eof ---
>
> It's not that much code/html, but already here you can see that the
> test2.php is a lot easier to read than test1.php. Just keep your HTML code
> as proper as possible, even on your test pages.
>
>
> //Aho

Yes it does. I am going to read through a couple of tutorials to get a
better understanding of HTML and PHP.
after i do my work today I will spend what ever time is left learning.
first off i am going to do that code again.
I feel i can not move on until i can post that 1 simple code and have it
work. first i am going to see what that tech person did.. it wouldnt
suprise me to find it is only HTML.

thank you

 

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

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