Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-10-11 Thread Rick Emery
Quoting Chris <[EMAIL PROTECTED]>: Rick Emery wrote: Is anyone using PHP5 on Linux to connect to MS SQL Server 2000 on Windows and execute stored procedures with output parameters within a transaction? If so, how? I'm trying to do something like this in the PHP applicat

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
Quoting Richard Lynch <[EMAIL PROTECTED]>: On Wed, September 27, 2006 7:40 am, Rick Emery wrote: I'm trying to do something like this in the PHP application: begin transaction execute a stored procedure, receiving an identity back if certain conditions are met execute ano

[PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
t method is being used to accomplish it. Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return"

Re: [PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: We're running Zend Platform on a server that also has apc installed; we're using apc in the scripts to cache data, and I understand (I think) that it also does bytecode also often referred to as 'opcode' cac

[PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
any insight? Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonardo Da Vinci --

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Rick Emery
ot;INSERT INTO age (age_label) VALUES ($age)"; $results = mysql_query($insert) or die(mysql_error()); $age++ } There's a semi-colon missing at the end of the last line ($age++). Hope thi shelps, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-12 Thread Rick Emery
Quoting Rory Browne <[EMAIL PROTECTED]>: I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logg

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: Okay, I'm following all of this. So I could take, say, the username reversed and encode it, then decode it in the PHP application, and be I wouldn't do it like that instead stick the username in the cookie

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid the username only prob

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] Couldn't I write my own cookie to fool the authentication into thinking I'm somebody else? [/snip] I suppose that you could do that if you were savvy enough to realize that automatic login to the intranet used a cookie for authentication and you knew how to for

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
m somebody else? -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonardo Da Vinci -- PHP General Mailing List

Re: [PHP] Str to Int

2006-01-21 Thread Rick Emery
against a literal or constant, place the literal or constant on the left side of the expression. For example, if ('' == $cardID) { instead of if ($cardID == '') { That way, if you accidentally use "=" instead of "==", you should get an error because y

RE: [PHP] Upgrading on RH ES3

2005-12-02 Thread Rick Emery
staken (and I very easily could be), apxs is used to create the php module for apache. Red Hat/Fedora provide a mod_php rpm, and your older version may have had that rpm installed; thus, apxs (and the httpd-devel rpm) was not needed on your system to build the module. Rick -- Rick Emery "Wh

Re: [PHP] Zend Sudio's Optimizer / PHP 5.1.1

2005-12-02 Thread Rick Emery
/optimizer-sysreq.php I don't think they have a version for PHP 5.1.x yet. -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return"

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread Rick Emery
what I would need to do there to make the script work via the web? Did you run the script from the command line as the apache user? That would rule out any permissions issues. Just grasping at straws. Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread Rick Emery
Quoting [EMAIL PROTECTED]: Thanks for your help. I'd love to hear if you have any success with the RPMs. Unfortunately (?) everything worked for me out-of-the-box. On a fresh FC4 box, I installed httpd and php, then downloaded and installed the freetds and php-mssql rpms. I copied an appli

Re: Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting [EMAIL PROTECTED]: Yup, I thought that was the problem too but when I added my server to the conf file, there was no change. When you set up your MSSQL connection in fedora, did you install anything else other than MSSQL and PHP-MSSQL? Or did you have to set anything in your php.ini f

Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting [EMAIL PROTECTED]: I get no output from mssql_get_last_message(). When I use the pear DB class, and use $db->getMessage(), I get "connect failed", very useful like usual with getMessage(). Even doing a print_r of the object reveals nothing. I'm pretty sure that PHP is not even tryin

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
where you found the mssql rpms? I haven't been able to find them, and our system administrator wanted to use Fedora Core 4, so I've been having to compile freetds and php from source (though now that I've done it a few times, I kind of like doing it that way :-) hth, and thanks,

Re: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-23 Thread Rick Emery
Jasper Bryant-Greene wrote: On Fri, 2005-10-21 at 15:43 -0500, Jay Blanchard wrote: [snip] I haven't used Windows for a while, but Start->Search->Files & folders (or something like that) and enter php.ini. Delete all results except the one that you've been editing, and then move the one you'

[PHP] Linux/PHP and Windows/MSSQL

2005-10-06 Thread Rick Emery
e of doing it, but I won't be the server administrator and I think it defeats what management wants to accomplish with a commercially supported distro (package management with easy updates). Is anybody in a similar environment that has an easy solution, or can anybody offer advice? Thanks i

Re: [PHP] Re: PHP vs. ColdFusion

2005-10-06 Thread Rick Emery
PHP running on Linux. Thanks again to everyone. Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return" -- Leonard

RE: [PHP] PHP and XML

2005-10-06 Thread Rick Emery
ng XML documents using the DOM tree, and performing XSL transformations on XML documents." Hope this helps, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been,

Re: [PHP] ASP (VBScript) to PHP Converters?

2005-09-09 Thread Rick Emery
at asp2php http://asp2php.naken.cc/ I've never used it, but I have a friend who "played around" with it. He said it wasn't perfect, but he was very impressed with what it did. HTH, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth

Re: [PHP] Filter based on ctype_print()

2005-09-05 Thread Rick Emery
Quoting Robin Vickery <[EMAIL PROTECTED]>: On 9/5/05, Rick Emery <[EMAIL PROTECTED]> wrote: What I really want to do is replace the non-printable character(s) with printable character(s) (maybe a question mark, or a space), but haven't been able to find a function that

[PHP] Filter based on ctype_print()

2005-09-04 Thread Rick Emery
n-printable characters with the empty string. If something doesn't exist, I could probably write one myself using preg_replace, but would need a regular expression to find non-printable characters; I'm terrible at regular expressions. Any ideas? Thanks in advance. Rick -- Rick Emery &

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
Quoting Richard Lynch <[EMAIL PROTECTED]>: Just for a test case, write a 10-line ASP script that does something similar, if much simpler, and pound on it on the same box with the Padcom clients. I did that when the problem first appeared. Great minds think alike :-) I'm betting you'll have t

RE: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
repeats. So only one DB connection works fine for us. Thanks, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return"

RE: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
any that can't stand 1-bit of competition." My co-workers and I had a good laugh over this signature :-) Thanks, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long t

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
d it to management as echoing my feelings and frustration. Unfortunately (or fortunately, I guess) I didn't have the guts to do it; I'd be risking getting in trouble (they've been know to reprimand people because of the "tone" in an email). Thanks, Rick -- Rick Emer

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
nagement seemed to be receptive, and I thought they were starting to change their "Microsoft only" attitudes, so the statement from my boss that management said it "has to run on IIS" really caught me by surprise. Thanks, Rick -- Rick Emery "When once you have taste

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
Just a quick note to thank everybody who has replied. I've been getting a lot of feedback, and won't be able to reply to all of the messages I've received, but I appreciate each and every one of them and don't want anybody to feel left out. Thanks again, Rick -- Rick E

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Rick Emery
Quoting Rick Emery <[EMAIL PROTECTED]>: Ugh, we're *never* going to make a decision. My boss just sent me this email: A *huge* "THANK YOU!" to everybody who replied; it was extremely helpful and, after my meeting with my manager this morning, she seemed to accept that

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Rick Emery
Quoting Rick Emery <[EMAIL PROTECTED]>: My employer has (finally) decided to take full advantage of our intranet, and wants to move from client-server applications to web-based applications. [snipped] Any input would be greatly appreciated. Opinions are welcome (especially from progr

Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-06 Thread Rick Emery
riable changes unless the script is reloaded. 2. My favorite, but probably overkill. Write a php page that outputs the session variables (as XML would be cool). Then use xmlhttprequest to retrieve them from javascript (Google AJAX for more information). Hope this helps, Rick -- Rick Emery

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Rick Emery
Quoting "Chris W. Parker" <[EMAIL PROTECTED]>: Rick Emery <mailto:[EMAIL PROTECTED]> on Friday, August 05, 2005 4:54 PM said: Well, as I found out when I Google'd before I posted, it *lists* plenty of JavaScript mailing lists. But it can hardly "recommend a

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Rick Emery
Quoting "Chris W. Parker" <[EMAIL PROTECTED]>: Rick Emery <mailto:[EMAIL PROTECTED]> on Friday, August 05, 2005 4:20 PM said: Can anybody recommend a good JavaScript mailing list? If by anybody you mean Google, then yes anybody can recommend a good JavaScript mail

Re: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Rick Emery
you modify any the user side settings. You need to go for JavaScript and ask the question in a JavaScript list. Since you brought it up :-) Can anybody recommend a good JavaScript mailing list? Thanks, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Eart

Re: [PHP] Re: Konqueror does not like my Website

2005-07-22 Thread Rick Emery
ere is a problem with the file-extension *.php and Konqueror can not handel this... (It is KDE 3.4) Greetings Michelle I just opened it in Konqueror 3.4.1 to look for any javascript errors, and it seemed to load and work fine. Sorry I wasn't any help, Rick -- Rick Emery "When once y

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Rick Emery
all is using the php.ini file you think it is. I got bit by this (I kept editing the php.ini file in one directory, but it was reading the file from another). It really does sound like error reporting is turned off. hth, Rick -- Rick Emery "When once you have tasted flight, you will f

[PHP] Ouput HTML w/PHP

2005-06-30 Thread Rick Emery
here it's needed). Is there a way for me to maybe use the PHP tidy functions on the string containing the HTML ouput to validate it? Thanks in advance, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have

Re: [PHP] PHP vs. ColdFusion

2005-06-29 Thread Rick Emery
nt for each, and then evaluate those in the context of their work environment. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Rick Emery &qu

RE: [PHP] PHP vs. ColdFusion

2005-06-29 Thread Rick Emery
ot;PHP is free (as in beer *and* speech), and ColdFusion is not". I've tried to remove that from the equation, even though it's an important point to me. I really do appreciate your input, and intend to use your comments when I discuss this with management. I don't agree with all

RE: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Matt Babineau <[EMAIL PROTECTED]>: Yeah -> I'll second all of this. I'm a Certified Macromedia CF Developer, why do you ask am I on this list? The answer is simple, php is better. However with the recent developments in CF6, CF has become very comparable. Why would I still choose PHP ove

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Brad Pauly <[EMAIL PROTECTED]>: It might not be easy to put a number on, but consider your (and possibly the other developers') enthusiasm about PHP. I would guess that you will be more productive with something that you are excited about. Our senior developer and I (who come from a C

[PHP] Re: PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Anton Kovalenko <[EMAIL PROTECTED]>: As to ColdFusion, It seems to me that this technology is dead already. What makes you say this? I had never heard anything like this, but it would certainly be powerful ammunition to present to my bosses. Thanks, Rick -- PHP General Mailing List

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Jonathan Villa <[EMAIL PROTECTED]>: Take a look at these, they are just some of the articles I've bookmarked over the past Oracle is now behind (well in support of) PHP http://www.oracle.com/technology/tech/php/index.html IBM is also behind PHP (well in support of) http://www-128.ibm.c

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: what is special about the MSSQL2K servers? do you have a lot of stored procedures in it? stuff like that? Exactly; the past mentality has been "do everything through stored procedures", so we have a *lot*. Also, my manager's boss (who has since retire

[PHP] Re: PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Ke'tszeri Csaba <[EMAIL PROTECTED]>: About zend: sorry to say that here, but the less tools you use, the more freedom you have. Give me ssh access to any server running my php code and I can inspect it very well, may fix it in one shot :)). From anywhere. For what it's worth, I agree.

[PHP] PHP vs. ColdFusion

2005-06-26 Thread Rick Emery
t would be greatly appreciated. Opinions are welcome (especially from programmers with experience in both), but I have to "sell" it to management (I'm already on the PHP side), so links to data or articles comparing the two are best. Thanks in advance, Rick -- Rick Emery "When

Re: [PHP] Problem with array

2005-06-17 Thread Rick Emery
age, but am leaving the code below as reference. Sorry for the long post. if ($quantity == 0){ } else { $pieces = explode(" ", $quantity); $formatted_price = sprintf('%0.2f', $pricecode); echo "$pieces[0]$pieces[1] $pieces[2] $pieces[3] $pieces[4]$formatte

Re: [PHP] Retrievable weather service info?

2005-06-16 Thread Rick Emery
, a XOAP service from Weather.com and METAR/TAF from NOAA are supported. Further services will get included, if they become available, have a usable API and are properly documented." hth, Rick -- Rick Emery "When once you have tasted flight, you will forever walk the Earth with your eyes tur

Re: [PHP] Problem updating

2003-03-06 Thread Rick Emery
Is this HTML in a print or echo statement? If not, then the variables will not display. You can View Source to verify this. - Original Message - From: "Steve Jackson" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 8:27 AM Subject: [PHP] Problem u

Fw: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Rick Emery
foreach($HTTP_POST_VARS as $val) if($val=="") { do something } - Original Message - From: "shaun" <[EMAIL PROTECTED]> To: <> Sent: Thursday, March 06, 2003 7:45 AM Subject: [PHP] Re: Checking for empty values sent from a form thanks for your reply but I was wondering if there was

Fw: [PHP] checking if module exists

2003-02-26 Thread Rick Emery
Write a test script and run it on the target server. If it crashes, it's not enabled. - Original Message - From: "Jun" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, February 26, 2003 7:38 AM Subject: [PHP] checking if module exists I want my script to compress the output using gzip librar

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Rick Emery
You're on the right track: for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } - Original Message - From: "Jeff Pauls" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:18 PM Subject: [PHP] Auto Incrementing

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
in the PHP script: extract($HTTP_POST_VARS); if( isset($submit1) ) header("location: thispage.php"); else if( isset($submit2) ) header("location: thatpage.php"); - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
Yes, you can. Simply give the buttons differnt names: in the PHP script: extract($HTTP_POST_VARS); is( isset($submit1) ) { } else if( isset($submit2) ) { } - Original Message - From: "Greg" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, February 25, 2003 2:11 PM Subject: [PHP] Submit butt

Fw: [PHP] help me please

2003-02-25 Thread Rick Emery
You don't have to break up the strings: mail("$ToName <$ToEmail>",$ToSubject, $EmailBody, "From: $FirstName <$Email>"); What are values of $ToName and $FirstName? why did you submit tghis 3 times? - Original Message - From: "bionicegg" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, February 2

Re: [PHP] editing field value using selectbox with options

2003-02-25 Thread Rick Emery
$titles = array("Mr.","Ms.","Mrs.","Dr.","Capt."); print "\n"; foreach($titles as $value) { if($row['title]==$value) $sel="SELECTED"; else unset($sel); print "$value\n"; } print "\n"; - Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: "PHP general list" <[EMAIL

Re: [PHP] Problem with readfile on jpegs

2003-02-24 Thread Rick Emery
Show us code. The error refers to line 87. We need to see that, and other code surrounding 87. - Original Message - From: "Patrick Teague" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 6:45 AM Subject: [PHP] Problem with readfile on jpegs I found info on p

Re: [PHP] what's the matter?

2003-02-22 Thread Rick Emery
- Original Message - From: "X" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 7:36 AM Subject: [PHP] what's the matter? index.php: choice your gender male female x.php: but at last it said that the gender had not been

Fw: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Rick Emery
$db = mysql_pconnect("localhost", "test1", "test1") or die(mysql_error()); - Original Message - From: "ML" <[EMAIL PROTECTED]> To: <> Sent: Friday, February 21, 2003 9:33 AM Subject: [PHP] Re: Mysql DB connect failure Where exactly would I put the print mysql_error() ? Here is the code.

Re: [PHP] Forms and MySql date

2003-02-20 Thread Rick Emery
mysql stores date as -mm-dd that is how the date should be entered into the form If entered in another format, you can reformat it. - Original Message - From: "Mike Tuller" <[EMAIL PROTECTED]> To: "php mailing list list" <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 4:43 PM S

Re: [PHP] why won't this work?

2003-02-18 Thread Rick Emery
I did a View->Source on the generated code and got this for the Friday Feb 28 entry: Friday February 28th 8 AM to Noon John Look at the last ... line. Fix that, and your problems may go away. - Original Message - From: "Edward P

Re: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-17 Thread Rick Emery
I also use Redhat 7.1 and use FTP successfully. Something in your setup? rick "People will forget what you said. People will forget what you did. But people will never forget how you made them feel." - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, Feb

Re: [PHP] select query question

2003-02-17 Thread Rick Emery
SELECT * FROM mytable WHERE flags NOT IN('L','C') rick "People will forget what you said. People will forget what you did. But people will never forget how you made them feel." - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003

Fw: [PHP] check if a file has already be included

2003-02-17 Thread Rick Emery
can you use: include_once("filename"); This way, if it wasn't included, it will be. If it was included, this statement is ignored. - Original Message - From: "Greg" <[EMAIL PROTECTED]> To: <> Sent: Monday, February 17, 2003 10:18 AM Subject: [PHP] check if a file has already be includ

Fw: [PHP] MD5 login troubles

2003-02-17 Thread Rick Emery
Make it easy on yourself: $pw = md5($password); $query = "INSERT INTO penpals (email, password, username) VALUES \"$email\",\"$pw"\,\"$username\")"; mysql_query($query); $pw = md5($password); $query = "SELECT email,password,username FROM penpals WHERE email=\"$email\" && password=\"$pw\""; $res

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
what times out? The query? rick "People will forget what you said. People will forget what you did. But people will never forget how you made them feel." - Original Message - From: "Janyne Kizer" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTEC

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
will never forget how you made them feel." - Original Message - From: "Janyne Kizer" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003 9:31 AM Subject: Re: [PHP] Problem creating array

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
ad queries. rick "People will forget what you said. People will forget what you did. But people will never forget how you made them feel." - Original Message - From: "Janyne Kizer" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]>; <[EMAIL

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
It helps if you show us all your code, not just what you think we might need. For isntance, what does your mysql_query() statement look like? Does it have an "or die(mysql_error()))" clause? - Original Message - From: "Janyne Kizer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monda

Re: [PHP] ereg usage

2003-02-16 Thread Rick Emery
The problem is that it's looking for hyphen, - , immediately preceeding the end. Remove the $. - Original Message - From: "Peter Gumbrell" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Sunday, February 16, 2003 9:18 AM Subject: [PHP] ereg usage Could someone please te

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
In your code, it appears you are attempting to determine the value of the cookie immediately upon setting. The value of the cookie is NOT available at this point; a new page must be opened. Why are you setting time to 0? If you want cookie to disappear at end of the session, use NULL. Are y

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
hp-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:30 PM Subject: RE: [PHP] form within form I apologize I mean when they click the 'verify' button, I verify their username and password before I allow them to update it. Eddie -Origin

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
What do you mean by "verify that info"? Do you mena verify for content, or form, or what... - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:22 PM Subject: [PHP] form within form I

Re: [PHP] Removing a comma from a form field

2003-02-13 Thread Rick Emery
$thestr = str_replace(",","",$thestring); - Original Message - From: "Ben C." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:13 PM Subject: [PHP] Removing a comma from a form field I'm trying to update a field which contains a $USD figure. But when I upd

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
setcookie("userinfo","userid",NULL,"/"); - Original Message - From: "Fireborn Silvaranth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 11:58 AM Subject: [PHP] problems with cookies and PHP ok now it will print it's value correctly

Fw: [PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Rick Emery
mail("[EMAIL PROTECTED]","This Is A Subject",$message,"From: [EMAIL PROTECTED]\r\nCc: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]\r\nBcc: [EMAIL PROTECTED],[EMAIL PROTECTED]"); Separate addesses with commas. Separate CC and BCC with \r\n - Original Message - From: "Scott Fletch

Re: [PHP] cookie problem....

2003-02-13 Thread Rick Emery
I always use 4 parameters in my setcookie(cookie_name,cookie_value,time,"/") Also, verify that $HTTP_POST_VARS['Name'] exists by printing it - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 7:20 AM Subject: Re: [PHP] cook

Re: [PHP] Warning: Failed opening

2003-01-29 Thread Rick Emery
index.php is not in your include path; that is, not in working directory nor c:\hp4\pear. Where is it? - Original Message - From: "Ysrael Guzmán" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:54 AM Subject: [PHP] Warning: Failed opening This is my prob

Re: [PHP] MySQL Madness

2003-01-29 Thread Rick Emery
If you're using root, then you must use the root password in mysql_connect(). - Original Message - From: "Gibbs, Liam - SXIA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:45 AM Subject: [PHP] MySQL Madness First off, when executing this command: $conn

Re: [PHP] Re: Need help.

2003-01-28 Thread Rick Emery
Show us your code...we can't read your mind. - Original Message - Thkiat wrote: > Can someone tell me what should I do to solve this problem? > > Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result > resource in /home/epcc/public_html/exoops/class/database/mysql.php on

Re: [PHP] checkboxes & php

2003-01-24 Thread Rick Emery
applies to selection lists, not checkboxes - Original Message - From: "Richard Whitney" <[EMAIL PROTECTED]> To: "Greg" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 2:59 PM Subject: Re: [PHP] checkboxes & php I just logged in to my Yahoo mail account. I hav

Re: [PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Rick Emery
Define "fails" - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 3:11 PM Subject: [PHP] WHILE IF/ELSE loop not working can anyone tell me why this while loop fails? == wh

Re: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-24 Thread Rick Emery
: "Daevid Vincent" <[EMAIL PROTECTED]> To: "'Rick Emery'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 7:46 AM Subject: RE: [PHP] Strange anomolie with each() and mysql_fetch_array() > First, if you expect only a single row r

Re: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-23 Thread Rick Emery
First, if you expect only a single row returned, why are you using a while(){} construct? Second, mysql_fetch_array() does not like to operate within another function call. I've tried it on multiple occasions; failed. Third, each() operates on succeeding elements of an array; there are only two

Re: [PHP] Who is foo & what is bar?

2003-01-23 Thread Rick Emery
It comes from the acronym, FUBAR. This is military slang that has been around since WWII. FUBAR stands for: "F**ked Up Beyond All Repair" - Original Message - From: "Uttam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 23, 2003 11:15 PM Subject: [PHP] Who is foo &

Re: [PHP] mysql_fetch_row problem

2003-01-23 Thread Rick Emery
I'm gong to bet that $Location is alpha, not numeric. Therefore: $result = mysql_query("SELECT contactemail FROM loc WHERE location=\"$Location\"",$db); - Original Message - From: "Bryan Brannigan" <[EMAIL PROTECTED]> To: "Php List (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, January 23,

Fw: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Rick Emery
No. md5() is not an encryption, it's a hash. - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, January 22, 2003 3:47 PM Subject: [PHP] Is there a way to undo the md5() encryption?? Hi! Is there a way to do the decryption of the encrypted data with

Re: [PHP] HELP please quickly

2003-01-22 Thread Rick Emery
Are the numbers coming from a mysql database? If so, mysql can handle this chore. - Original Message - From: "Didier McGillis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 7:21 AM Subject: [PHP] HELP please quickly Here is a brief description of what I w

Fw: [PHP] Image opendialog function

2003-01-22 Thread Rick Emery
PHP cannot open a dialog on client. PHP is server-side only. Use JavaScript to open a dialog. - Original Message - From: "Steven Seijmonsbergen" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, January 22, 2003 4:52 AM Subject: [PHP] Image opendialog function Hi I'm looking for a Opendial

Re: [PHP] Simple E-mail Question

2003-01-22 Thread Rick Emery
$mailheaders = "From: [EMAIL PROTECTED]\r\nCc: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]\r\nBcc: [EMAIL PROTECTED],[EMAIL PROTECTED]"; mail("[EMAIL PROTECTED]", "$Event Ticket Form", $msg, $mailheaders); - Original Message - From: "Scott Saraniero" <[EMAIL PROTECTED]> To: <>

Re: [PHP] HELP please quickly

2003-01-22 Thread Rick Emery
g from two text files. The first text file is the file that I need to compare against the second file, and if I find one match in the second file, I need to move it to the third file. >From: "Rick Emery" <[EMAIL PROTECTED]> >Reply-To: "Rick Emery" <[EMAIL

Re: [PHP] Read Mysql & Access

2003-01-21 Thread Rick Emery
what did you find with a google search? - Original Message - From: Karl James To: php Sent: Monday, January 20, 2003 7:01 PM Subject: [PHP] Read Mysql & Access Is there a free ware program that will, allow me to take mysql dbase and convert it to ms ascess?

Re: [PHP] ADV SQL Help Needed.

2003-01-21 Thread Rick Emery
SELECT risk_level, COUNT(*) FROM mytable GROUP BY risk_level; - Original Message - From: "[-^-!-%-" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 6:06 AM Subject: [PHP] ADV SQL Help Needed. Hello everyone, I need help with the following query. I have a t

Fw: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Rick Emery
if ( $_POST['passwd'] != $db['password'] ) {header("Location: loginfailed.html"); exit; } - Original Message - From: "Shams" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, January 21, 2003 3:48 AM Subject: [PHP] $header = "Location:" being ignored! Hi Group, I basically have some

Re: [PHP] Page Rendering

2003-01-21 Thread Rick Emery
$PHP_SELF is not interpreted by the browser. The browser shows only what is sent to it; PHP variables are not sent to the browser. Take the simple solution: don't use PHP_SELF; just use the file name - Original Message - From: "Bill Arbuckle, Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: [PHP] Input field array ends up as "Array" string

2003-01-21 Thread Rick Emery
show us code - Original Message - From: "Dan Delaney" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, January 21, 2003 8:33 AM Subject: [PHP] Input field array ends up as "Array" string Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes wit

  1   2   3   4   5   6   >