[PHP-DB] php v jsp

2004-11-20 Thread Vikas Nanda
Hi I just wanted to know what the advantages are of using php against jsp. My supervisor wants me to use jsp but I think that php might be better. Also can php code be easy reused like jsp? Many thanks all Vikas - Moving house? Beach bar

Re: [PHP-DB] php v jsp

2004-11-20 Thread Joseph Crawford
Depending on how you code, PHP can easilly be reused. if you program procedurally it is much more difficult to reuse code however it can be done through the use of including files. If you go for the object oriented approach, php is easy to expand and reuse the code. OO is also a cleaner more

Re: [PHP-DB] Optimize Query Output

2004-11-20 Thread Joseph Crawford
the display really has nothing to do with SQL but rather your php output format. you would use php to display the data however you want it formatted. -- Joseph Crawford Jr. Codebowl Solutions [EMAIL PROTECTED] For a GMail account contact me OFF-LIST -- PHP Database Mailing List

Re: [PHP-DB] Optimize Query Output

2004-11-20 Thread John Holmes
GH wrote: I have the following query: SELECT A.`AttID` , S.`SessionDate` , P.LastName, P.FirstName, A.`Present` FROM `Attendance` A, Sessions S, Participants P WHERE S.SessionID = A.`Session` AND P.Part_ID = A.`Participant` GROUP BY P.LastName, P.FirstName, A.Present, A.AttID I would like to have

[PHP-DB] Client username

2004-11-20 Thread Ganesh Babu Nallamothu, Integra-India
Hi all, How to find the login name of client machine in php? Regards, Ganesh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] php v jsp

2004-11-20 Thread John Holmes
Vikas Nanda wrote: I just wanted to know what the advantages are of using php against jsp. My supervisor wants me to use jsp but I think that php might be better. Also can php code be easy reused like jsp? Why would you think such a thing? They both accomplish the same mission using similar

RE: [PHP-DB] Optimize Query Output

2004-11-20 Thread Bastien Koert
Usse PHP to control the output, test for the value and if it changes show else don't show it bastien From: GH [EMAIL PROTECTED] Reply-To: GH [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: [PHP-DB] Optimize Query Output Date: Sat, 20 Nov 2004 00:39:36 -0500 I have the

[PHP-DB] Re: Optimize Query Output

2004-11-20 Thread Michael Stassen
GH wrote: I have the following query: SELECT A.`AttID` , S.`SessionDate` , P.LastName, P.FirstName, A.`Present` FROM `Attendance` A, Sessions S, Participants P WHERE S.SessionID = A.`Session` AND P.Part_ID = A.`Participant` GROUP BY P.LastName, P.FirstName, A.Present, A.AttID Selecting

[PHP-DB] ANN: MySQLDiff 0.1, program to output diffs between MySQL tables

2004-11-20 Thread Rajesh Kumar
Hello PHP Community, MySQLDiff is a PHP5 command-line utility that prints SQL statements to sync two MySQL databases or tables. This program works just like the original MySQLDiff (http://www.mysqldiff.org/), but is much faster and is useful for quickly comparing two databases. The source code may

Re: [PHP-DB] php v jsp

2004-11-20 Thread John Lim
See http://peteryared.blogspot.com/2003/09/next-language.html. Peter Yared was formerly CTO for Sun's Application Server groups. He has rejected JSP/J2EE and is now advocating solutions such as PHP. Pretty damning, given Peter's background: The Java API’s grow into a morass of inconsistent and