Re: [PHP] What is wrong here?

2012-04-25 Thread ma...@behnke.biz
Karl-Arne Gjersøyen karlar...@gmail.com hat am 25. April 2012 um 06:45 geschrieben: Hello again. I can't figure out what is wrong here. move_uploaded_file() get error message from die() and can't copy/move temp_file into directory bilder I have try to chmod 0777 bilder/ but it did not

Re: [PHP] What is wrong here?

2012-04-25 Thread Stuart Dallas
On 25 Apr 2012, at 09:45, ma...@behnke.biz wrote: Karl-Arne Gjersøyen karlar...@gmail.com hat am 25. April 2012 um 06:45 geschrieben: Hello again. I can't figure out what is wrong here. move_uploaded_file() get error message from die() and can't copy/move temp_file into directory bilder

RE: [PHP] What is wrong with this preg_match?

2011-10-27 Thread Steve Staples
-Original Message- From: Paul Halliday [mailto:paul.halli...@gmail.com] Sent: Thursday, October 27, 2011 2:43 PM To: PHP-General Subject: [PHP] What is wrong with this preg_match? I have the following: if (isset($argc)) { if ($argc == 1 || $argc 2 ||

Re: [PHP] What is wrong with this preg_match?

2011-10-27 Thread Robert Williams
On 10/27/11 11:43, Paul Halliday paul.halli...@gmail.com wrote: if ($argc == 1 || $argc 2 || !preg_match((\d{4}-\d{2}-\d{2}), Usage: ./process_patches.php -mm-dd patches@innm2 ~/Code/Oculi $ ./process_patches.php 2011-01-011 The problem is that your expression basically defines a

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Per Jessen
Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); ... public static function getMessage($ec) { $text = ''; if (array_key_exists($ec, Pg_Error::$errors)) {

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Peter Lind
On 28 April 2010 08:39, Gary . php-gene...@garydjones.name wrote: class Pg_Error {    private static $errors =        array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); ...    public static function getMessage($ec)    {        $text = '';        if (array_key_exists($ec,

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
Per Jessen wrote: Gary . wrote: Calling it, the array_key_exists call always returns false ... and I can't see what I've done wrong :( Might this be better: public static function getMessage($ec) { $text = ''; if (array_key_exists($ec, $errors)) {

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Jochem Maas wrote: Op 4/28/10 7:39 AM, Gary . schreef: class Pg_Error { const INTEGRITY_CONST_UNIQUE = '23505'; private static $errors = array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); ... public static function getMessage($ec) {

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Jochem Maas wrote: class Pg_Error { const INTEGRITY_CONST_UNIQUE = '23505'; this is a class constant private static $errors = array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); [...] unfortunately you cannot use a

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Peter Lind
On 28 April 2010 10:57, Gary . php-gene...@garydjones.name wrote: On 4/28/10, Jochem Maas wrote:     class Pg_Error     {        const INTEGRITY_CONST_UNIQUE = '23505'; this is a class constant         private static $errors =             array(INTEGRITY_CONST_UNIQUE = 'uniqueness

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Thijs Lensselink
Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); ... public static function getMessage($ec) {

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On 4/28/10, Thijs Lensselink wrote: Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); Yes, or something very like

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Thijs Lensselink
Gary . wrote: On 4/28/10, Thijs Lensselink wrote: Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated');

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Gary .
On Wed, Apr 28, 2010 at 2:17 PM, Thijs Lensselink wrote: Gary . wrote: On 4/28/10, Thijs Lensselink wrote: Gary . wrote: class Pg_Error {    private static $errors =        array(INTEGRITY_CONST_UNIQUE = 'uniqueness constraint violated'); Shouldn't this be:

Re: [PHP] What is wrong with this code

2009-04-18 Thread Reese
9el wrote: *Note:* It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue

Re: [PHP] What is wrong with this code

2009-04-18 Thread 9el
But in practice. I mean in real life you'll find the mail() function is disabled in most servers :)

Re: [PHP] What is wrong with this code

2009-04-18 Thread Reese
9el wrote: But in practice. I mean in real life you'll find the mail() function is disabled in most servers :) That's nice, but how many is larger volumes of email? 500? 5,000? 25,000? I note PEAR:Mail has 3 open bugs, PEAR:Mail_Mime has 23 with 3 open support requests. PHPMailer was

Re: [PHP] What is wrong with this code

2009-04-18 Thread Manuel Lemos
Hello, 9el wrote: *Note:* It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the » PEAR::Mail, and »

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
You forgot to mention the method of the form. form action=... method=post ... /form Regards, Igor Escoar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Fri, Apr 3, 2009 at 4:08 PM, Gary

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
Its there... Igor Escobar titiolin...@gmail.com wrote in message news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.com... You forgot to mention the method of the form. form action=... method=post ... /form Regards, Igor Escoar Systems Analyst Interface Designer --

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
] Sent: Friday, April 03, 2009 3:14 PM To: php-general@lists.php.net Subject: Re: [PHP] What is wrong with this code Its there... Igor Escobar titiolin...@gmail.com wrote in message news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.com... You forgot to mention the method of the form

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
emails I assume you mean they have the template you made but the variables are empty and not zero-length emails. -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Friday, April 03, 2009 3:14 PM To: php-general@lists.php.net Subject: Re: [PHP] What is wrong with this code Its

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
Subject: Re: [PHP] What is wrong with this code Its there... Igor Escobar titiolin...@gmail.com wrote in message news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.com... You forgot to mention the method of the form. form action=... method=post ... /form Regards, Igor Escoar

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
: [PHP] What is wrong with this code I recieve an email, it will contain the ip address, it will also contain the name:, email: , comments: but not the information from the form of the name or email or comments. The database also recieves only the ip address. So I assume those parts are working

Re: [PHP] What is wrong with this code

2009-04-03 Thread Ray
On Friday 03 April 2009 13:08:45 Gary wrote: This is driving me nuts. I am getting blank emails and the only information that is being passed to MySQL is the IP address. Can someone tell me what is wrong with this? form method=post action=?php echo $_SERVER['PHP_SELF']; ? div id=important

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
and not zero-length emails. -Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: Friday, April 03, 2009 3:14 PM To: php-general@lists.php.net Subject: Re: [PHP] What is wrong with this code Its there... Igor Escobar titiolin...@gmail.com wrote in message news

Re: [PHP] What is wrong with this code

2009-04-03 Thread 9el
*Note:* It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient. For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue packages. *

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
This is unrelated, the email sends fine. And it's one per submission. -Original Message- From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf Of 9el Sent: Friday, April 03, 2009 3:37 PM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP] What is wrong

Re: [PHP] What is wrong with this code

2009-04-03 Thread Peter van der Does
On Fri, 3 Apr 2009 15:08:45 -0400 Gary gwp...@ptd.net wrote: This is driving me nuts. I am getting blank emails and the only information that is being passed to MySQL is the IP address. Can someone tell me what is wrong with this? If this is in one file, as I assume it is, here's what is

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
Peter I had the if ( isset( $_POST['submit'] ) ) { in there and it did not work. I have used this on several sites, the only difference is that I was tyring to contain it in one file. I also created a file just to process the POST, but it still did not work. I was thinkning it was

Re: [PHP] What is wrong with this code

2009-04-03 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com --

Re: [PHP] What is wrong with this code

2009-04-03 Thread Gary
That was it, but Im sorry, I did not see that Ray had already pointed that out, so apologies to Ray and many thanks to everyone... gary 9el le...@phpxperts.net wrote in message news:79d892150904031305j6e1b00d4qed0d9fbf13437...@mail.gmail.com...

RE: [PHP] What is wrong with this code

2009-04-03 Thread kyle.smith
Wow can't believe I missed that. I also was wondering why Ray mailed an empty message... :) -Original Message- From: doctortomor...@gmail.com [mailto:doctortomor...@gmail.com] On Behalf Of 9el Sent: Friday, April 03, 2009 4:05 PM To: Gary Cc: php-general@lists.php.net Subject: Re: [PHP

Re: [PHP] What is wrong with this INSERT?

2007-03-30 Thread Rahul Sitaram Johari
A definite improvement!! Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 7:31 PM, Chris [EMAIL PROTECTED]

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Angelo Zanetti
$result = mysql_query($sql) or die(Fatal Error :.mysql_error()); where do you define $sql? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rabih Tayyem
that's because your are not running the query!!! it has to be $sql = INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO'); instead of mysql_query(INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO'); Regards, Rabih On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED]

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Oh I¹m sorry! I was messing with the code when I copied it to the mailing list. This is the actual code: $sql = mysql_query(INSERT INTO olivejuice (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')); And the entire code: ?php //Add Record Function if($_POST['Submit']) { $db

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread cajbecu
are you sure $_POST['Submit'] is set? i mean, do you have an input named Submit that is set in your form? Rahul Sitaram Johari wrote: Ave, Does anyone know what I¹m doing wrong? ?php //Add Record Function if($_POST['Submit']) { $db = mysql_connect(localhost,usr,pwd);

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread cajbecu
Angelo Zanetti wrote: $result = mysql_query($sql) or die(Fatal Error :.mysql_error()); where do you define $sql? or that... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
My Apologies Everyone! I gave you all the wrong code Twice!! A pox on me - I tell you! This is the ACTUAL code that I'm working with - and it's not working: ?php //Add Record Function if($_POST['Submit']) { $db = mysql_connect(localhost,usr,pwd); mysql_select_db(thedb,$db)

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Angelo Zanetti
Rahul Sitaram Johari wrote: Oh I¹m sorry! I was messing with the code when I copied it to the mailing list. This is the actual code: $sql = mysql_query(INSERT INTO olivejuice (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')); And the entire code: ?php //Add Record Function

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Dave Goodchild
Because of this: $sql = mysql_query(INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')); $result = mysql_query($sql) or die(Fatal Error :.mysql_error()); ...you are running the query and assigning the results into $sql and then running mysql_query again in the line below. So

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
On 3/29/07 10:18 AM, cajbecu [EMAIL PROTECTED] wrote: are you sure $_POST['Submit'] is set? i mean, do you have an input named Submit that is set in your form? The Submit button in my form is named Submit. The thing is, if the form is not submitted, this code is not executed (the echo

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: My Apologies Everyone! I gave you all the wrong code Twice!! A pox on me - I tell you! This is the ACTUAL code that I'm working with - and it's not working: ?php //Add Record Function if($_POST['Submit']) { $db =

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, For total clarity, I¹m starting this post again. I messed up big time with my posts. So here¹s my actual code: ?php //Add Record Function if($_POST['Submit']) { $db = mysql_connect(localhost,usr,pwd);

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
BY THOR! That worked! WHEN Is a reserved word and that is what was causing the problem. Changed it to THETIME and query went through fine!! Can't thank you enough! This was driving me crazy! Look how many mistakes I made in just making this post in this mailing list! Honorable *bow* Thanks!

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Daniel I like your code ­ it¹s definitely cleaner and compact. I have a question for you ­ I have never used ³if($_POST) {³, instead, always felt I needed to specify the $Submit variable to check if form is submitted. So basically if I use ³if($_POST) {³, would it automatically mean it¹s checking

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: BY THOR! That worked! WHEN Is a reserved word and that is what was causing the problem. Changed it to THETIME and query went through fine!! Can't thank you enough! This was driving me crazy! Look how many mistakes I made in just making

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Awesome! This helps. I¹ll start using this method from now on ­ certainly seems a lot more compliant and also actually helps eliminating the ³Submit² button name confusion. Thanks! Appreciated. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W:

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 10.38-kor Rahul Sitaram Johari ezt írta: Daniel I like your code ­ it¹s definitely cleaner and compact. I have a question for you ­ I have never used ³if($_POST) {³, instead, always felt I needed to specify the $Submit variable to check if form is submitted.

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Agreed, if there are multiple forms, I will definitely have to use either Submit name or some form of identifier. Thanks! On 3/29/07 10:47 AM, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 03. 29, csütörtök keltezéssel 10.38-kor Rahul Sitaram Johari ezt írta: Daniel I like your code ­ it¹s

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Chris
Rahul Sitaram Johari wrote: My Apologies Everyone! I gave you all the wrong code Twice!! A pox on me - I tell you! This is the ACTUAL code that I'm working with - and it's not working: ?php //Add Record Function if($_POST['Submit']) { $db = mysql_connect(localhost,usr,pwd);

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Robin Wilson
Thanks for the help The line returns are specified as \r\n but in the echo they seem to all be on one line. Could that be related to the problem. Also the addresses are specified but seem to have been removed??? This is what I specified: $eol=\r\n; $mime_boundary=md5(time()); # Common

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Robin Wilson
Thanks I'll have a look at this. Robin Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] phpmailer.sourceforge.net - a mailing class for php that does everything you need, there are other alternatives - definitely beats fiddling with all the required headers yourself.

Re: [PHP] What is wrong with this function please?

2007-03-25 Thread Zoltán Németh
2007. 03. 25, vasárnap keltezéssel 19.25-kor Robin Wilson ezt írta: Thanks for the help The line returns are specified as \r\n but in the echo they seem to all be on one line. Could that be related to the problem. Also the addresses are specified but seem to have been removed??? \r\n is

RE: [PHP] What is wrong with this function please?

2007-03-25 Thread Jake McHenry
] Sent: Sunday, March 25, 2007 2:25 PM To: php-general@lists.php.net Subject: Re: [PHP] What is wrong with this function please? Thanks for the help The line returns are specified as \r\n but in the echo they seem to all be on one line. Could that be related to the problem. Also

Re: [PHP] What is wrong with this function please?

2007-03-24 Thread Robin Wilson
No sorry, both messages are the same. Didn't mean to post it twice. Sorry. Below is what prints out when I echo the message: $to [EMAIL PROTECTED] $subject Proposal Submission $headers From: 2HostMe Mailer Reply-To: Robin Wilson Return-Path: 2HostMe Mailer Message-ID: X-Mailer: PHP v4.4.2

Re: [PHP] What is wrong with this function please?

2007-03-24 Thread Jochem Maas
phpmailer.sourceforge.net - a mailing class for php that does everything you need, there are other alternatives - definitely beats fiddling with all the required headers yourself. save yourself a big headache. :-) Robin Wilson wrote: Hello I'm trying to do a function that emails users and

RE: [PHP] What is wrong with this function please?

2007-03-24 Thread Jake McHenry
No sorry, both messages are the same. Didn't mean to post it twice. Sorry. Below is what prints out when I echo the message: $to [EMAIL PROTECTED] $subject Proposal Submission $headers From: 2HostMe Mailer Reply-To: Robin Wilson Return-Path: 2HostMe Mailer Message-ID:

RE: [PHP] What is wrong with this function please?

2007-03-23 Thread Jake McHenry
I take it there are no errors... And your using windows... Sending to exchange... I guess with seeing what you posted, I would start by echoing out what you have in $to, $subject, $msg, $headers. Are there any errors in Exchange logs? Do you see the message coming into Exchange queue? Jake

RE: [PHP] What is wrong with this function please?

2007-03-23 Thread Jake McHenry
Have you changed anything in an hour? I'm too lazy to compare the two emails... Jake -Original Message- From: Robin Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 10:46 PM To: php-general@lists.php.net Subject: [PHP] What is wrong with this function please?

Re: [PHP] what is wrong with my big array

2006-03-07 Thread Stut
Ross wrote: I cannot see it If it helps... neither can we! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is wrong with my big array

2006-03-07 Thread Barry
Stut wrote: Ross wrote: I cannot see it If it helps... neither can we! -Stut And again: PHP is best coded with open eyes: (O_O) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What is wrong with next code

2004-11-02 Thread Vladimir Shiray
Have anyone answers on the strange behaviour discussed in the thread ? I has noted specially: It works OK in PHP 4.3.6 or when line $db2 = 0; had been commented in all described versions of PHP. So next example works perfect: -

Re: [PHP] What is wrong with next code

2004-10-29 Thread Vladimir Shiray
I has noted specially: It works OK in PHP 4.3.6 or when line $db2 = 0; had been commented in all described versions of PHP. So next example works perfect: - error_reporting(E_ALL); $db1 = mysql_connect ('localhost', 'test', '1'); $db2 =

Re: [PHP] What is wrong with next code

2004-10-28 Thread John Holmes
Vladimir Shiray wrote: - Warning: mysql_query(): 4 is not a valid MySQL-Link resource in ... $result = mysql_query('SELECT 1+1', $db1); - [snip] $db1 = mysql_connect ('localhost', 'test', '1'); $db2 =

Re: [PHP] What is wrong with these Codes!!!!???

2004-01-20 Thread Stuart
Radwan Aladdin wrote: I made these three PHP files.. but I don't know where is the problem Now that's a lie isn't it. Nearly all PHP errors/warnings/notices display the script filename and line number where the problem was encountered. If you can't figure out where the problem is from that

Re: [PHP] What is wrong with this code ?

2003-09-15 Thread Robert Cummings
On Mon, 2003-09-15 at 15:29, Daniel Szasz wrote: Hello What is wrong with this code ? $doWork = $_GET[doWork]; This is sloppy, put the quotes around the key string doWork. echo $doWork; echo ( BR); if ( $doWork = 0) { You just assigned 0 to $doWork, try using 0 == $doWork exit; }

Re: [PHP] What is wrong with this code ?

2003-09-15 Thread Miroslaw Milewski
Daniel Szasz wrote: What is wrong with this code ? == instead of =. -- miro. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What is wrong with this code ?

2003-09-15 Thread Carl Furst
If should use double equals for comparison.. if ($doWork == 1) { etc here}. Of course doing multiple tests like this you are better off using switch case... Switch ($doWork) { Case 0: Exit; Break; Case 1: DoOne($arguments);

Re: [PHP] What is wrong??????

2003-07-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 19:58, lines prefixed by '' were originally written by you. Every time i run this script i got this error:( my apache server is very well cofigured) Warning: Cannot send session cookie - headers already sent by (output

Re: [PHP] What is wrong??????

2003-07-14 Thread Chris Shiflett
--- phpu [EMAIL PROTECTED] wrote: Warning: Cannot send session cookie - headers already sent by (output started at c:\apache\htdocs\proiect_gsm\login.php:11) in c:\apache\htdocs\proiect_gsm\login.php on line 81 This should be obvious, but you do something on line 81 that you cannot do, because

Re: [PHP] What is wrong with this?

2003-02-24 Thread Ernest E Vogelsinger
At 10:37 24.02.2003, Miguel Brás said: [snip] //logical request if ($nome) { $sql=aviao = '$nome' ; } if ($code) { $sql=code = '$code' ; } $query = SELECT * FROM ssr WHERE; $query .= $sql; [snip] Hi,

Re: [PHP] What is wrong with this?

2003-02-24 Thread Miguel Brás
: [PHP] What is wrong with this? At 10:37 24.02.2003, Miguel Brás said: [snip] //logical request if ($nome) { $sql=aviao = '$nome' ; } if ($code) { $sql=code = '$code' ; } $query = SELECT * FROM ssr WHERE; $query .= $sql

Re: [PHP] What is wrong with this?

2003-02-24 Thread Chris Hayes
: Monday, February 24, 2003 9:45 AM Subject: Re: [PHP] What is wrong with this? At 10:37 24.02.2003, Miguel Brás said: [snip] //logical request if ($nome) { $sql=aviao = '$nome' ; } if ($code) { $sql=code = '$code' ; } $query = SELECT * FROM ssr WHERE

RE: [PHP] What is wrong with this?

2003-02-24 Thread Tim
[mailto:[EMAIL PROTECTED] Envoyé : lundi 24 février 2003 11:04 À : Ernest E Vogelsinger Cc : [EMAIL PROTECTED] Objet : Re: [PHP] What is wrong with this? Hi, yes in fact it worked...I also had the $numrows with wrong mysql command, it should be mysql_num_rows() instead

Re: [PHP] What is wrong with this?

2003-02-24 Thread Michael Cook
Chris Hayes [EMAIL PROTECTED] writes: Put some quotes around the tag value for just in case the $aviao has a space in it: $drop_down_list .= optionvalue=\$aviao\$aviao/option; what about if $aviao contains a double quote? what's the proper way to handle that case? or, in other

Re: [PHP] What is wrong with this?

2003-02-24 Thread Leif K-Brooks
www.php.net/htmlentities Michael Cook wrote: Chris Hayes [EMAIL PROTECTED] writes: Put some quotes around the tag value for just in case the $aviao has a space in it: $drop_down_list .= optionvalue=\$aviao\$aviao/option; what about if $aviao contains a double quote? what's

Re: [PHP] What is wrong with this?

2003-02-24 Thread 1LT John W. Holmes
Put some quotes around the tag value for just in case the $aviao has a space in it: $drop_down_list .= optionvalue=\$aviao\$aviao/option; what about if $aviao contains a double quote? what's the proper way to handle that case? or, in other words, what's the most general way

Re: [PHP] What is wrong here?

2002-11-24 Thread Leif K-Brooks
Are you using a relative url for the redirection? Cesar Aracena wrote: Hi all, I'm making a site which will reside in a remote server and had several problems... most of them where solved once I saw that register_globals are OFF, but now I dont know which other settings are affecting my

Re: [PHP] What is wrong here?

2002-11-24 Thread Ernest E Vogelsinger
At 03:05 25.11.2002, Cesar Aracena said: [snip] I'm making a site which will reside in a remote server and had several problems... most of them where solved once I saw that register_globals are OFF, but now I don't know which other settings are affecting my

Re: [PHP] What is wrong here?

2002-11-24 Thread Kyle Gibson
I'm making a site which will reside in a remote server and had several problems... most of them where solved once I saw that register_globals are OFF, but now I don’t know which other settings are affecting my scripts. I have trouble with header(Location... because the browser is NOT redirected.

Re: [PHP] What is wrong here?

2002-11-24 Thread Chris Shiflett
--- Cesar Aracena [EMAIL PROTECTED] wrote: I have trouble with header(Location... because the browser is NOT redirected. If I set an echo statement after I detected that the username and password using $_POST[], the echo goes OK but if I comment the echo and un-comment the

RE: [PHP] What is wrong here?

2002-11-24 Thread Cesar Aracena
In response to all of you wonderful people: Leif, yes and no... I've tried all kind of URLs Ernest, I think you're on the right track here... I'll try that. Kyle, no... I made those errors in the past, so now I make sure I don't (again :) Chris, I tend to forget to append the / after the URL

RE: [PHP] What is wrong here?

2002-11-24 Thread Ernest E Vogelsinger
At 03:27 25.11.2002, Cesar Aracena said: [snip] what you mean by snoop the HTTP traffic but if it has something to do with the server, then no I can't... [snip] Make a telnet www.mydomain.com 80 and transmit

Re: [PHP] What is wrong with this expression?

2002-11-18 Thread Marek Kilimajer
Nothing I can see. What is not working? JohnMeyer wrote: if (is_uploaded_file($_FILES[imagefile][tmp_name]) ($_FILES[imagefile][type] != image/jpeg $_FILES[imagefile][type] != image/gif $_FILES[imagefile][type] != image/jpg $_FILES[imagefile][type] != image/png)) I'm trying to weed out

Re: [PHP] What is wrong with this expression?

2002-11-18 Thread DL Neil
JohnMeyer if (is_uploaded_file($_FILES[imagefile][tmp_name]) ($_FILES[imagefile][type] != image/jpeg $_FILES[imagefile][type] != image/gif $_FILES[imagefile][type] != image/jpg $_FILES[imagefile][type] != image/png)) I'm trying to weed out everything that isn't a .jpg, .gif, or .png.

RE: [PHP] what is wrong?

2002-09-12 Thread Rudolf Visagie
if ($_POST['new_password1'] == || !isset($_POST['new_password1'])) echo empty input; -Original Message- From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong? Hi, I want to understand what is

Re: [PHP] what is wrong with this simple query?

2002-06-24 Thread Chris Shiflett
Try this: $query=select max(id) as id from bc_topic; Leave the rest the same. I'm not so sure that the max(id) selection will populate a column named id necessarily (in fact, I think it doesn't). That may be your problem. Chris Phil Schwarzmann wrote: Here is my code... $query = SELECT

Re: [PHP] what is wrong with this simple query?

2002-06-24 Thread Julie Meloni
PS Here is my code... PS $query = SELECT max(id) FROM bc_topic; PS $result = mysql_query($query); PS $temp = mysql_result($result, 0, id); - this is line 8 PS echo $temp[id]; PS Here is the error I get ... PS Warning: id not found in MySQL result index 2 in /.../upload2.php on PS line 8 PS

Re: [PHP] What is wrong ????

2001-08-17 Thread Tyler Longren
Well, what's the error? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 15:57:13 +0200 Dennis van Zanten [EMAIL PROTECTED] wrote: I wanna do this Insert: INSERT INTO sysdba_product_link VALUES ('','Y4DHVA0Q','CV/

Re: [PHP] What is wrong ????

2001-08-17 Thread Dennis van Zanten
Longren [EMAIL PROTECTED] To: Dennis van Zanten [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:06 PM Subject: Re: [PHP] What is wrong Well, what's the error? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 15

Re: [PHP] What is wrong ????

2001-08-17 Thread J Smith
, 2001 4:06 PM Subject: Re: [PHP] What is wrong Well, what's the error? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] What is wrong ????

2001-08-17 Thread Dennis van Zanten
- Original Message - From: J Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 10:33 AM Subject: Re: [PHP] What is wrong It might also help to know what database you're using, as the syntax between them all can vary slightly. PostgreSQL? MySQL? Oracle? Ingres

Re: [PHP] What is wrong ????

2001-08-17 Thread Tyler Longren
: Friday, August 17, 2001 10:33 AM Subject: Re: [PHP] What is wrong It might also help to know what database you're using, as the syntax between them all can vary slightly. PostgreSQL? MySQL? Oracle? Ingres? J Dennis Van Zanten wrote: Ofcourse sorry: You have an error

RE: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Alvin Tan
Hi Jacky, The problem is a HTML one. Use "http://" followed by the address in your a href tag. Regards, @lvin -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:40 AM To: [EMAIL PROTECTED] Subject: [PHP] what is wrong with this sniplet? people,

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread [EMAIL PROTECTED]
PROTECTED] To: Jacky [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 3:39 AM Subject: RE: [PHP] what is wrong with this sniplet? Hi Jacky, The problem is a HTML one. Use "http://" followed by the address in your a href tag. Regards, @lvin -Original Messa

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread [EMAIL PROTECTED]
? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Alvin Tan [EMAIL PROTECTED] To: Jacky [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 3:39 AM Subject: RE: [PHP] wha

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Simon Garner
From: Jacky [mailto:[EMAIL PROTECTED]] people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Christian Reiniger
On Wednesday 28 February 2001 22:40, you wrote: people, I tried to write out email using sniplet below, the email will write out the hyper link so that reciever can click on the link to go to the page. What happen is that the reciever recieve the actual link instead of the hyper link I made,

  1   2   >