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 nothin

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 mysql

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 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 ha

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 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 anywhere

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 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 se

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?

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 is!

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 a

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

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. >

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 On Apr 1, 2005 2:36 AM, Chris Francy <[

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

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 var_dum

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

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 > >mysql

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'. >

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 So

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 i

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

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 security/permi

Re: [PHP] Strange Problem

2003-07-13 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

Re: [PHP] strange problem

2003-03-04 Thread 1LT John W. Holmes
Look for anything outside of the or 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 Subjec

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 gi

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 "You have not en

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 (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 Consu

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 P

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 t

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 prob

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) su

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 th

Re: [PHP] strange problem

2002-01-18 Thread Marc Logghe
what the heck !? I would never think on that but you are absolutely right. It all worked again after replacing straights with curlies. Is PHP going the perl way ? Thanks a million for this tip. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

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: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

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 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

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' > w

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: Der

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 pag

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

2001-12-06 Thread Martin Towell
look at read permissions, does the web server have permissions to read those files? -Original Message- From: 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.m

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 (http://www.php.n

RE: [PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
> You should really be storing your dates as datetime so you can take > advantage of the date sorting functions. But then you'd need to use > date() to format the string into -mm-dd format. Thanks Jim. but how would i actually do that? I have studied the date() function in the manual - but c

RE: [PHP] Strange problem...

2001-11-30 Thread Jim Musil
This may be a rough explanantion, but when you store numbers, the length is not actually the number of digits, but the number of binary digits it would use when converted from decimal to binary. So, a length of 1, could only have 0 or 1 as inputs. a length of 2 could only have 0,1,2,or 3 The e

RE: [PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
Thanks guys... I guess it´s too late here now .) It fixed itself when i altered the field type to varchar. Although - i don´t really get why it can´t store the vlaue i am sendding it the field is of integer type. - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] Strange problem...

2001-11-30 Thread faeton
Hello Daniel, 1 Dec 2001, 0:43:42, you've written: What's the propery of field your are inserting your info to? Is it INT or BIGINT or maybe TEXT? Try something new :) DA> Hi, DA> i have a strange problem. DA> I get a users birthdate with three dropdown menus (year, month and day of DA> mont

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 > >

RE: [PHP] Strange problem

2001-01-26 Thread Dustin Butler
s [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 25, 2001 7:23 AM > To: Hardy Merrill > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Strange problem > > > Or does anyone know a better way to download files? > > > - Original Message - > From: Hardy

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 fir

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

Re: [PHP] Strange problem

2001-01-25 Thread Hardy Merrill
The first thing I'd check is the space on the client machine trying to do the download - that machine may be running out of space. I can't remember exactly how the browser handles this, but the client machine may need 2 times the size of the file to be downloaded - it might first create a tempora