Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Ashley Sheridan
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

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Jim Lucas
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

Re: [PHP] strange problem with count()

2006-10-30 Thread tedd
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

Re: [PHP] strange problem with count()

2006-10-29 Thread Ed Lazor
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

Re: [PHP] strange problem with count()

2006-10-29 Thread Richard Lynch
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

RE: [PHP] Strange problem after getting data from the DB

2006-04-11 Thread Jay Blanchard
[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

Re: [PHP] Strange problem with overlapping names

2006-01-06 Thread Philip Hallstrom
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

Re: [PHP] Strange problem with overlapping names

2006-01-06 Thread Niels
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

Re: [PHP] Strange Problem: session_set_save_handler

2005-07-07 Thread Richard Lynch
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

Re: [PHP] Strange problem with DB queries

2005-05-04 Thread Richard Lynch
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

RE: [PHP] Strange problem with DB queries - MORE

2005-05-02 Thread George Pitcher
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

Re: [PHP] Strange problem with picture Upload

2005-04-24 Thread Richard Lynch
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

Re: [PHP] Strange problem with picture Upload

2005-04-24 Thread Richard Lynch
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

Re: [PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Zareef Ahmed
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) {

Re: [PHP] strange problem, seems to be related to the character '$'

2005-03-31 Thread Richard Lynch
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

RE: [PHP] Strange Problem with ctype_digit

2004-09-27 Thread Ed Lazor
-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

Re: [PHP] STrange Problem

2004-03-12 Thread PHP
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

Re: [PHP] STrange Problem

2004-03-12 Thread trlists
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

Re: [PHP] STrange Problem

2004-03-12 Thread trlists
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

Re: [PHP] strange problem with post method

2004-02-05 Thread Jason Wong
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

Re: [PHP] strange problem with post method

2004-02-05 Thread Giuliano Ippoliti
--- 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

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Mukul Sabharwal
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

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Fabio Rotondo
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

Re: [PHP] Strange problem in class creation

2003-08-12 Thread Mukul Sabharwal
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

Re: [PHP] Strange Problem

2003-07-14 Thread Curt Zirzow
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

Re: [PHP] Strange Problem

2003-07-14 Thread Philip Olson
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

Re: [PHP] strange problem

2003-03-04 Thread 1LT John W. Holmes
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:

Re: [PHP] Strange problem

2003-02-01 Thread Jason Wong
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

Re: [PHP] Strange problem

2003-02-01 Thread Matt
- 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

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Martin Hudec
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

RE: [PHP] strange problem (user poll)

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
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

Re: [PHP] strange problem (user poll)

2003-01-08 Thread Kevin Stone
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

Re: [PHP] Strange problem with objects

2002-07-24 Thread Evan
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

RE: [PHP] Strange problem passing variables

2002-03-22 Thread Hunter, Ray
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

Re: [PHP] strange problem

2002-01-18 Thread Nick Wilson
-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

Re: [PHP] strange problem

2002-01-18 Thread Malte Fucks
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

Re: [PHP] strange problem

2002-01-18 Thread Malte Fucks
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...

Re: [PHP] strange problem

2002-01-18 Thread Bas Jobsen
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

Re: [PHP] strange problem

2002-01-18 Thread Erik Price
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

Re: [PHP] strange problem

2002-01-18 Thread TD - Sales International Holland B.V.
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

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread jimtronic
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

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread Deron
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

Re: [PHP] Strange problem with some includes...

2001-12-06 Thread Deron
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

RE: [PHP] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED
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

RE: [PHP] Strange problem

2001-01-30 Thread johnny p.
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

Re: [PHP] Strange problem

2001-01-25 Thread Jeroen Jochems
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

Re: [PHP] Strange problem

2001-01-25 Thread Jeroen Jochems
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