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

[PHP] What is wrong here?

2012-04-24 Thread Karl-Arne Gjersøyen
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 help. Also I have try to chown www-data.www-data bilder/ since Ubuntu Server run apache as

[PHP] What is wrong with this preg_match?

2011-10-27 Thread Paul Halliday
I have the following: if (isset($argc)) { if ($argc == 1 || $argc 2 || !preg_match((\d{4}-\d{2}-\d{2}), $argv[1])) { echo \nUsage: $argv[0] -mm-dd\n\n; exit; } else { $base_date = $argv[1]; } } else { $base_date = date('Y-m-d'); } When I run it: $

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 || !preg_match((\d{4}-\d{2}-\d{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

[PHP] What is wrong with this code?

2010-04-28 Thread Gary .
]; } return $text; } ... } ? Calling it, the array_key_exists call always returns false: $this-assertEquals('uniqueness constraint violated', Pg_Error::getMessage(Pg_Error::INTEGRITY_CONST_UNIQUE)); and I can't see what I've done wrong :( -- PHP General Mailing List (http

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
(Pg_Error::INTEGRITY_CONST_UNIQUE)); and I can't see what I've done wrong :( -- 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?

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 »

[PHP] What is wrong with this code

2009-04-03 Thread Gary
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 style=visibility:hidden; pIf you can see

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
] What is wrong with this code --- 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 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]

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Ave, Does anyone know what I¹m doing wrong? ?php //Add Record Function if($_POST['Submit']) { $db = mysql_connect(localhost,usr,pwd); mysql_select_db(thedb,$db) or die(Critical Error :.mysql_error()); $WHEN = date(mdyHi); $WHAT = $_POST['WHAT']; $WHO =

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

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
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); mysql_select_db(thedb,$db) or die(Critical Error :.mysql_error());

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
, $headers. Are there any errors in Exchange logs? Do you see the message coming into Exchange queue? Jake -Original Message- From: Robin Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 9:53 PM To: php-general@lists.php.net Subject: [PHP] What is wrong

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
the message coming into Exchange queue? Jake -Original Message- From: Robin Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 9:53 PM To: php-general@lists.php.net Subject: [PHP] What is wrong with this function please? Hello I'm trying

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
] What is wrong with this function please? Hello I'm trying to do a function that emails users and sends an attachment. But I think something is in the wrong order or something as when I send it Exchange discards it. This is the function which I have put together from various sources: I would really

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
Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 9:53 PM To: php-general@lists.php.net Subject: [PHP] What is wrong with this function please? Hello I'm trying to do a function that emails users and sends an attachment. But I think something is in the wrong order

[PHP] What is wrong with this function please?

2007-03-23 Thread Robin Wilson
Hello I'm trying to do a function that emails users and sends an attachment. But I think something is in the wrong order or something as when I send it Exchange discards it. This is the function which I have put together from various sources: I would really appreciate any help as I have

[PHP] What is wrong with this function please?

2007-03-23 Thread Robin Wilson
Hello I'm trying to do a function that emails users and sends an attachment. But I think something is in the wrong order or something as when I send it Exchange discards it. This is the function which I have put together from various sources: I would really appreciate any help as I have

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

2007-03-23 Thread Jake McHenry
-Original Message- From: Robin Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 9:53 PM To: php-general@lists.php.net Subject: [PHP] What is wrong with this function please? Hello I'm trying to do a function that emails users and sends an attachment. But I think

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

[PHP] what is wrong with my big array

2006-03-07 Thread Ross
I cannot see it -- 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 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 =

[PHP] What is wrong with next code

2004-10-28 Thread Vladimir Shiray
Can one explain me why I has got a result: - Warning: mysql_query(): 4 is not a valid MySQL-Link resource in ... $result = mysql_query('SELECT 1+1', $db1); - from next example. The example does not

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 =

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

2004-01-20 Thread Radwan Aladdin
Hello.. I made these three PHP files.. but I don't know where is the problem Login.php - This will grab the UserName, Password and Serial fields by GET then compare them with the one in the database (After MD5 them) Activate.php -- For the admin.. he can activate users

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

[PHP] What is wrong with this code ?

2003-09-15 Thread Daniel Szasz
Hello What is wrong with this code ? $doWork = $_GET[doWork]; echo $doWork; echo ( BR); if ( $doWork = 0) { exit; } else { if ( $doWork = 1) { ? input class=no type=button value=Accept onClick=doAccept(); input class=no type=button value=Reject onClick=doReject(); ? }; if (

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
an OR statement/gate; Carl. -Original Message- From: Daniel Szasz [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 3:29 PM To: [EMAIL PROTECTED] Subject: [PHP] What is wrong with this code ? Hello What is wrong with this code ? $doWork = $_GET[doWork]; echo $doWork; echo

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

[PHP] What is wrong with this?

2003-02-24 Thread Miguel Brás
Hi, here's the script * body topmargin=0 leftmargin=0 link=#0F057E vlink=#0F057E alink=#0F057E bgcolor=#E6E6E6 table border=0 cellpadding=0 cellspacing=5 style=border-collapse: collapse bordercolor=#11 width=100% id=AutoNumber153 height=12 td width=43% height=33

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

[PHP] What is wrong here?

2002-11-24 Thread Cesar Aracena
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 don’t know which other settings are affecting my scripts. I have trouble with header(Location... because the browser is NOT

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
] (0299) 156-356688 Neuquén (8300) Capital Argentina -Mensaje original- De: Cesar Aracena [mailto:[EMAIL PROTECTED]] Enviado el: domingo, 24 de noviembre de 2002 23:06 Para: [EMAIL PROTECTED] Asunto: [PHP] What is wrong here? Hi all, I'm making a site which will reside in a remote server

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

[PHP] What is wrong with this expression?

2002-11-18 Thread 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. What's wrong

  1   2   >