On Wed, 2010-06-02 at 17:36 +0800, I am on the top of the world!
Borlange University wrote:
hey, i have a sql string like below:
select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and
szs_guige='48B32/14-1 1/8' and szs_tuhao='48B32 1 1/8'
the problem is that using
I am on the top of the world! Borlange University wrote:
hey, i have a sql string like below:
select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and
szs_guige='48B32/14-1 1/8' and szs_tuhao='48B32 1 1/8'
the problem is that using mysql_query to run this sql string returns
At 1:27 PM +0100 10/29/06, Gunnar Beushausen wrote:
Hi!
I've a strange problem with count. I wrote a routine to jump to the
last position of an array. The code ist this:
-snip-
Gunnar:
I find it wise to check out all the built-in array functions before
starting to write something myself
Side note, it sounds like
$this-result
is an object holding an array, not the array itself and print_r is
automatically traversing the object.
On Oct 29, 2006, at 4:27 AM, Gunnar Beushausen wrote:
Hi!
I've a strange problem with count. I wrote a routine to jump to the
last position of
On Sun, October 29, 2006 6:27 am, Gunnar Beushausen wrote:
I've a strange problem with count. I wrote a routine to jump to the
last
position of an array.
You mean kind of like this one?
http://php.net/end
:-)
I also suspect you are not doing count() on the right thing...
--
Some people have
[snip]
After a lot of searching through the page source I see that the first
Try A
Teen has a line break (after the n in teen whatevers there appears
on
the next line), thats why it seems different...but when I went into the
mySql db via phpmyadmin...there is no linebreak to be found
the page shown below works fine on my own machine, but on another (remote)
server, it gives me a strange result.
Here's what happens: The first time I view the page it says array(0) { }
as I'd expect, but on the second it says object(kurv)(0) { } where I
expected another array. The problem seems
On Friday 06 January 2006 21:26, Philip Hallstrom wrote:
Compare the output of phpinfo() on your machine with the output on the
server. Look at any differences.
They look the same, more or less. Anything particular I should look for? The
session sections are completely identical.
BTW - the
On Thu, July 7, 2005 4:14 am, Thorsten Friedrich said:
because of the fact that i´ll never see if the write-session-function is
called i´ve placed a write-a-log-to-disk function in all session-function
to
see if they are called.
What are these write-a-log-to-disk functions outputting?
Can
On Mon, May 2, 2005 4:07 am, George Pitcher said:
On page y, I've echoed the queries and they work fine when I paste them
into
MySQLCC. However, if I do print_r($row), I get an ampty array. Echoing the
$result gives me Object id #3 (on page x this is Object id #6).
I have another popup
Sorry, I forgot to mention that I'm using PEAR::DB and Smarty, Server is
WinNT running Apache 2.0.52, and PHP 5.0.2. MySQL 4.0.5-beta-max-nt is
running on a separate server (NT also). All this is about 70 miles away and
I haven't seen the servers for over 3 years (oh how wonderful remote access
On Sat, April 23, 2005 7:44 am, Labunski said:
Hi guys,
I have to say, I've written so many scripts that had file upload functions
included,
but this time something strange is happening.
The script passes the IMAGE_TYPE check, and picture's name stores in the
database (so I guess the
PS You are inserting the image info into the database even if it's not a
valid JPEG or GIF and you are throwing it out -- That's probably NOT what
you really want to do anyway. So even if that's not what is wrong in this
case, your logic is a bit off in that part.
On Sat, April 23, 2005 7:44
Hi Chris,
I tried to reproduce the problem with vertsoin 4.3.3 and 5, and its
working fine(producing same string).
If you have not find a bug in bug database why not submit a new bug?
anyway changing single quotes to double may help ;)
zareef ahmed
?php if (CRYPT_MD5 == 1) {
On Thu, March 31, 2005 1:06 pm, Chris Francy said:
I am hoping someone can point me in the right direction to resolving an
odd
bug. I tried searching the bugs database and groups, but I can't think of
the terms to use while searching for my problem that the search system
will
accept.
I
-Original Message-
CODE:
?
print ctype_digit( 1094164380 );
?
END OF CODE
When I run the above code, my apache server performs an illegal operation
and shuts down. It will keep doing this every 20 seconds or so until you
restart/stop the server manually. Does anyone else have
OK, I do get the following error.
1044: Access denied for user: '@localhost' to database 'mydatabase'
Even though I specify the user in mysql_connect, for some reason,
mysql_select_db is trying to user a blank user,
Any Ideas?
Hi,
I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0
On 12 Mar 2004 Richard Davey wrote:
P 1044: Access denied for user: '@localhost' to database 'mydatabase'
You said that you use apache as the username for MySQL - is this
something you've configured yourself?
It appears he is actually using a blank username as there is noting
before the
Is it possible that either $connect_id is not defined at the point
where you use it in the mysql_select_db call (e.g. it's global, the
call is in a function, and you forgot to use a global declaration),
and/or the previosuly opened connection has been closed?
What do you get if you do a
On Thursday 05 February 2004 16:41, Giuliano Ippoliti wrote:
[snip]
9. cp php.ini-dist /usr/local/lib/php.ini
Read the comments at the top of the file 'php.ini-recommended'. It is the same
directory as the file 'php.ini-dist'.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open
--- Jason Wong [EMAIL PROTECTED] wrote:
On Thursday 05 February 2004 16:41, Giuliano
Ippoliti wrote:
[snip]
9. cp php.ini-dist /usr/local/lib/php.ini
Read the comments at the top of the file
'php.ini-recommended'. It is the same
directory as the file 'php.ini-dist'.
Thank you
From the looks of it, if i were to do the same, I
would rather make second class the one I initiate and
return it, but that would require a third.
And the error is strange because you're doing
something strange!
What do you want to do ? Be able to access base_class
stuff from second_class ? If
Mukul Sabharwal wrote:
And the error is strange because you're doing
something strange!
I don't think I'm doing anything strange. What I have exposed here is a
simplification of my own class loader. I have the main class that must
load (include and then instance) other PHP classes.
The problem
And the error is strange because you're doing
something strange!
I don't think I'm doing anything strange. What I
have exposed here is a simplification of my own
class loader. I have the main class that must
load (include and then instance) other PHP classes.
The problem is that if
Haseeb [EMAIL PROTECTED] wrote:
Hi all,
this is a very strange problem. i don't know where i am doing something that
is causing this. the problem is that i am working on a web portal entirely
in php. i have a few hidden pages. that do the queries to the DB. now when
i redirect to any
This is an IIS issue. The install.txt has specific
information on this topic, have a look. Also, this comes
up a lot and the following bug report is full of newbies
asking bogus questions but it also contains some good info:
http://bugs.php.net/bug.php?id=12061
So it looks like
Look for anything outside of the tr or td tags in the rest of your
table. That's generally what causes things like this.
---John Holmes...
- Original Message -
From: Denis L. Menezes [EMAIL PROTECTED]
To: PHP general list [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 10:40 AM
Subject:
On Saturday 01 February 2003 20:08, Denis L. Menezes wrote:
Hello friends.
I have the following script. Both the errors show green font when actually
the first error should give a red font. Am I doing something wrong here?
Quote:
if($CategoryName==){
Print font color=\#FF\You
- Original Message -
From: Denis L. Menezes [EMAIL PROTECTED]
To: PHP general list [EMAIL PROTECTED]
Sent: Saturday, February 01, 2003 7:08 AM
Subject: [PHP] Strange problem
I have the following script. Both the errors show green font when
actually the first error should give a red
Hello Paul,
well problem is this: you don't have defined variable $actionmaybe
you are not posting it correctly from form...what is on first 12
lines?
try to add $action=value; on line 12...just define any suitable
value...
--
Best regards,
Martin mail [EMAIL
You need to check like this:
if (isset($action) $action == 'add')
AND if it is 4.1 + and global vars are turned off??
if (isset($_GET['action']) $_GET['action'] == 'add')
** The above will need to changed if it is POST in the above example!!
Timothy Hitchens (HiTCHO)
Open Platform
I have no idea what I did but this email was not supposed to go to the
list.. my apologies. *LOL*
-Kevin
- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 4:18 PM
Subject: Fw: [PHP] strange problem (user poll)
[EMAIL
Never mind, I just found and exceptable work around.
$GLOBALS[session] $GLOBALS[document] contain the objects.
(and after all that typing :)
-Evan
On Wed, Jul 24, 2002 at 10:21:32PM -0400, Evan said:
Hey all,
I'm having a strange problem with objects that I'm hoping someone out there
Try using $_GET['varnamehere']
Ray Hunter
-Original Message-
From: Jean-Arthur Silve [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 8:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Strange problem passing variables
Hi,
A friend of me use PHP4.1.2 on Linux+Apache
Here is the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 18-01-02 at 15:49
* Marc Logghe said
Hi,
my PHP (PHP Version 4.1.1) suddenly does not take this anymore:
$a['color'] = 'red';
I get this error: Parse error: parse error, expecting `T_STRING' or
`T_VARIABLE' or `T_NUM_STRING'
when I
hmmm
try
$coding = %coding;
$a[$coding]='whatever this array shall contain';
please let me know if it worked...
diggn
- Original Message -
From: Marc Logghe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 3:44 PM
Subject: [PHP] strange problem
Hi,
my PHP (PHP
hmmm
try
$coding = %coding;
$a[$coding]='whatever this array shall contain';
please let me know if it worked...
diggn
this is a test because my email client gave me an error message so if this message
arrives twice, it wasnt meant to be spam...
No idea, but a fella on this list told me [] had been deprecated in
favour of {} Maybe that has something to do with it?
Maybe:
$a[${'%coding'}] = 'red';
this works:
?
${'%coding'}='blue';
$a[${'%coding'}]='red';
echo $a[blue];//print red
?
--
PHP General Mailing List
On Friday, January 18, 2002, at 09:52 AM, Nick Wilson wrote:
my PHP (PHP Version 4.1.1) suddenly does not take this anymore:
$a['color'] = 'red';
I get this error: Parse error: parse error, expecting `T_STRING' or
`T_VARIABLE' or `T_NUM_STRING'
when I remove the quotes around the key, it
On Friday 18 January 2002 15:52, you wrote:
So hashes are now $var{'keyname'} (with curly brackets) and arrays are
$var[0] (with normal brackets?)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 18-01-02 at 15:49
* Marc Logghe said
Hi,
my PHP (PHP Version 4.1.1) suddenly
It looks like you put a full URL into your include ... which would be
incorrect.
The syntax is ...
include(path/relative/to/your/script);
jim
--
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[EMAIL PROTECTED]
--
PHP General Mailing List
Hi Jim!
Ok couple of questions then...
.. yesterday these includes WERE working. For some reason I went to the site
today and they weren't. VERY weird! Since these includes are showing up on
multiple pages in different directories, I currently have them being called
like this:
Code in
Yes sir: -rw-rw-r--
Directory : drwxrwsr-x
Deron
www.metalages.com
Martin Towell [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
look at read permissions, does the web server have permissions to read
those
files?
-Original Message-
From: Deron
Hi again,
I got around the problem just by doing following. However, the problem
is weird (I'm using PHP 4.0.5 for IIS).
$fp = fopen ($filename, a+);
$fileContent = fread ($fp, filesize ($filename));
...
fclose ($fp);
$fp = fopen ($filename, a); - the
Sounds like there's no swap space left to me...
-jp
-Original Message-
From: Dustin Butler [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 11:11 PM
To: 'Jeroen Jochems'; php-general (E-mail)
Subject: RE: [PHP] Strange problem
There are FTP functions if it's an FTP
No it has got about 10gig free space!
- Original Message -
From: Hardy Merrill [EMAIL PROTECTED]
To: Jeroen Jochems [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 2:50 PM
Subject: Re: [PHP] Strange problem
The first thing I'd check is the space on the client
Or does anyone know a better way to download files?
- Original Message -
From: Hardy Merrill [EMAIL PROTECTED]
To: Jeroen Jochems [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 2:50 PM
Subject: Re: [PHP] Strange problem
The first thing I'd check is the space
47 matches
Mail list logo