Search found 92 matches

by phpPete
Tue Feb 18, 2003 11:18 pm
Forum: General Discussion
Topic: Why use PHP instead of ASP.NET
Replies: 24
Views: 8432

You know, Ballmer was the original office manager for Microsoft! As in..."Steve, we need somemore mechanical pencils." Now that is a statement about corporate America.
by phpPete
Tue Feb 18, 2003 9:51 pm
Forum: General Discussion
Topic: Why use PHP instead of ASP.NET
Replies: 24
Views: 8432

Say what you want, but Point-and-click "programming" (such as Visual *) is NOT programming. You are correct, to a degree. If someone can't build an application w/o a Visual programming tool/language, then I agree. However, as a programmer I'm sure you have a multitude of 'widgets', code s...
by phpPete
Tue Feb 18, 2003 6:34 pm
Forum: General Discussion
Topic: Why use PHP instead of ASP.NET
Replies: 24
Views: 8432

Having just spent the better part of 3 months heavily immeresed in .NET, C# and ASP.NET I read with interest all the posts in this thread. First things first: PHP Rocks! Now, to the reality of it all: The whole .NET idea and accompanying framework rocks even more. C# is a better JAVA, and ASP.NET is...
by phpPete
Thu Nov 14, 2002 7:34 am
Forum: General Discussion
Topic: Opera 7.0 beta now available
Replies: 1
Views: 1850

Opera 7.0 beta now available

A general FYI:
Opera 7.0 beta is available for download
http://www.opera.com/

It's very fast...
by phpPete
Sun Sep 22, 2002 7:08 am
Forum: PHP - Code
Topic: Drop Down Styles...
Replies: 5
Views: 2091

If you want to change the include() arguments on the page you are currently displaying, you can't, since by the time you see the page, PHP is done with it's processing for that page on the server, so you're viewing the finished page in your browser, the client. You can simulate it by having the page...
by phpPete
Wed Sep 18, 2002 9:55 pm
Forum: Databases
Topic: Database Design
Replies: 4
Views: 3362

Nielsene, that's a great way of putting it all in laymens terms!

One thing I like to do is determine the kind of reports/output needed, it helps me to get a handle on the relationships etc...

I've used this site a lot, and it's quite good for beginners:
http://www.sqlcourse.com/

cheers

Pete
by phpPete
Sun Sep 15, 2002 6:09 am
Forum: PHP - Code
Topic: Alphabetical order? Help!
Replies: 1
Views: 986

try using the function asort() in place of sort, asort will sort an array and maintain index association

http://www.php.net/manual/en/function.asort.php
by phpPete
Sun Sep 15, 2002 5:55 am
Forum: PHP - Code
Topic: Echo v's Print
Replies: 15
Views: 3511

Alas while this should work:

Code: Select all

<?php (5 < 10 ) ?  echo("True")  :  echo("No");  ?>
it does not...
and Takuma, you may be right, but it's there if you need it.
by phpPete
Sat Sep 14, 2002 10:26 pm
Forum: Javascript
Topic: Neato Input + javascript color "trick"
Replies: 14
Views: 10255

Clever
by phpPete
Sat Sep 14, 2002 10:22 pm
Forum: PHP - Code
Topic: Echo v's Print
Replies: 15
Views: 3511

Can't use echo in a ternary operator, but you can use print.

This works

Code: Select all

(5 < 10 ) ? print("True") : print("No");
This doesn't:

Code: Select all

(5 < 10 ) ?  echo "True"  :  echo "No";
illustrates the language construct VS function
by phpPete
Wed Sep 11, 2002 8:58 pm
Forum: PHP - Code
Topic: DAMN }else{
Replies: 12
Views: 3067

Yes the colon works, it's an alternative syntax.

http://www.php.net/manual/en/control-st ... syntax.php

Code: Select all

if($var == 0 ):
    echo $someThing;
elseif ( $var !=0 ):
    echo $someThingElse;
else:
    echo $catchAll;
endif;   //<  --  note semi - colon on the endif
by phpPete
Tue Sep 10, 2002 9:28 pm
Forum: PHP - Code
Topic: how to update php 4.0.6 to 4.1.1
Replies: 3
Views: 1217

Just curious, but any reason why you're updating to 4.1.1 and not the latest version of PHP? (4.2.2)
by phpPete
Sat Sep 07, 2002 2:04 pm
Forum: Javascript
Topic: Getting PHP to play nice with Javascript
Replies: 3
Views: 5274

I'm using JS in this case because I'm restricting the browser to IE, ( it's for an intranet where I work ). The JS is perfect here because I'm building numerous select lists from other lists etc...so using JS I avoid a ton of page requests. If this were for the "real world" I'd obviously g...
by phpPete
Sat Sep 07, 2002 1:29 pm
Forum: Javascript
Topic: Getting PHP to play nice with Javascript
Replies: 3
Views: 5274

Getting PHP to play nice with Javascript

Ok, due to PHP and JS naming restrictions I'm finding it exceedingly difficult, or perhaps I'm dense, to post multiple selected options from a select list. If I name my form: name[] ( effectively declaring an array ) then PHP picks up all the selected options no problem, however, I need to process t...
by phpPete
Thu Sep 05, 2002 12:43 pm
Forum: PHP - Code
Topic: Mixing PHP and JS, getting mixed results..
Replies: 0
Views: 784

Mixing PHP and JS, getting mixed results..

OK...here's my latest incarnation of my script. Essentially this adds an option to another select list after checking against a lookup array . My problem now is that the script only works properly on the first select list in the list. It "appears" to work with the others, however, it actua...