AardvarkBusiness.net - Business Search Engine AardvarkBusiness.net - Business Search Engine



 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

     

I use PHP but don't understand it

 
 
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum
View previous topic :: View next topic  
Author Message
Drachsi
Executive PA
Executive PA


Joined: 14 Mar 2008
Posts: 81
Location: Europe
136 ants

PostPosted: Mon Nov 01, 2010 6:33 am    Post subject: I use PHP but don't understand it Reply with quote

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
View user's profile Send private message Visit poster's website
chiryphp
Temp


Joined: 22 Jan 2011
Posts: 2

3 ants

PostPosted: Sat Jan 22, 2011 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Kay
President
President


Joined: 07 Jan 2009
Posts: 3079
Location: Mostly SE Asia
4173 ants

PostPosted: Sat Jan 22, 2011 7:02 am    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
Ribbontree
Secretary
Secretary


Joined: 21 Jan 2011
Posts: 9

10 ants

PostPosted: Sat Jan 22, 2011 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Drachsi
Executive PA
Executive PA


Joined: 14 Mar 2008
Posts: 81
Location: Europe
136 ants

PostPosted: Mon Jan 24, 2011 6:16 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ribbontree
Secretary
Secretary


Joined: 21 Jan 2011
Posts: 9

10 ants

PostPosted: Mon Jan 24, 2011 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pinkpanther01
Secretary
Secretary


Joined: 27 Dec 2011
Posts: 12

17 ants

PostPosted: Tue Dec 27, 2011 11:16 pm    Post subject: Reply with quote

If you continue using it you will understand it perfectly it was the same problem for me at the begining Wink
Back to top
View user's profile Send private message
johnpapas
Temp


Joined: 06 Jul 2013
Posts: 3
Location: Greece
8 ants

PostPosted: Sat Jul 06, 2013 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bishal Giri
Secretary
Secretary


Joined: 17 Jul 2013
Posts: 12

29 ants

PostPosted: Thu Jul 18, 2013 5:41 am    Post subject: For PHP learning Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum All times are GMT + 1 Hour
Page 1 of 1

 
Google
 
Business Forum Sport Forum Travel Forum


Powered by php B B © 2001, 2002 php B B Group

AardvarkBusiness.net Business Search Engine & Directory