Re: More frustration with MySQL and PHP
| From: | Dave Goodchild | Date: | Mon, 21 Jan 2008 21:14:56 +0000 |
| Subject: | Re: More frustration with MySQL and PHP | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267790@lists.php.net to get a copy of this message | ||
Don't be scared of functions, no magic or mystery there, all you are doing
is putting your code in a function like so:
function add($a, $b) {
return $a + $b;
}
..for example and calling it like so:
$a = 12;
$b = 100;
$sum = add(12, 13);
...etc etc, not too much more to learn than that and now I can call add() in
many places...
On Jan 21, 2008 8:47 PM, Robert Cummings <robert@interjinn.com> wrote:
>
> On Mon, 2008-01-21 at 15:28 -0500, Jason Pruim wrote:
> > On Jan 21, 2008, at 3:27 PM, Robert Cummings wrote:
> >
> > > On Mon, 2008-01-21 at 15:20 -0500, Jason Pruim wrote:
> > >>
> > >> I try so hard to NOT rely on the wealth of info available here, but
> > >> you guys don't make it easy!! :)
> > >
> > > The only good thing to do with wealth is share.
> >
> > Now you're just trying to add to your post count! :P
>
> Quit responding, you're diluting my post wealth! >:)
>
> Now I just need to find a way to increase the content of my posts. Best
> bet I guess would be to not trim the posts to which I reply :) Then
> again, endless rambling could help too... while honing my writing
> skill... WOOT! Two birds with that stone. Talking about stones, someone
> mentioned to me once a perplexing question whereby God was asked if he
> could create a stone he could not lift... well I... crap, list cops are
> at my door. I'll be write back!!!
>
> Cheers,
> Rob.
> --
> ...........................................................
> SwarmBuy.com - http://www.swarmbuy.com
>
> Leveraging the buying power of the masses!
> ...........................................................
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>