View previous topic :: View next topic |
Author |
Message |
Drachsi Executive PA


Joined: 14 Mar 2008 Posts: 81 Location: Europe 136 ants
|
Posted: Mon Nov 01, 2010 6:33 am Post subject: I use PHP but don't understand it |
|
|
Like many people, I have some php stuff working on my website. All of it is from coding sites or provided by my hosting company along with MySQL. To mod anything I use PSPad, but what do the original coders use, and how do they get it all to work together?
Is there such a thing as a WYSIWYG php editor?
Drachsi |
|
Back to top |
|
 |
chiryphp Temp
Joined: 22 Jan 2011 Posts: 2
3 ants
|
Posted: Sat Jan 22, 2011 4:58 am Post subject: |
|
|
Free and open source PHP WYSIWYG Editors Scripts. WYSIWYG is an online HTML editor. It allows visitors in your site to format text, add links, tables and so on.
You can find the scripts category of the site PHPSPAM
There list some WYSIWYG Editors Scripts. |
|
Back to top |
|
 |
Kay President


Joined: 07 Jan 2009 Posts: 3079 Location: Mostly SE Asia 4173 ants
|
Posted: Sat Jan 22, 2011 7:02 am Post subject: |
|
|
@Drachsi
Sorry your thread was hi-jacked by a spammer in China. I hope someone can answer your question soon. _________________ http://britishexpat.com |
|
Back to top |
|
 |
Ribbontree Secretary

Joined: 21 Jan 2011 Posts: 9
10 ants
|
Posted: Sat Jan 22, 2011 11:07 pm Post subject: |
|
|
Hi Drachsi,
I code PHP in a program called Notepad++ (there are others that are more specifically for programming, but I like the way Notepad++ works). PHP can't really be done WYSIWYG. That's because PHP is a programming language, rather than a markup language, so it doesn't 'look' a particular way.
For example, the following code can appear different ways, depending on the circumstances.
<?php
$day_of_month = date('d'); //gets day of month
if($day_of_month == '1')
{
echo 'happy new month';
}
else
{
echo 'this month is getting old already';
}
?>
In the example above, if it's the first day of the month, it should say "happy new month", otherwise the page will say something different, "this month is getting old already". A WYSIWYG editor would not be able to cope with displaying all the different eventualities.
If you want to use a WYSIWYG editor to design your pages, use it to build the HTML.
You should then use PHP to decide what goes in the various bits of the HTML. i.e. to output the page contents from the database _________________ Ribbontree website development |
|
Back to top |
|
 |
Drachsi Executive PA


Joined: 14 Mar 2008 Posts: 81 Location: Europe 136 ants
|
Posted: Mon Jan 24, 2011 6:16 am Post subject: |
|
|
Thanks for the confirmation. I thought it was something like that.
I have some forms which are in php and send the results, via a template, to my email address. Would it be possible to add the results to a MySQL database, so that I could view and create reports for printing?
Regards
Drachsi |
|
Back to top |
|
 |
Ribbontree Secretary

Joined: 21 Jan 2011 Posts: 9
10 ants
|
Posted: Mon Jan 24, 2011 8:49 am Post subject: |
|
|
Drachsi wrote: | Thanks for the confirmation. I thought it was something like that.
I have some forms which are in php and send the results, via a template, to my email address. Would it be possible to add the results to a MySQL database, so that I could view and create reports for printing?
Regards
Drachsi |
Yeah, it should be possible. I recommend the Tizag MySQL tutorial.
I'm not allowed to post links here yet, so just Google for:
Tizag MySQL _________________ Ribbontree website development |
|
Back to top |
|
 |
pinkpanther01 Secretary

Joined: 27 Dec 2011 Posts: 12
17 ants
|
Posted: Tue Dec 27, 2011 11:16 pm Post subject: |
|
|
If you continue using it you will understand it perfectly it was the same problem for me at the begining  |
|
Back to top |
|
 |
johnpapas Temp

Joined: 06 Jul 2013 Posts: 3 Location: Greece 8 ants
|
Posted: Sat Jul 06, 2013 8:27 pm Post subject: |
|
|
I 'm using the sublime text editor. Google it. Very nice especially for php coding since it's visualize the content code and produce a start and end sign. This option is very useful for not loosing the start of sub functions.
Hope that helps |
|
Back to top |
|
 |
Bishal Giri Secretary

Joined: 17 Jul 2013 Posts: 12
29 ants
|
Posted: Thu Jul 18, 2013 5:41 am Post subject: For PHP learning |
|
|
For PHP learning,You can gain the acess to it by the following site
w3schools.com
I think its the best one for the PHP learning.You guys can enjoy learning through it |
|
Back to top |
|
 |
|