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
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
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
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:
$
-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
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
];
}
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
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))
{
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,
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))
{
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)
{
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
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
(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
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
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');
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:
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
But in practice. I mean in real life you'll find the mail() function is
disabled in most servers :)
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
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 »
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
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
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
--
]
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
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
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
: [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
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
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
*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.
*
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
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
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
---
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
--
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...
] 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
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]
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 =
$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
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]
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
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);
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
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)
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
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
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
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());
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 =
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);
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!
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
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
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:
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.
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
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);
, $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
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.
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
]
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
] 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
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
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
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
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
-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
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
I cannot see it
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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:
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:
-
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 =
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
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 =
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
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
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 (
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;
}
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
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
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
--- 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
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
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,
: [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
: 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
[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
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
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
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
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
scripts. I have trouble with header(Location... because the browser is
NOT
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
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
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
scripts. I have trouble with header(Location... because the browser is
NOT redirected.
--- 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
]
(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
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
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 - 100 of 126 matches
Mail list logo