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
nothing,however, i can get one record through mysql query tool.
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
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:
if(!$this-done) {
array_push($this-result, $this-stmt-fetchall_assoc());
}
$this-done = true;
$this-currIndex = $this-rowIndex = count($this-result)-1;
return $this;
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
Hi,
I dont know if this is a bug or something but I am getting some strange
results from what should be a simple program;
I have a bunch of movie titles in my database, this is the structure:
part_url
part_size
part_format
bandwidth_type
flick_name
and the above table contains data like this:
[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
Hi all,
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
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
Hi, i´ve a strange Problem with the session_set_save_handler-Function.
Firt of all my config:
in my intranet i´m using 2 servers
the first server is the db-server running mysql v. 12.22 dist 4.0.24
the second server is the webserver
running apache2 Linux apache 2.6.5-7.147-smp running
and is
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
Hi,
I am encountering a strange problem with a pop-up window. On my site, users
(very specialised, closed site with small numbers) have to click a link on
page x which pops up page y. Page x and y both contain pricing information
based on a functions.php include file. On page x, the data is being
is!).
Cheers
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: 2 May 2005 12:07 pm
To: php-general@lists.php.net
Subject: [PHP] Strange problem with DB queries
Hi,
I am encountering a strange problem with a pop-up window. On my
site, users
(very specialised
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 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 picture should have been stored in the dir.), but
when I
Hello all,
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 have a script like the below, copied from the
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
Hi all,
Noticed a strange problem when I was testing a time stamp to make sure it was all
numbers. After an hour of debugging, I traced the problem to the ctype_digit funciton.
CODE:
?
print ctype_digit( 1094164380 );
?
END OF CODE
When I run the above code, my apache server performs an
Hi,
I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0
mysql_select_db(mydatabase,$connect_id)
allways fails.
I can use $connect_id = mysql_connect(localhost,apache); (YES, I do have this line
before the mysql_select_db);
just fine.
I can run querys against the database with no problems, but
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
Hello PHP,
Friday, March 12, 2004, 6:25:09 PM, you wrote:
P OK, I do get the following error.
P 1044: Access denied for user: '@localhost' to database 'mydatabase'
P Even though I specify the user in mysql_connect, for some reason,
P mysql_select_db is trying to user a blank user,
P Any Ideas?
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
Yes, I have it configured to run as apache. But, as I mentioned, I have no
problems accessing the database and running querys against it, it is only
the mysql_select_db function that fails.
Hello PHP,
Friday, March 12, 2004, 6:25:09 PM, you wrote:
P OK, I do get the following error.
P
Hello trlists,
Friday, March 12, 2004, 6:37:34 PM, you wrote:
tcc Configuring a MySQL database with a blank root password sounds like a
tcc potential security risk to me ...
It is, but if he hasn't modified it otherwise, that's what it'll be.
Also for local development purposes, there is no
On 12 Mar 2004 Richard Davey wrote:
It is, but if he hasn't modified it otherwise, that's what it'll be.
Also for local development purposes, there is no harm in it.
Agreed, as long as he's not connected so someone can try to connect to
the MySQL port.
--
Tom
--
PHP General Mailing List
Hello trlists,
Friday, March 12, 2004, 6:48:03 PM, you wrote:
tcc Agreed, as long as he's not connected so someone can try to connect to
tcc the MySQL port.
If he's connected that long and not running a firewall, he deserves it
;)
--
Best regards,
Richard Davey
Hello,
Friday, March 12, 2004, 6:38:37 PM, you wrote:
P Yes, I have it configured to run as apache. But, as I mentioned, I have no
P problems accessing the database and running querys against it, it is only
P the mysql_select_db function that fails.
You mean you have no problems querying the
Yes, I have a root password.
No, I do not use root to run the server or connect to the database.
Yes, I do have the user apache in the grant tables for mysql with
permissions for the specific database.
Yes, I can run querys against said database and connect with user apache
with no problems.
Only
Hello,
Friday, March 12, 2004, 7:00:38 PM, you wrote:
P Only msyql_select_db will not connect, it claims I am trying to use a blank
P user, even though I specifically connect earlier with mysql_connect with the
P specific user with no problems..
What does this output?
?php
$link =
It returns:
Connected successfully
Like I said, I have not problems connecting. Only mysql_select_db will not
work.
Hello,
Friday, March 12, 2004, 7:00:38 PM, you wrote:
P Only msyql_select_db will not connect, it claims I am trying to use a
blank
P user, even though I specifically
It seems the only way I can get mysql_select_db to work is to actually add a
blank user to the msyql.db table with appropiate privileges.
Yes, I have a root password.
No, I do not use root to run the server or connect to the database.
Yes, I do have the user apache in the grant tables for
Hello PHP,
Friday, March 12, 2004, 7:23:47 PM, you wrote:
P It returns:
P Connected successfully
P Like I said, I have not problems connecting. Only mysql_select_db will not
P work.
Fine, what does this return? With foo replaced with your database
name.
?php
$lnk = mysql_connect('localhost',
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
Hi list!
Yesterday I've installed PHP 4.3.4 and Apache 1.3.29
on my Linux Mandrake 9.1 machine with a standard
procedure:
1. cd apache_1.3.29
2. ./configure
3. cd ../php-4.3.4
4. ./configure --with-apache=../apache_1.3.29
--enable-track-vars make make install
5. cd ../apache_1.3.29
6.
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
Hi,
i'm doing the following operation:
I'm reading multiple rows from a database then writing
each row into a dbf file using dbase_add_record.
I'm having the following problem :
- some rows are beeing written other or not to the dbf
file (sometimes).
- if i repeat the operation all the rows are
Hi all,
I have encountered a tricky problem with PHP 4.3.1 (installed with
SuSE 8.2).
I don't know if it is a bug or not. Maybe is just me missing something.
What I'd like to do is to pass a reference of base_class instance to the
constructor of second_class (so that the newly created
= 100;
// here it is, base_class' some is accessible
?
HTH
Mukul Sabharwal
From: Fabio Rotondo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 2:38 AM
Subject: [PHP] Strange problem in class creation
Hi all,
I have encountered a tricky problem with PHP 4.3.1
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
Hi all,
thisis a very strange problem. i don't know where i amdoing 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 toany page for query i get this error
CGI
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
I've searched all over for the answer to this problem.. but haven't
found anything..
I have a script that i use to upload files to a webserver and download
them via my phone..
problem is, the files end up being about twice the size of the original
file..
for example,i upload a midi that
Hello friends,
Following is the part html output of my page got from View-source in IE.
The problem is that I gate a big blank gap on the output page from the top until about
10 lines height and only then the table is displayed. As you see I have no BR tags
here. Can someone tell me why I get
: [PHP] strange problem
Hello friends,
Following is the part html output of my page got from View-source in IE.
The problem is that I gate a big blank gap on the output page from the top
until about 10 lines height and only then the table is displayed. As you see
I have no BR tags here. Can
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 have not entered the category name. Please go
back and enter the
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
Can anyone see a problem in this? When i run the script i am getting this
error Notice: Undefined variable: action in
C:\www\Apache2\htdocs\user_poll\2\addpoll.php on line 13
?
// addpoll.php
// Case Study 1: User Poll - Foundation PHP for Flash
// If the form has been submitted...
(line 13) if
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
Consulting
e-mail: [EMAIL PROTECTED]
-Original Message-
From: - [ Paul Ferrie ] - [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 9 January 2003 8:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] strange problem (user poll)
Can anyone see a problem in this? When i run the script i am
getting
[EMAIL PROTECTED]
It would help to know where $action is being defined.
- Original Message -
From: - [ Paul Ferrie ] - [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 08, 2003 3:43 PM
Subject: [PHP] strange problem (user poll)
Can anyone see a problem in this? When
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
Hi all,
I've been trying to make my way around a complex mailing system for the
past couple of days with no success, but now I noticed that I can't just
send a simple:
mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3);
I used to make this scripts work all the time before using the
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my website JUST for
PHP file.. so there is NO problems at all if I include HTML or SHTML files.
Anyway, if I include 2 PHP files into any page, the first INCLUDE statement
Hi All,
I have an XML. Using XSL How do i do grouping and counting in an efficient way.
Thanks
karthikeyan.
Hey all,
I'm having a strange problem with objects that I'm hoping someone out there can
help me track down. I'll give a run down of the setup here, please note that
register_globals is off.
A page creates two objects.
$document - this is always a new object and uses the ob_ functions to
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
hello everybody,
i'm trying to use php 4.2.1 with apache 2.0.39. i compiled php as dso, with
gd support
(libjpeg6b, libpng-1.2.3 , gdlib-1.8.4, freetype-2.1.2)
compiling and installation of the above packages went fine, but when i start
apache, i get the following message from the apache error
Hi,
A friend of me use PHP4.1.2 on Linux+Apache
Here is the problem :
He pass a parameter using GET method :
http://www.domain.com/test.php?TESTV=1234
test.php is :
?php
echo $TESTV.BR;
echo $HTTP_GET_VARS[TESTV].BR;
phpinfos();
?
But in the script all variables are empty ($TESTV and
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
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 remove the quotes around the key, it works.
Problem is , that a certain key is %coding (I know, I
-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
I have this page:
http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php
If you look on the bottom, it says: Warning: Failed opening
'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for
inclusion (include_path='.:/usr/local/lib/php') in
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
m: Deron [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 9:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Strange problem with some includes...
I have this page:
http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php
If you look on the bottom, it says: Warning: Failed
Hi,
i have a strange problem.
I get a users birthdate with three dropdown menus (year, month and day of
month). I get these values into one string with:
$user_birthdate = $birth_year . $birth_month . $birth_day;
If i echo $user_birthdate after this it is correct (mmdd). But when i
insert
Hello Daniel,
$date = $birth_year.-.$birth_month.-.$birth_day;
And you can try inserting such kind o' date to a DATETIME field.
There's an alternative way:
$time = mktime(0,0,0, $birth_month, $birth_day, $birth_year);
That would return a unix timestamp that can be written to a BIGINT
field and
Hi,
I'm having strange problem with the fputs() - it occurs only on my IIS
server but not on the Linux/apache server (I use the IIS while
programming).
The problem:
fputs ($fp, $newVote);
It does not write the content of $newVote into the text file $fp is
pointing to. If I check the
, a); - the plus taken away!
ftruncate ($fp, 0);
fwrite ($fp, $newVote);
fclose ($fp);
Can this be a bug?
SED
-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: 7. júlí 2001 21:56
To: [EMAIL PROTECTED]
Subject: [PHP] Strange problem with fputs ($fp, $newVote
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
88 matches
Mail list logo