Re: [PHP] Sum a column of values from a MySQL query

2003-08-07 Thread Adam Alkins
eplace it. However, why not just SUM all the rows in the table in the query if you just want a total? $sql_2 = "SELECT SUM(partpaidamount) as partpaid FROM $tb_name"; -- Adam Alkins http://www.rasadam.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unzipping Files

2003-08-07 Thread Adam Alkins
Try the zziplib library, http://www.php.net/manual/en/ref.zip.php -- Adam Alkins http://www.rasadam.com Quoting Matt Palermo <[EMAIL PROTECTED]>: > Anyone know where I can find tutorials or examples on how to use the > gunzip, gzip, and other commands using PHP to work with compre

RE: [PHP] Tracking Users via Cookies? IDEA

2003-08-04 Thread Adam Alkins
Quoting Joe Harman <[EMAIL PROTECTED]>: > What if you could read a browser's history file... There has to be a way > to do this with something like javascript... Just an idea... > > Joe > That would be a major privacy loophole if it were allowed.. -- Adam Alk

[PHP] Simple regexp

2002-08-29 Thread Adam Alkins
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg("[a-zA-Z0-9:]",$string) working? Guidance appreciated. -- Adam Alkins http://www.rasadam.com --

[PHP] Simple regexp

2002-08-28 Thread Adam Alkins
7;t. Anyone can help me with this? IPv6 addresses are just Hex with : characters, so I just need to validate that for the entire string. Thanks for your time. ------ Adam Alkins http://www.rasadam.com --

Re: [PHP] Re: PHP Security Advisory: Vulnerability in PHP versions 4.2.0

2002-07-22 Thread Adam Alkins
ities discovered in PHP so far. Some humans are just never ever satisfied... -- Adam Alkins http://www.rasadam.com -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strong Web Hosts in Canada?

2002-07-17 Thread Adam Alkins
> Hi Folks: > > A client of mine has a large series of high traffic, PHP/MySQL intensive > websites. They're looking for dedicated hosting in Canada. Any > recommendations? You might have better luck getting recommendation on http://www.webhostingtalk.com ---

Re: [PHP] PHPDiscuss.com

2002-07-14 Thread Adam Alkins
> Wow...a forum. Is that vBulletin your using? Shouldn't you be giving > them credit somewhere?? It looks like YaBB. You'd think when people are using a free BB, they'd atleast have the courtesy of dropping a small plug at the end of the page. I guess not --

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-09 Thread Adam Alkins
And also the "-p" -- Cheers, Adam Alkins http://www.rasadam.com -- - Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 11:02 PM Subjec

Re: [PHP] T_string error

2002-07-09 Thread Adam Alkins
You may want to try posting it at http://www.phpbb.com/phpBB/viewforum.php?f=1 since it really is something phpBB specific. -- Cheers, Adam Alkins http://www.rasadam.com -- - Original Message - From: "Peter" <[EMAIL PROTECTED]> To: <[EMAIL PRO

Re: [PHP] SQ: what does the & sign do

2002-05-21 Thread Adam Alkins
Its a Reference Operator. You can use it to reference variables to one another, like $a = &$b; meaning that anytime you change the value of $a it would change the value of $b Used for functions works in the same way. Its a way of improving the scope of a variable. Instead of passing a value t

Re: [PHP] hosting

2002-04-07 Thread Adam Alkins
Go to http://www.webhostingtalk.com and do a search for them. Adam - Original Message - From: "Heidi Belal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]>; "Egypt Developers" <[EMAIL PROTECTED]>; "Egypt Programmers" <[EMAIL PROTECTED]>; "js-jive mailing list" <[EMAIL PROTECTED]>;

Re: [PHP] PHP books

2002-04-05 Thread Adam Alkins
A great book I read is PHP and MySQL Web Development, authors Luke Welling and Laura Thomson. Its an excellent book to read if you are new to PHP and MySQL, and even if you have a good knowledge. I learnt a lot from it, and still am learning. :) Adam - Original Message - From: "Mikhail